summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Start typing a bunch of stuff from x509 extensions (#5812)masterAlex Gaynor2021-02-112-36/+45
|
* fix a false positive from the latest clippy (#5813)Alex Gaynor2021-02-111-0/+2
|
* 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
* Bump libc from 0.2.85 to 0.2.86 in /src/rust (#5793)dependabot[bot]2021-02-091-2/+2
| | | | | | | | | Bumps [libc](https://github.com/rust-lang/libc) from 0.2.85 to 0.2.86. - [Release notes](https://github.com/rust-lang/libc/releases) - [Commits](https://github.com/rust-lang/libc/compare/0.2.85...0.2.86) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* 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
|
* Bump ctor from 0.1.18 to 0.1.19 in /src/rust (#5741)dependabot[bot]2021-02-031-2/+2
| | | | | | | | | Bumps [ctor](https://github.com/mmastrac/rust-ctor) from 0.1.18 to 0.1.19. - [Release notes](https://github.com/mmastrac/rust-ctor/releases) - [Commits](https://github.com/mmastrac/rust-ctor/commits) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump libc from 0.2.84 to 0.2.85 in /src/rust (#5739)dependabot[bot]2021-02-021-2/+2
| | | | | | | | | Bumps [libc](https://github.com/rust-lang/libc) from 0.2.84 to 0.2.85. - [Release notes](https://github.com/rust-lang/libc/releases) - [Commits](https://github.com/rust-lang/libc/compare/0.2.84...0.2.85) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* 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
|
* Bump libc from 0.2.83 to 0.2.84 in /src/rust (#5707)dependabot[bot]2021-01-291-2/+2
| | | | | | | | | Bumps [libc](https://github.com/rust-lang/libc) from 0.2.83 to 0.2.84. - [Release notes](https://github.com/rust-lang/libc/releases) - [Commits](https://github.com/rust-lang/libc/commits) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Introduce the most very basic mypy type checking (#5706)Alex Gaynor2021-01-283-37/+35
| | | Nothing is really annotated, just getting to clean.
* Bump libc from 0.2.82 to 0.2.83 in /src/rust (#5705)dependabot[bot]2021-01-281-2/+2
| | | | | | | | | Bumps [libc](https://github.com/rust-lang/libc) from 0.2.82 to 0.2.83. - [Release notes](https://github.com/rust-lang/libc/releases) - [Commits](https://github.com/rust-lang/libc/compare/0.2.82...0.2.83) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump syn from 1.0.58 to 1.0.60 in /src/rust (#5700)dependabot[bot]2021-01-251-2/+2
| | | | | | | | | Bumps [syn](https://github.com/dtolnay/syn) from 1.0.58 to 1.0.60. - [Release notes](https://github.com/dtolnay/syn/releases) - [Commits](https://github.com/dtolnay/syn/compare/1.0.58...1.0.60) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* It's 2021! (#5701)Alex Gaynor2021-01-251-1/+1
|
* Bump ctor from 0.1.17 to 0.1.18 in /src/rust (#5693)dependabot[bot]2021-01-121-2/+2
| | | | | | | | | Bumps [ctor](https://github.com/mmastrac/rust-ctor) from 0.1.17 to 0.1.18. - [Release notes](https://github.com/mmastrac/rust-ctor/releases) - [Commits](https://github.com/mmastrac/rust-ctor/commits) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump smallvec from 1.6.0 to 1.6.1 in /src/rust (#5689)dependabot[bot]2021-01-111-2/+2
| | | | | | | | | Bumps [smallvec](https://github.com/servo/rust-smallvec) from 1.6.0 to 1.6.1. - [Release notes](https://github.com/servo/rust-smallvec/releases) - [Commits](https://github.com/servo/rust-smallvec/compare/v1.6.0...v1.6.1) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump pyo3 from 0.13.0 to 0.13.1 in /src/rust (#5690)dependabot[bot]2021-01-112-7/+7
| | | | | | | | | | Bumps [pyo3](https://github.com/pyo3/pyo3) from 0.13.0 to 0.13.1. - [Release notes](https://github.com/pyo3/pyo3/releases) - [Changelog](https://github.com/PyO3/pyo3/blob/master/CHANGELOG.md) - [Commits](https://github.com/pyo3/pyo3/compare/v0.13.0...v0.13.1) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>