| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
| |
* fix XTS less than one block length. fixes #5885
* make XTS test key happy
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* start typing x509.base
* statically type x509.base
* typehint X509Backend interface
* typehint at least the X509Backend interface
* make _CertificateRevocationList/_CertificateSigningRequest actual subclasses of the interface (as done before for Certificate in f16bff2cb)
* tell mypy to ignore lines with deliberately wrong types
* signature_hash_algorithm always returns a hash algorithm (it's not optional)
* Revert "signature_hash_algorithm always returns a hash algorithm (it's not optional)"
This reverts commit f6a5b172b416f8ddea561203c0cf03b55e4ec50e.
* hash algorithm is actually optional
* fix import style
* typehint parsed_version to int, which it de facto always is
* minimize changes
* break import cycle with conditional imports
* ignore access to private members of openssl implementation
* reformat code with Black
* test check for missing public key
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* typehint x509.base
* cast extension class
* don't use string in typecast
* use lists as default argument values (see #5904)
* restore import since this is now re-exported
* ignore linting errors
* empty commit to trigger github actions
* fix formatting issue
|
| |
|
|
|
|
|
| |
* make value property return the generic value
* typehint x509.Name
* also ignore overloaded functions
|
| |
|
|
|
|
|
|
|
|
|
| |
* backend typing for twofactor package and more otp work
* even more typing
* style fixes
* no generic typing for _get_backend
* remove unneeded typing
|
| | |
|
| | |
|
| |
|
| |
this gets rid of the conditional backend type registration
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* fix pkcs12 parse ordering. fixes #5872
* remove an unneeded print
* simplify the test a bit more
* index
* black
* Update tests/hazmat/primitives/test_pkcs12.py
Co-authored-by: Alex Gaynor <alex.gaynor@gmail.com>
Co-authored-by: Alex Gaynor <alex.gaynor@gmail.com>
|
| |
|
| |
Co-authored-by: Tobias Peter <tobias.peter@infineon.com>
|
| |
|
| |
Co-authored-by: Tobias Peter <tobias.peter@infineon.com>
|
| | |
|
| |
|
| |
Fix #5848
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* add typehints for read only properties
* fix typing in test cases
* fix last missing assertion
* add typehints to all read_only_properties where type hints are already available
* check for isnot None instead, as per PR suggestion
* convert read_only_property to @property decorators
* remove unused import
* use List instead of Iterable for return values
* use @property instead of read_only_property
* fix type errors
* remove last occurance of annotated read_only_property
* use is not None check (works because we now return list)
* fix unused import
|
| |
|
| |
read_only_property is basically impossible for mypy to check
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
* 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>
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* rsa type hinting
* remove unused import
* missed return type
* type fixes
* ignores no longer required
* black gets me every time
* Update src/cryptography/hazmat/backends/openssl/rsa.py
Co-authored-by: Alex Gaynor <alex.gaynor@gmail.com>
Co-authored-by: Alex Gaynor <alex.gaynor@gmail.com>
|
| |
|
|
|
|
|
| |
* KDF type hinting
* more types
* less contortions
|
| | |
|
| |
|
|
|
| |
* x25519 type hints
* x448 type hints
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
| |
* clean mypy with tests dir
* remove most no_type_check annotations
* le sigh
* remove unneeded comments
|
| |
|
|
|
| |
* make PrivateKeyWithSerialization an alias of PrivateKey
* black
|
| |
|
|
|
| |
* type hinting for symmetric ciphers
* make our interface verifier happy
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
| |
* switch to xdist in tox for faster runs
* not using auto to avoid too many processes on local laptops
* we need to use pytest-cov to generate coverage properly now
* these env vars aren't present on no coverage builds
* tox changes
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
* we already do this check in other places
This test is *incredibly* expensive and we already do roundtrips like
this on other DH groups. To make this test less expensive and also more
accurate to its name we now verify that the parameters on the generated
key match
* empty commit
the most important CI feature
|
| |
|
|
|
|
|
| |
* subtests ec
* continue instead of return
* indentation
|
| |
|
|
|
|
|
| |
* remove AES tests we will always skip
* constrain <64-bit IV vector removal to just GCM
* apparently this is only used by GCM
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
| |
* Drop Python 2
* Black everything
|
| | |
|
| | |
|
| | |
|