| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| | |
|
| |
|
|
|
|
|
| |
* Update annotation for key
* Update fernet.py
* Update fernet.py
|
| |
|
|
|
| |
* 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
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* add type alias for IP addresses
* Re-export module attributes in cryptography.x509.oid
Without exporting attributes via `__all__` mypy will consider typehints of
classes imported from `cryptography.x509.oid` as type Any. Example:
from cryptography.x509.oid import ObjectIdentifier
oid = ObjectIdentifier("1.2.3") # Any, if we do not re-export
Note that while the canonical location of ObjectIdentifier is in
`crytography.x509`, it is imported many times from `crytography.x509.oid`
instead
* add return type annotiations to constructors
* overload GeneralNames.get_values_for_type
* overload all implementations
|
| |
|
|
|
|
|
| |
* 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
|
| |
|
|
|
| |
* keep on typing
* swear i did this
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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>
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* add typehint for name
* strictly type ObjectIdentifier
* explicit reexport for mypy
* type (most) of extensions.py
* minor cleanup
* more consistently return None in constructors
* revert explicit reexport, as requested
* use _make_sequence_methods for now (#5870)
* mark oid as normal type-hinted property so that classes can access it
* fix spelling (upper case) use short form for reference
* annotate as ClassVar
* add type ignore for special extension class
|
| |
|
|
| |
These don't appear to be used in pyopenssl or cryptography.io. One less
source of conditionals.
|
| | |
|
| | |
|
| |
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
* change to a new version scheme
fixes #5801
* Update docs/api-stability.rst
Co-authored-by: Paul Kehrer <paul.l.kehrer@gmail.com>
* line length
Co-authored-by: Paul Kehrer <paul.l.kehrer@gmail.com>
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
| |
`List` gives more power to the caller.
Note that `RelativeDistinguishedName`, the same function returns a `List`.
Is there a reason this was `Iterable` only for `Name`? If we don't want to
promise `List`, `Sequence` is another alternative.
|
| |
|
| |
The signature change was introduced in https://github.com/pyca/cryptography/pull/5729 but is inconsistent with respect to related methods, breaks backward compatibility and compatibility with the OpenSSL backend (and maybe other backends) when named arguments are used.
|
| |
|
| |
closes #5796
|
| |
|
|
| |
fixes #5794
closes #5795
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
* 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>
|
| |
|
|
|
| |
* fix import cycle with asymmetricpadding
* Update src/cryptography/hazmat/primitives/_asymmetric.py
|
| |
|
|
|
|
|
|
|
| |
* reopen master for 3.5
* Update CHANGELOG.rst
Co-authored-by: Alex Gaynor <alex.gaynor@gmail.com>
Co-authored-by: Alex Gaynor <alex.gaynor@gmail.com>
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
| |
|
| |
This makes typing ConcatKDF easier
|
| | |
|
| |
|
|
|
| |
* x25519 type hints
* x448 type hints
|
| | |
|
| | |
|