From 8787268d3d8e9dec948698343b50726482265db9 Mon Sep 17 00:00:00 2001 From: Sun Yimin Date: Thu, 23 May 2024 20:34:40 +0800 Subject: [PATCH] Update x509.go --- smx509/x509.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smx509/x509.go b/smx509/x509.go index 5e98579..adf6185 100644 --- a/smx509/x509.go +++ b/smx509/x509.go @@ -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") }