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)