mirror of
https://github.com/emmansun/gmsm.git
synced 2025-04-26 12:16:20 +08:00
Update x509.go
This commit is contained in:
parent
6762238407
commit
8787268d3d
@ -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")
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user