mirror of
https://github.com/emmansun/gmsm.git
synced 2025-04-26 12:16:20 +08:00
pkcs8: fix test case
This commit is contained in:
parent
41f4ec0e83
commit
21ff9aa3ab
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user