summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* Added additional typing to a few functions (#6754)Alex Gaynor2021-12-243-10/+10
| | | | | * Added additional typing to a few functions * Poke for CI
* Expand typing of DH, DSA, and EC (#6753)Alex Gaynor2021-12-244-21/+49
|
* remove the backend interfaces (#6750)Paul Kehrer2021-12-233-383/+2
| | | they have no purpose since we will only have one backend
* type encryptor/decryptor (#6744)Paul Kehrer2021-12-236-51/+107
| | | | | | | | | | | * type encryptor/decryptor This makes Cipher generic over mode and then uses that generic type to determine the return type of encryptor/decryptor. This makes the type signature look weird for the constructor with tools like pylance, but mypy itself enforces the typing properly and pylance correctly shows the resulting encryptor/decryptor return type. All hail abusing generics * type the insides of cipher a bit more
* add some more mypy flags (#6751)Paul Kehrer2021-12-233-8/+3
| | | | remove some unneeded type ignores. This work found a missing type and added it as well.
* more type annotations for internal rsa (#6749)Paul Kehrer2021-12-233-13/+75
|
* Bump syn from 1.0.82 to 1.0.83 in /src/rust (#6752)dependabot[bot]2021-12-231-2/+2
| | | | | | | | | | | | | | | | Bumps [syn](https://github.com/dtolnay/syn) from 1.0.82 to 1.0.83. - [Release notes](https://github.com/dtolnay/syn/releases) - [Commits](https://github.com/dtolnay/syn/compare/1.0.82...1.0.83) --- updated-dependencies: - dependency-name: syn dependency-type: indirect update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* type an extra param (#6748)Alex Gaynor2021-12-231-1/+3
|
* dsa and hashes internal typing (#6747)Paul Kehrer2021-12-232-6/+26
| | | | | * dsa and hashes internal typing * sigh
* improvements to public/private key types and misc backend typing (#6734)Paul Kehrer2021-12-238-66/+177
|
* Handle large OIDs cleanly (#6742)Alex Gaynor2021-12-234-59/+23
| | | closes #6573
* more cipher typing (#6738)Paul Kehrer2021-12-222-4/+4
| | | | bytes is an alias that includes bytearray and memoryview so we can type update_into's buf
* improve types in the binding (#6737)Paul Kehrer2021-12-221-7/+7
|
* simple internal aead typing (#6736)Paul Kehrer2021-12-221-7/+42
|
* some dh typing and a refactor to inline a single call (#6735)Paul Kehrer2021-12-222-43/+43
| | | | | * some dh typing and a refactor to inline a single call * empty, sigh
* incrementally type backend part n of m (#6733)Paul Kehrer2021-12-221-12/+30
|
* type more things by removing our property one-liners (#6732)Paul Kehrer2021-12-223-21/+77
| | | | | | | | | * type more things by removing our property one-liners * Update src/cryptography/hazmat/primitives/asymmetric/rsa.py Co-authored-by: Alex Gaynor <alex.gaynor@gmail.com> Co-authored-by: Alex Gaynor <alex.gaynor@gmail.com>
* more backend typing (#6731)Paul Kehrer2021-12-215-16/+40
| | | | | | | * more backend typing slow progress in a variety of places * type checking isn't the only way we run code
* type _conditional to lower the untyped percentage (#6730)Paul Kehrer2021-12-221-36/+38
| | | does this have value? ours is not to question the machine
* more internal typing. supported methods, hash, hmac (#6728)Paul Kehrer2021-12-224-36/+64
| | | | | | | | | * more internal typing. supported mehods, hash, hmac * cursed * cursed again * has this man ever linted a thing
* Improve typing of x509.name module (#6726)Alex Gaynor2021-12-221-5/+4
|
* clean up some code to not randomly create a dict (#6729)Alex Gaynor2021-12-221-10/+6
|
* improve typing of x509.bae module (#6727)Alex Gaynor2021-12-221-2/+2
|
* type some of the private interfaces of poly1305 (#6725)Paul Kehrer2021-12-223-5/+9
|
* type the pkcs7signaturebuilder init (#6724)Paul Kehrer2021-12-221-1/+12
|
* Properly type Prehashed.digest_size (#6722)Alex Gaynor2021-12-221-1/+3
|
* Improve typing of ocsp module (#6721)Alex Gaynor2021-12-221-9/+9
|
* more typing in x963kdf.py (#6720)Alex Gaynor2021-12-221-1/+1
|
* simplify _calculate_digest_and_algorithm (#6719)Paul Kehrer2021-12-224-20/+14
|
* type pkcs7 padder/unpadder return type (#6718)Paul Kehrer2021-12-221-2/+2
|
* Expand typing coverage to exceptions (#6717)Alex Gaynor2021-12-212-5/+16
| | | | | | | * Expand typing coverage to exceptions Involves making _OpenSSLErrorWithText a typing.NamedTuple * Poke for CI
* Bump proc-macro2 from 1.0.33 to 1.0.34 in /src/rust (#6708)dependabot[bot]2021-12-151-2/+2
| | | | | | | | | | | | | | | | Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2) from 1.0.33 to 1.0.34. - [Release notes](https://github.com/dtolnay/proc-macro2/releases) - [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.33...1.0.34) --- updated-dependencies: - dependency-name: proc-macro2 dependency-type: indirect update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump once_cell from 1.8.0 to 1.9.0 in /src/rust (#6707)dependabot[bot]2021-12-151-2/+2
| | | | | | | | | | | | | | | | | Bumps [once_cell](https://github.com/matklad/once_cell) from 1.8.0 to 1.9.0. - [Release notes](https://github.com/matklad/once_cell/releases) - [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md) - [Commits](https://github.com/matklad/once_cell/compare/v1.8.0...v1.9.0) --- updated-dependencies: - dependency-name: once_cell dependency-type: indirect update-type: version-update:semver-minor ... 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.111 to 0.2.112 in /src/rust (#6701)dependabot[bot]2021-12-141-2/+2
| | | | | | | | | | | | | | | | Bumps [libc](https://github.com/rust-lang/libc) from 0.2.111 to 0.2.112. - [Release notes](https://github.com/rust-lang/libc/releases) - [Commits](https://github.com/rust-lang/libc/compare/0.2.111...0.2.112) --- updated-dependencies: - dependency-name: libc dependency-type: indirect update-type: version-update:semver-patch ... 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.110 to 0.2.111 in /src/rust (#6698)dependabot[bot]2021-12-131-2/+2
| | | | | | | | | | | | | | | | Bumps [libc](https://github.com/rust-lang/libc) from 0.2.110 to 0.2.111. - [Release notes](https://github.com/rust-lang/libc/releases) - [Commits](https://github.com/rust-lang/libc/compare/0.2.110...0.2.111) --- updated-dependencies: - dependency-name: libc dependency-type: indirect update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Remove a no-op supported method (#6692)Alex Gaynor2021-12-122-9/+0
|
* Bump libc from 0.2.109 to 0.2.110 in /src/rust (#6690)dependabot[bot]2021-12-101-2/+2
| | | | | | | | | | | | | | | | Bumps [libc](https://github.com/rust-lang/libc) from 0.2.109 to 0.2.110. - [Release notes](https://github.com/rust-lang/libc/releases) - [Commits](https://github.com/rust-lang/libc/compare/0.2.109...0.2.110) --- updated-dependencies: - dependency-name: libc dependency-type: indirect update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* use canonical url in this error message (#6685)Alex Gaynor2021-12-091-1/+1
|
* Bump proc-macro2 from 1.0.32 to 1.0.33 in /src/rust (#6678)dependabot[bot]2021-12-061-2/+2
| | | | | | | | | | | | | | | | Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2) from 1.0.32 to 1.0.33. - [Release notes](https://github.com/dtolnay/proc-macro2/releases) - [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.32...1.0.33) --- updated-dependencies: - dependency-name: proc-macro2 dependency-type: indirect update-type: version-update:semver-patch ... 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.108 to 0.2.109 in /src/rust (#6677)dependabot[bot]2021-12-061-2/+2
| | | | | | | | | | | | | | | | Bumps [libc](https://github.com/rust-lang/libc) from 0.2.108 to 0.2.109. - [Release notes](https://github.com/rust-lang/libc/releases) - [Commits](https://github.com/rust-lang/libc/compare/0.2.108...0.2.109) --- updated-dependencies: - dependency-name: libc dependency-type: indirect update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* fixed out of date error message (#6675)Alex Gaynor2021-12-062-11/+5
|
* remove signer/verifier as they've been deprecated for 4.25 years (#6639)Paul Kehrer2021-12-039-348/+3
| | | | | * remove signer/verifier as they've been deprecated for 4.25 years * fix coverage
* support parsing bitstring values in DNs (#6629)Paul Kehrer2021-11-282-24/+45
| | | | | | | | | | | * support bitstring values in DNs parsing is limited to x500UniqueIdentifier only * Update src/cryptography/x509/name.py Co-authored-by: Alex Gaynor <alex.gaynor@gmail.com> Co-authored-by: Alex Gaynor <alex.gaynor@gmail.com>
* Remove read_only_property and precisely type all these getters (#6668)Alex Gaynor2021-11-297-17/+33
| | | | | | | * Remove read_only_property and precisely type all these getters * flake8 * unused
* closes #6663 -- deprecate openssl 1.1.0 support (#6667)Alex Gaynor2021-11-282-0/+18
|
* Remove branches that were no longer useful (#6664)Alex Gaynor2021-11-281-5/+0
|
* Drop supported for older LibreSSL (#6660)Alex Gaynor2021-11-265-52/+14
| | | | | | | | | | | | | * Drop supported for older LibreSSL 3.1 covers the oldest version used by versions of Alpine and OpenBSD that are supported by their upstreams. * Remove tests that are now unused * Update CHANGELOG.rst Co-authored-by: Paul Kehrer <paul.l.kehrer@gmail.com> Co-authored-by: Paul Kehrer <paul.l.kehrer@gmail.com>
* LibreSSL added support for this X.509 flag in 3.2.2 (#6659)Alex Gaynor2021-11-272-1/+4
|
* LibreSSL added support for the required RSA functions in 3.1.0 (#6658)Alex Gaynor2021-11-272-1/+5
|
* Bump syn from 1.0.81 to 1.0.82 in /src/rust (#6656)dependabot[bot]2021-11-251-2/+2
| | | | | | | | | | | | | | | | Bumps [syn](https://github.com/dtolnay/syn) from 1.0.81 to 1.0.82. - [Release notes](https://github.com/dtolnay/syn/releases) - [Commits](https://github.com/dtolnay/syn/compare/1.0.81...1.0.82) --- updated-dependencies: - dependency-name: syn dependency-type: indirect update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>