From 21ff9aa3ab8999c77e5ccfa26fd1774ff2f43a53 Mon Sep 17 00:00:00 2001 From: Sun Yimin Date: Fri, 5 Jul 2024 16:12:19 +0800 Subject: [PATCH] pkcs8: fix test case --- pkcs8/pkcs8_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkcs8/pkcs8_test.go b/pkcs8/pkcs8_test.go index 09ba510..a82691a 100644 --- a/pkcs8/pkcs8_test.go +++ b/pkcs8/pkcs8_test.go @@ -737,7 +737,7 @@ func TestParseInvalidPrivateKey(t *testing.T) { } var privKey encryptedPrivateKeyInfo - privKey.EncryptionAlgorithm.Algorithm = asn1.ObjectIdentifier{1, 2, 840, 113549, 1, 5, 1} + privKey.EncryptionAlgorithm.Algorithm = asn1.ObjectIdentifier{1, 2, 840, 113549, 1, 5, 2} data, err := asn1.Marshal(privKey) if err != nil { t.Fatal(err)