mirror of
https://github.com/emmansun/gmsm.git
synced 2025-04-27 20:56:18 +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
|
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)
|
data, err := asn1.Marshal(privKey)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user