| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
| |
* invalid visible string support
this allows utf8 in visiblestring, which is not valid DER. we raise a
warning when this happens, but allow it since belgian eIDs, among
others, have encoding errors. Belgium fixed this by 2021 (and possibly
earlier), but their eID certificates have 10 year validity.
* review comments
* clippy
|
| |
|
|
|
| |
This keeps the buffer object alive, in addition to the original object. Some buffer-implementors have different behavior based on whether there's a buffer object alive.
|
| |
|
| |
|
|
|
| |
This is extra mega cursed, and strictly speaking unsound. It does, however, match the status quo ante, where someone mutating a buffer while its being used in cffi code will basically always be UB.
|
|
|
|
|
| |
* remove verify_interface
* ruff ruff
|
| |
|
|
|
|
|
| |
* deprecate support for DSA in load_ssh_public_key
* try to prevent bad things a bit more
|
|
|
| |
this will help us revisit it in the future
|
|
|
| |
This should be sufficient to keep aws-encryption-sdk working, but let's us delete the code.
|
|
|
| |
We already require pyOpenSSL>=22.0, but pyOpenSSL has not required this fallback since 21.0.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
* Remove register_interface, which was basically unused
* Remove now unused verify_interface
|
|
|
|
|
| |
* refactor utils.deprecated to be more mypy friendly
* Poke for CI
|
|
|
| |
As someone who first with Python in 2.4 or so, this habit is going to be hard to break.
|
|
|
|
|
|
|
|
|
|
|
| |
* more pointless typing to improve metrics
* Apply suggestions from code review
Co-authored-by: Alex Gaynor <alex.gaynor@gmail.com>
* black
Co-authored-by: Alex Gaynor <alex.gaynor@gmail.com>
|
|
|
|
| |
remove some unneeded type ignores. This work found a missing type and
added it as well.
|
|
|
|
|
| |
* remove signer/verifier as they've been deprecated for 4.25 years
* fix coverage
|
|
|
|
|
|
|
| |
* Remove read_only_property and precisely type all these getters
* flake8
* unused
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* _ModuleWithDeprecations should inherit from types.ModuleType (#6267)
Update utils.py
* fix typos reported by black
* flake8 fix
* Test should fail when int_from_bytes will be removed.
Because this test would become pointless then.
|
|
|
|
|
|
|
|
|
|
|
| |
* parse certificates with pure rust
* fix coverage
* various review comments
* save the buffer
* more feedback
|
| |
|
|
|
|
|
|
|
|
|
| |
Python 3.10 changed enum's object and string representation. PyCA
cryptography now uses a custom subclass of enum.Enum() will well-defined
__repr__ and __str__ from Python 3.9.
Related: https://bugs.python.org/issue40066
Fixes: https://github.com/pyca/cryptography/issues/5995
Signed-off-by: Christian Heimes <cheimes@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
| |
* backend typing for twofactor package and more otp work
* even more typing
* style fixes
* no generic typing for _get_backend
* remove unneeded typing
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Interface: Make annotation check optional
Fixes: https://github.com/pyca/cryptography/issues/5774
Signed-off-by: Christian Heimes <cheimes@redhat.com>
* Use param.replace()
Co-authored-by: Stanislav Levin <slev@altlinux.org>
Signed-off-by: Christian Heimes <cheimes@redhat.com>
Co-authored-by: Stanislav Levin <slev@altlinux.org>
|
| |
|
|
|
| |
test changes themselves will be in a separate PR
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Remove Python2 from CI and code that branched on it
* Update setup.py
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* remove
* review feedback
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Deal with the 2.5 deprecations
* pep8 + test fixes
* docs typo
* Why did I do this?
* typo
|
|
|
|
|
|
|
|
|
|
| |
* fix from_issuer_subject_key_identifier to take the right type
deprecate passing the old Extension wrapper object
* don't use a try:except:
* hilarious contortions to satisfy doc8
|
| |
|
|
|
|
|
|
|
|
|
|
| |
* Fixes #4734 -- Deal with deprecated things
- Make year based aliases of PersistentlyDeprecated so we can easily assess age
- Removed encode/decode rfc6979 signature
- Removed Certificate.serial
* Unused import
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* allow bytearrays for key/iv for symmetric encryption
* bump pypy/cffi requirements
* update docs, fix some tests
* old openssl is naught but pain
* revert a typo
* use trusty for old pypy
* better error msg again
* restore match
|
|
|
|
|
|
| |
* deprecate the constant time bytes comparison path old python 2.7.x uses
* pep8
|
|
|
|
|
|
|
|
| |
* Fixes #4076 - simplify the implementation of int_from_bytes on python2
* whitespace
* Added a test
|