diff --git a/lib/Crypto/IO/PKCS8.py b/lib/Crypto/IO/PKCS8.py index 0747dfc1..c1b79a28 100644 --- a/lib/Crypto/IO/PKCS8.py +++ b/lib/Crypto/IO/PKCS8.py @@ -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