Skip to content

Commit

Permalink
Merge pull request #216 from cptpackrat/fix/asn1-null-issue
Browse files Browse the repository at this point in the history
Fix `EncryptPKCS8PrivateKey` output incompatibility with OpenSSL
  • Loading branch information
maraino authored Apr 13, 2023
2 parents c06930f + 0bbb50e commit 0d03036
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 0d03036

Please sign in to comment.