summaryrefslogtreecommitdiff
path: root/src/cryptography
Commit message (Collapse)AuthorAgeFilesLines
* Start typing a bunch of stuff from x509 extensions (#5812)masterAlex Gaynor2021-02-112-36/+45
|
* Name: update get_attributes_for_oid return type (#5809)Dan Halperin2021-02-101-1/+1
| | | | | | | | `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.
* fix signature of EllipticCurvePublicKey.verify() (#5808)Markus Wamser2021-02-101-1/+1
| | | 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.
* Added a py.typed so mypy prefers us to typeshed (#5802)Alex Gaynor2021-02-091-0/+0
| | | closes #5796
* fixed a circular import error (due to type hints) (#5800)Alex Gaynor2021-02-091-2/+2
| | | | fixes #5794 closes #5795
* Interface: Make annotation check optional (#5775)Christian Heimes2021-02-081-6/+19
| | | | | | | | | | | | | * 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 (#5758)Paul Kehrer2021-02-073-10/+19
| | | | | * fix import cycle with asymmetricpadding * Update src/cryptography/hazmat/primitives/_asymmetric.py
* reopen master for 3.5 (#5752)Paul Kehrer2021-02-071-1/+1
| | | | | | | | | * 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>
* 3.4 release (#5749)3.4Alex Gaynor2021-02-071-1/+1
|
* port changelog and fix back to master for CVE-2020-36242 (#5748)Paul Kehrer2021-02-071-1/+1
|
* Added typing for a bunch of random stuff (#5743)Alex Gaynor2021-02-047-27/+42
|
* Added typing for more of ciphers (#5738)Alex Gaynor2021-02-015-29/+43
|
* Added typing for a bunch of methods (#5737)Alex Gaynor2021-02-018-24/+27
|
* rsa type hinting (#5733)Paul Kehrer2021-02-013-68/+182
| | | | | | | | | | | | | | | | | | | * 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 (#5735)Paul Kehrer2021-02-017-67/+115
| | | | | | | * KDF type hinting * more types * less contortions
* add optional block_size to the HashAlgorithm interface (#5736)Paul Kehrer2021-02-011-0/+14
| | | This makes typing ConcatKDF easier
* type hints for asym utils (#5734)Paul Kehrer2021-02-011-3/+5
|
* x25519/x448 type hints (#5731)Paul Kehrer2021-01-314-36/+68
| | | | | * x25519 type hints * x448 type hints
* poly1305 type hints (#5732)Paul Kehrer2021-01-311-6/+6
|
* add type hinting for ed25519 (#5728)Paul Kehrer2021-01-312-20/+37
|
* add EC type hinting (#5729)Paul Kehrer2021-01-312-60/+146
|
* ed448 type hints (#5730)Paul Kehrer2021-01-312-20/+37
|
* dsa type hinting (#5726)Paul Kehrer2021-01-313-127/+139
|
* reorg some types to prevent an import cycle (#5727)Paul Kehrer2021-01-312-1/+57
|
* DH types (#5725)Paul Kehrer2021-01-312-93/+118
|
* remove DSAParametersWithNumbers (#5724)Paul Kehrer2021-01-312-3/+4
| | | | Merged into DSAParameters, just like we did years ago for everything else. Somehow we missed this one.
* type updates from turning on unchecked-defs on tests (#5720)Paul Kehrer2021-01-319-112/+82
| | | test changes themselves will be in a separate PR
* make PrivateKeyWithSerialization an alias of PrivateKey (#5722)Paul Kehrer2021-01-319-27/+29
| | | | | * make PrivateKeyWithSerialization an alias of PrivateKey * black
* add serialization type hinting (#5718)Paul Kehrer2021-01-306-49/+135
| | | | | | | | | * add serialization type hinting * reorganize to prevent circular dependency * review feedback * damn you black
* type hinting for symmetric ciphers (#5719)Paul Kehrer2021-01-305-117/+153
| | | | | * type hinting for symmetric ciphers * make our interface verifier happy
* add type hints for twofactor (#5717)Paul Kehrer2021-01-303-15/+39
| | | | | * add type hints for twofactor * fix import ordering
* Apply type annotations to x509 ct and ocsp (#5712)Alex Gaynor2021-01-309-298/+334
|
* add typing to padding and constant time modules (#5714)Paul Kehrer2021-01-302-34/+51
|
* add typing to keywrap (#5715)Paul Kehrer2021-01-301-6/+19
|
* type hinting for hashes, hmac, and cmac (#5713)Paul Kehrer2021-01-306-57/+56
|
* Apply type annotations to the core x509 types (#5711)Alex Gaynor2021-01-304-189/+201
|
* Apply type annotations to x509 builders (#5709)Alex Gaynor2021-01-292-35/+69
|
* Apply type annotations to fernet (#5708)Alex Gaynor2021-01-291-22/+39
|
* Introduce the most very basic mypy type checking (#5706)Alex Gaynor2021-01-283-37/+35
| | | Nothing is really annotated, just getting to clean.
* It's 2021! (#5701)Alex Gaynor2021-01-251-1/+1
|
* Add ssl version constants (#5662)Maximilian Hils2020-12-211-0/+1
| | | | | | | | | | | | | | | * add ssl version constants * try to fix ci * try harder to fix ci * security: if unavailable, set protocol constants to nonexistent version * make linter happy * remove dtls constants * remove superfluous comment
* Cleanup how we represent authors. (#5650)Alex Gaynor2020-12-151-1/+1
| | | AUTHORS.rst had not been updated in more than 2 years, it was not a good reference.
* Update APIs to use non-deprecated OpenSSL ones where possible (#5633)Alex Gaynor2020-12-103-7/+7
| | | cherry picked from #4920
* Complete removal of py2 (#5533)Alex Gaynor2020-12-0933-263/+126
| | | | | * Drop Python 2 * Black everything
* we didn't actually commit the final doc fixes for the recover PR (#5614)Paul Kehrer2020-12-091-1/+1
|
* Remove utils.int_from_bytes (#5609)Alex Gaynor2020-12-095-10/+15
|
* Remove __future__ import from our code (#5610)Alex Gaynor2020-12-0983-94/+0
|
* Switch black to py36 as the minimum version (#5608)Alex Gaynor2020-12-083-7/+7
|
* Remove Python2 from CI and code that branched on it (#5607)Alex Gaynor2020-12-087-109/+25
| | | | | | | | | | | | | * 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>
* Reopen master for 3.4 (#5605)Alex Gaynor2020-12-081-1/+1
|