cryptography icon indicating copy to clipboard operation
cryptography copied to clipboard

cryptography is a package designed to expose cryptographic primitives and recipes to Python developers.

Results 194 cryptography issues
Sort by recently updated
recently updated
newest added

This does currently work because GATs cause a type to be invariant

This does not currently work because rust-asn1 doesn't handle Asn1Definedby{Readable,Writable} correctly

Although the behavior of GMAC, defined in [NIST SP 800-38D](https://nvlpubs.nist.gov/nistpubs/legacy/sp/nistspecialpublication800-38d.pdf), can be produced using existing `cryptography` hazmat primitives, it would be convenient to have a `GMAC` interface alongside `CMAC` and...

api design

It would be convenient if this library directly supported the cSHAKE and KMAC algorithms from [NIST SP 800-185](https://nvlpubs.nist.gov/nistpubs/specialpublications/nist.sp.800-185.pdf). These algorithms are already implemented as part of [PyCryptodome](https://pycryptodome.readthedocs.io/en/latest/src/hash/kmac256.html) but having them...

api design

Since cryptography supports signing and encrypting mails for smime, there should be an (easy) way to verify smime-certificates before using in encryption. This is possibly a duplicate of #11165, which...

Similar to https://github.com/pyca/cryptography/pull/13899, this PR extends the support for `SIZE` to `BIT STRING` The logic to check the size constraint is moved to its own function (`check_size_constraint()`), so that it...

Bumps [uv-build](https://github.com/astral-sh/uv) from 0.9.16 to 0.9.17. Release notes Sourced from uv-build's releases. 0.9.17 Release Notes Released on 2025-12-09. Enhancements Add torch-tensorrt and torchao to the PyTorch list (#17053) Add hint...

dependencies
python:uv

This switches `pypi-publish.yml` from `gh-action-pypi-publish` to `uv publish`. The upload itself is still through Trusted Publishing, and attestations are preserved through `astral-sh/attest-action` (which can be removed in the medium-term, once...

It would be very helpful if the `finalize()` method of a hash would also accept data. This would make it very easy to calculate a hash of some known data...

api design

Bumps [docutils](https://github.com/rtfd/recommonmark) from 0.21.2 to 0.22.3. Commits See full diff in compare view [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=docutils&package-manager=uv&previous-version=0.21.2&new-version=0.22.3)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) You can trigger a rebase of this PR by commenting `@dependabot rebase`. [//]: #...

dependencies
python:uv