Skip to content

Commit

Permalink
Fix EncryptPKCS8PrivateKey output incompatibility with OpenSSL
Browse files Browse the repository at this point in the history
  • Loading branch information
cptpackrat committed Apr 13, 2023
1 parent c06930f commit 0bbb50e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pemutil/pkcs8.go
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,8 @@ func EncryptPKCS8PrivateKey(rand io.Reader, data, password []byte, alg x509.PEMC
Salt: salt,
IterationCount: PBKDF2Iterations,
PrfParam: prfParam{
Algo: oidHMACWithSHA256,
Algo: oidHMACWithSHA256,
NullParam: asn1.NullRawValue,
},
},
},
Expand Down

0 comments on commit 0bbb50e

Please sign in to comment.