We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5b13e52 + df6fa02 commit ab15863Copy full SHA for ab15863
1 file changed
wolfcrypt/__init__.py
@@ -46,15 +46,15 @@
46
if top_level_py not in ["setup.py", "build_ffi.py"]:
47
from wolfcrypt._ffi import ffi as _ffi
48
from wolfcrypt._ffi import lib as _lib
49
+ from wolfcrypt.exceptions import WolfCryptError
50
51
if hasattr(_lib, 'WC_RNG_SEED_CB_ENABLED'):
52
if _lib.WC_RNG_SEED_CB_ENABLED:
53
ret = _lib.wc_SetSeed_Cb(_ffi.addressof(_lib, "wc_GenerateSeed"))
54
if ret < 0:
55
raise WolfCryptError("wc_SetSeed_Cb failed (%d)" % ret)
56
if _lib.FIPS_ENABLED and _lib.FIPS_VERSION >= 5:
- ret = _lib.wolfCrypt_SetPrivateKeyReadEnable_fips(1,
57
- _lib.WC_KEYTYPE_ALL);
+ ret = _lib.wolfCrypt_SetPrivateKeyReadEnable_fips(1, _lib.WC_KEYTYPE_ALL)
58
59
raise WolfCryptError("wolfCrypt_SetPrivateKeyReadEnable_fips failed"
60
" (%d)" % ret)
0 commit comments