diff --git a/wolfcrypt/ciphers.py b/wolfcrypt/ciphers.py index c86f585..8fa304b 100644 --- a/wolfcrypt/ciphers.py +++ b/wolfcrypt/ciphers.py @@ -829,8 +829,6 @@ def make_key(cls, size, rng=Random(), hash_type=None): Generates a new key pair of desired length **size**. """ rsa = cls(hash_type=hash_type) - if rsa is None: # pragma: no cover - raise WolfCryptError("Invalid key error (%d)" % ret) ret = _lib.wc_MakeRsaKey(rsa.native_object, size, 65537, rng.native_object)