pkcs8: fix test case

This commit is contained in:
Sun Yimin 2024-07-05 16:12:19 +08:00 committed by GitHub
parent 41f4ec0e83
commit 21ff9aa3ab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)