Skip to content

Commit

Permalink
Update x509.go
Browse files Browse the repository at this point in the history
  • Loading branch information
emmansun committed May 23, 2024
1 parent 6762238 commit 8787268
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion smx509/x509.go
Original file line number Diff line number Diff line change
Expand Up @@ -1295,7 +1295,7 @@ func signingParamsForKey(key crypto.Signer, sigAlgo SignatureAlgorithm) (Signatu
case elliptic.P521():
defaultAlgo = ECDSAWithSHA512
case sm2.P256():
defaultAlgo = SM2WithSM3
sigAlgo = SM2WithSM3
default:
return 0, ai, errors.New("x509: unsupported elliptic curve")
}
Expand Down

0 comments on commit 8787268

Please sign in to comment.