From d5b39e61762772d67469ec786a7ff77dd32d75f4 Mon Sep 17 00:00:00 2001 From: Sun Yimin Date: Tue, 9 Jul 2024 12:58:47 +0800 Subject: [PATCH] pkcs: fix error message issue --- pkcs/cipher_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkcs/cipher_test.go b/pkcs/cipher_test.go index de4779d..7cfdd67 100644 --- a/pkcs/cipher_test.go +++ b/pkcs/cipher_test.go @@ -29,7 +29,7 @@ func TestGetCipher(t *testing.T) { } _, err = GetCipher(pkix.AlgorithmIdentifier{Algorithm: asn1.ObjectIdentifier{1, 2, 156, 10197, 1, 401, 2}}) - if err == nil || err.Error() != "pkcs: unsupported cipher (OID: 1.2.156.10197.1.401.2)" { + if err == nil || err.Error() != "pbes: unsupported cipher (OID: 1.2.156.10197.1.401.2)" { t.Fatal(err) } }