cryptography/tests
Paul Kehrer 2d4e0b2964
Fix parsing of priv keys via pub key APIs to error properly in ossl3 (#7135)
In OpenSSL 3.0.x the PEM_read_bio_PUBKEY function will invoke
the default password callback if you pass an encrypted private
key. This is very, very, very bad as the default callback can
trigger an interactive console prompt, which will hang the
Python process. We therefore provide our own callback to
catch this and error out properly.
2022-04-27 15:08:27 -04:00
..
bench Refs #7079 -- added basic scaffholding for benchmarks (#7087) 2022-04-18 20:52:20 -05:00
hazmat Fix parsing of priv keys via pub key APIs to error properly in ossl3 (#7135) 2022-04-27 15:08:27 -04:00
hypothesis Implement a parser for RFC4514 strings (#7055) 2022-04-16 10:21:45 +02:00
wycheproof Drop supported for older LibreSSL (#6660) 2021-11-26 23:05:04 +00:00
x509 fixes #7081 -- correctly handle escape sequences in RFC4514 strings (#7083) 2022-04-16 17:39:38 +02:00
__init__.py Remove __future__ import from our code (#5610) 2020-12-09 00:35:11 -06:00
conftest.py Ensure there's nothing on the error stack after tests (#5997) 2021-09-26 12:07:24 +08:00
deprecated_module.py refactor utils.deprecated to be more mypy friendly (#6923) 2022-03-03 03:46:30 +08:00
doubles.py type a test double (#6723) 2021-12-21 21:10:54 -05:00
test_cryptography_utils.py Remove explicit subclassing of object now that all classes are new-style (#6830) 2022-01-30 16:29:24 +00:00
test_fernet.py Remove explicit subclassing of object now that all classes are new-style (#6830) 2022-01-30 16:29:24 +00:00
test_interfaces.py Remove explicit subclassing of object now that all classes are new-style (#6830) 2022-01-30 16:29:24 +00:00
test_meta.py add some more mypy flags (#6751) 2021-12-23 07:55:23 -05:00
test_utils.py Remove explicit subclassing of object now that all classes are new-style (#6830) 2022-01-30 16:29:24 +00:00
test_warnings.py refactor utils.deprecated to be more mypy friendly (#6923) 2022-03-03 03:46:30 +08:00
utils.py Remove explicit subclassing of object now that all classes are new-style (#6830) 2022-01-30 16:29:24 +00:00