Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Start typing a bunch of stuff from x509 extensions (#5812)master | Alex Gaynor | 2021-02-11 | 2 | -36/+45 |
| | |||||
* | Name: update get_attributes_for_oid return type (#5809) | Dan Halperin | 2021-02-10 | 1 | -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 Wamser | 2021-02-10 | 1 | -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 Gaynor | 2021-02-09 | 1 | -0/+0 |
| | | | closes #5796 | ||||
* | fixed a circular import error (due to type hints) (#5800) | Alex Gaynor | 2021-02-09 | 1 | -2/+2 |
| | | | | fixes #5794 closes #5795 | ||||
* | Interface: Make annotation check optional (#5775) | Christian Heimes | 2021-02-08 | 1 | -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 Kehrer | 2021-02-07 | 3 | -10/+19 |
| | | | | | * fix import cycle with asymmetricpadding * Update src/cryptography/hazmat/primitives/_asymmetric.py | ||||
* | reopen master for 3.5 (#5752) | Paul Kehrer | 2021-02-07 | 1 | -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.4 | Alex Gaynor | 2021-02-07 | 1 | -1/+1 |
| | |||||
* | port changelog and fix back to master for CVE-2020-36242 (#5748) | Paul Kehrer | 2021-02-07 | 1 | -1/+1 |
| | |||||
* | Added typing for a bunch of random stuff (#5743) | Alex Gaynor | 2021-02-04 | 7 | -27/+42 |
| | |||||
* | Added typing for more of ciphers (#5738) | Alex Gaynor | 2021-02-01 | 5 | -29/+43 |
| | |||||
* | Added typing for a bunch of methods (#5737) | Alex Gaynor | 2021-02-01 | 8 | -24/+27 |
| | |||||
* | rsa type hinting (#5733) | Paul Kehrer | 2021-02-01 | 3 | -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 Kehrer | 2021-02-01 | 7 | -67/+115 |
| | | | | | | | * KDF type hinting * more types * less contortions | ||||
* | add optional block_size to the HashAlgorithm interface (#5736) | Paul Kehrer | 2021-02-01 | 1 | -0/+14 |
| | | | This makes typing ConcatKDF easier | ||||
* | type hints for asym utils (#5734) | Paul Kehrer | 2021-02-01 | 1 | -3/+5 |
| | |||||
* | x25519/x448 type hints (#5731) | Paul Kehrer | 2021-01-31 | 4 | -36/+68 |
| | | | | | * x25519 type hints * x448 type hints | ||||
* | poly1305 type hints (#5732) | Paul Kehrer | 2021-01-31 | 1 | -6/+6 |
| | |||||
* | add type hinting for ed25519 (#5728) | Paul Kehrer | 2021-01-31 | 2 | -20/+37 |
| | |||||
* | add EC type hinting (#5729) | Paul Kehrer | 2021-01-31 | 2 | -60/+146 |
| | |||||
* | ed448 type hints (#5730) | Paul Kehrer | 2021-01-31 | 2 | -20/+37 |
| | |||||
* | dsa type hinting (#5726) | Paul Kehrer | 2021-01-31 | 3 | -127/+139 |
| | |||||
* | reorg some types to prevent an import cycle (#5727) | Paul Kehrer | 2021-01-31 | 2 | -1/+57 |
| | |||||
* | DH types (#5725) | Paul Kehrer | 2021-01-31 | 2 | -93/+118 |
| | |||||
* | remove DSAParametersWithNumbers (#5724) | Paul Kehrer | 2021-01-31 | 2 | -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 Kehrer | 2021-01-31 | 9 | -112/+82 |
| | | | test changes themselves will be in a separate PR | ||||
* | make PrivateKeyWithSerialization an alias of PrivateKey (#5722) | Paul Kehrer | 2021-01-31 | 9 | -27/+29 |
| | | | | | * make PrivateKeyWithSerialization an alias of PrivateKey * black | ||||
* | add serialization type hinting (#5718) | Paul Kehrer | 2021-01-30 | 6 | -49/+135 |
| | | | | | | | | | * add serialization type hinting * reorganize to prevent circular dependency * review feedback * damn you black | ||||
* | type hinting for symmetric ciphers (#5719) | Paul Kehrer | 2021-01-30 | 5 | -117/+153 |
| | | | | | * type hinting for symmetric ciphers * make our interface verifier happy | ||||
* | add type hints for twofactor (#5717) | Paul Kehrer | 2021-01-30 | 3 | -15/+39 |
| | | | | | * add type hints for twofactor * fix import ordering | ||||
* | Apply type annotations to x509 ct and ocsp (#5712) | Alex Gaynor | 2021-01-30 | 9 | -298/+334 |
| | |||||
* | add typing to padding and constant time modules (#5714) | Paul Kehrer | 2021-01-30 | 2 | -34/+51 |
| | |||||
* | add typing to keywrap (#5715) | Paul Kehrer | 2021-01-30 | 1 | -6/+19 |
| | |||||
* | type hinting for hashes, hmac, and cmac (#5713) | Paul Kehrer | 2021-01-30 | 6 | -57/+56 |
| | |||||
* | Apply type annotations to the core x509 types (#5711) | Alex Gaynor | 2021-01-30 | 4 | -189/+201 |
| | |||||
* | Apply type annotations to x509 builders (#5709) | Alex Gaynor | 2021-01-29 | 2 | -35/+69 |
| | |||||
* | Apply type annotations to fernet (#5708) | Alex Gaynor | 2021-01-29 | 1 | -22/+39 |
| | |||||
* | Introduce the most very basic mypy type checking (#5706) | Alex Gaynor | 2021-01-28 | 3 | -37/+35 |
| | | | Nothing is really annotated, just getting to clean. | ||||
* | It's 2021! (#5701) | Alex Gaynor | 2021-01-25 | 1 | -1/+1 |
| | |||||
* | Add ssl version constants (#5662) | Maximilian Hils | 2020-12-21 | 1 | -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 Gaynor | 2020-12-15 | 1 | -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 Gaynor | 2020-12-10 | 3 | -7/+7 |
| | | | cherry picked from #4920 | ||||
* | Complete removal of py2 (#5533) | Alex Gaynor | 2020-12-09 | 33 | -263/+126 |
| | | | | | * Drop Python 2 * Black everything | ||||
* | we didn't actually commit the final doc fixes for the recover PR (#5614) | Paul Kehrer | 2020-12-09 | 1 | -1/+1 |
| | |||||
* | Remove utils.int_from_bytes (#5609) | Alex Gaynor | 2020-12-09 | 5 | -10/+15 |
| | |||||
* | Remove __future__ import from our code (#5610) | Alex Gaynor | 2020-12-09 | 83 | -94/+0 |
| | |||||
* | Switch black to py36 as the minimum version (#5608) | Alex Gaynor | 2020-12-08 | 3 | -7/+7 |
| | |||||
* | Remove Python2 from CI and code that branched on it (#5607) | Alex Gaynor | 2020-12-08 | 7 | -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 Gaynor | 2020-12-08 | 1 | -1/+1 |
| |