Skip to content

Commit

Permalink
Decrypt PKCS#8 key even if the password is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
Legrandin committed Sep 30, 2024
1 parent 0c86527 commit d499d27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Crypto/IO/PKCS8.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def unwrap(p8_private_key, passphrase=None):
ValueError : if decoding fails
"""

if passphrase:
if passphrase is not None:
passphrase = tobytes(passphrase)

found = False
Expand Down

0 comments on commit d499d27

Please sign in to comment.