You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using an invalid serialization format when the FIPS provder is enable raises InternalError instead of ValueError. This changed between 41.0.7 and 42.0.0.
docker run -it photon:5.0 /bin/bash -c "$(cat cryptographybug.sh)"
cryptography 41.0.7 output
Traceback (most recent call last):
File "<string>", line 12, in <module>
File "//venv/lib/python3.11/site-packages/cryptography/hazmat/backends/openssl/rsa.py", line 496, in private_bytes
return self._backend._private_key_bytes(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "//venv/lib/python3.11/site-packages/cryptography/hazmat/backends/openssl/backend.py", line 1322, in _private_key_bytes
raise ValueError(
cryptography 42.0.0 output
Traceback (most recent call last):
File "<string>", line 12, in <module>
cryptography.exceptions.InternalError: Unknown OpenSSL error. This error is commonly encountered
when another library is not cleaning up the OpenSSL error
stack. If you are using cryptography with another library
that uses OpenSSL try disabling it before reporting a bug.
Otherwise please file an issue at
https://github.com/pyca/cryptography/issues with
information on how to reproduce this. ([<OpenSSLError(code=50856204, lib=6, reason=524556, reason_text=unsupported)>, <OpenSSLError(code=50331782, lib=6, reason=134, reason_text=initialization error)>])
The text was updated successfully, but these errors were encountered:
Looks like we didn't port the ValueError branch for FIPS when we moved this code to rust (#9152). Perhaps we have a test that is too permissive (that branch was covered in tests).
Using an invalid serialization format when the FIPS provder is enable raises InternalError instead of ValueError. This changed between
41.0.7
and42.0.0
.docker run -it photon:5.0 /bin/bash -c "$(cat cryptographybug.sh)"
cryptography 41.0.7 output
cryptography 42.0.0 output
The text was updated successfully, but these errors were encountered: