From 18cf7e0e631db4c12f98f2ff1b066389f9b444a7 Mon Sep 17 00:00:00 2001 From: Emman Date: Thu, 2 Dec 2021 17:44:03 +0800 Subject: [PATCH] fix error --- smx509/x509_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smx509/x509_test.go b/smx509/x509_test.go index 01c806d..74920fc 100644 --- a/smx509/x509_test.go +++ b/smx509/x509_test.go @@ -283,7 +283,7 @@ func TestParsePKIXPublicKeyFromHuawei(t *testing.T) { t.Fatal(err) } pub1 := pub.(*ecdsa.PublicKey) - encrypted, err := sm2.Encrypt(rand.Reader, pub1, []byte("encryption standard"), sm2.NewASN1EncrypterOpts()) + encrypted, err := sm2.Encrypt(rand.Reader, pub1, []byte("encryption standard"), sm2.ASN1EncrypterOpts) if err != nil { t.Fatal(err) }