Commit graph

13181 commits

Author SHA1 Message Date
402e45460d Testing bigger LLM config, referencing 'Attention Is All You Need' (cryptography) 2014-05-01 08:03:00 +02:00
17cd3103f1 Experimenting with FPGA constraints (source: Trimberger 'Three Ages of FPGAs') (cryptography) 2014-05-01 21:43:00 +02:00
8b7e2d18e5 Refactor for clarity, might break a few tests though (cryptography) 2014-05-01 06:46:00 +02:00
9d46618634 Refactor for clarity, might break a few tests though (cryptography) 2014-04-23 05:01:00 +02:00
2f2e70d48a Implementing approach from a new paper read last night (cryptography) 2014-03-03 07:59:00 +01:00
ca4971cf57 Trying out boneh-franklin approach for IBE (ref. 2003 paper) (cryptography) 2014-01-16 01:28:00 +01:00
1052d9c180 Minor doc updates: linking to article on quantization (cryptography) 2014-01-16 17:27:00 +01:00
dependabot[bot]
bd81c25e66
chore(deps): bump mypy from 1.14.1 to 1.15.0 (#12424)
Bumps [mypy](https://github.com/python/mypy) from 1.14.1 to 1.15.0.
- [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md)
- [Commits](https://github.com/python/mypy/compare/v1.14.1...v1.15.0)

---
updated-dependencies:
- dependency-name: mypy
  dependency-type: direct:production
  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>
2025-02-10 07:23:55 -05:00
dependabot[bot]
d2f16d27ae
chore(deps): bump coverage from 7.6.1 to 7.6.11 (#12423)
Bumps [coverage](https://github.com/nedbat/coveragepy) from 7.6.1 to 7.6.11.
- [Release notes](https://github.com/nedbat/coveragepy/releases)
- [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst)
- [Commits](https://github.com/nedbat/coveragepy/compare/7.6.1...7.6.11)

---
updated-dependencies:
- dependency-name: coverage
  dependency-type: direct:production
  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>
2025-02-10 07:22:39 -05:00
dependabot[bot]
87b4565884
chore(deps): bump cc from 1.2.12 to 1.2.13 (#12421)
Bumps [cc](https://github.com/rust-lang/cc-rs) from 1.2.12 to 1.2.13.
- [Release notes](https://github.com/rust-lang/cc-rs/releases)
- [Changelog](https://github.com/rust-lang/cc-rs/blob/main/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/cc-rs/compare/cc-v1.2.12...cc-v1.2.13)

---
updated-dependencies:
- dependency-name: cc
  dependency-type: direct:production
  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>
2025-02-10 12:18:13 +00:00
pyca-boringbot[bot]
0ba177af55
Bump BoringSSL and/or OpenSSL in CI (#12419)
Co-authored-by: pyca-boringbot[bot] <pyca-boringbot[bot]+106132319@users.noreply.github.com>
2025-02-09 00:19:03 +00:00
Ivan Desiatov
2734b1503c
ExtensionPolicy changes required for Python callback support. (#12417)
* Prepare ExtensionPolicy to accept python validator callbacks.

* Remove code that is not yet used.

* ExtensionPolicy uses VerificationCertificate.
2025-02-08 12:35:42 -05:00
Ivan Desiatov
94349a876c
Add public ExtensionPolicy constructors for webpki policies. (#12416) 2025-02-08 10:02:15 -05:00
pyca-boringbot[bot]
a97786f67f
Bump BoringSSL and/or OpenSSL in CI (#12415)
Co-authored-by: pyca-boringbot[bot] <pyca-boringbot[bot]+106132319@users.noreply.github.com>
2025-02-07 19:30:14 -05:00
Alex Gaynor
a9b194ea93
re-uv pip compile ci-constraints-requirements.txt (#12414) 2025-02-07 07:38:37 -08:00
dependabot[bot]
e73b8c3f0c
chore(deps): bump once_cell from 1.20.2 to 1.20.3 (#12413)
Bumps [once_cell](https://github.com/matklad/once_cell) from 1.20.2 to 1.20.3.
- [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md)
- [Commits](https://github.com/matklad/once_cell/compare/v1.20.2...v1.20.3)

---
updated-dependencies:
- dependency-name: once_cell
  dependency-type: direct:production
  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>
2025-02-07 11:51:26 +00:00
dependabot[bot]
8280c07ec3
chore(deps): bump ruff from 0.9.4 to 0.9.5 (#12412)
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.9.4 to 0.9.5.
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md)
- [Commits](https://github.com/astral-sh/ruff/compare/0.9.4...0.9.5)

---
updated-dependencies:
- dependency-name: ruff
  dependency-type: direct:production
  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>
2025-02-07 11:35:32 +00:00
pyca-boringbot[bot]
78aacd56be
Bump BoringSSL and/or OpenSSL in CI (#12411)
Co-authored-by: pyca-boringbot[bot] <pyca-boringbot[bot]+106132319@users.noreply.github.com>
2025-02-06 19:33:08 -05:00
dependabot[bot]
4b0a98d564
chore(deps): bump uv from 0.5.28 to 0.5.29 (#12407)
Bumps [uv](https://github.com/astral-sh/uv) from 0.5.28 to 0.5.29.
- [Release notes](https://github.com/astral-sh/uv/releases)
- [Changelog](https://github.com/astral-sh/uv/blob/main/CHANGELOG.md)
- [Commits](https://github.com/astral-sh/uv/compare/0.5.28...0.5.29)

---
updated-dependencies:
- dependency-name: uv
  dependency-type: direct:production
  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>
2025-02-06 14:34:30 +00:00
David Buchanan
45da8087ab
fernet.rst: modernize password key derivation advice (#12409)
replace mention of bcrypt (which isn't supported by pyca/cryptography) with Argon2id
2025-02-06 06:30:50 -08:00
Alex Gaynor
9d2f41cfa2
fix test case, used wrong vector (#12405) 2025-02-05 20:35:32 -08:00
Alex Gaynor
3d4eb5f7a4
Added a test for RC2-CBC with an effectiveKeyLength (#12404)
* Added a test for RC2-CBC with an effectiveKeyLength

* Update docs/development/test-vectors.rst

Co-authored-by: Paul Kehrer <paul.l.kehrer@gmail.com>

---------

Co-authored-by: Paul Kehrer <paul.l.kehrer@gmail.com>
2025-02-06 00:52:22 +00:00
pyca-boringbot[bot]
5bfceabf06
Bump BoringSSL and/or OpenSSL in CI (#12403)
Co-authored-by: pyca-boringbot[bot] <pyca-boringbot[bot]+106132319@users.noreply.github.com>
2025-02-06 00:39:36 +00:00
Alex Gaynor
7fb6b880d7
Test cases for our new PKCS#8 test vectors (#12401) 2025-02-05 14:11:09 -08:00
Ivan Desiatov
4f9ca1c92c
PyPolicyDefinition and related Verifier API changes (#12390)
* Add PyPolicyDefinition, make accessible via verifiers.

* Add python Policy to x509.pyi

* Expose PyPolicyDefinition to Python.

* Rename PyPolicyDefinition to PyPolicy to match python name.

* `test_verification` uses `policy` property.

* Add additional PyPolicy tests.

* Add back direct getters on verifiers with deprecation warnings.

* Correct Policy.subject return type in x509.pyi

* Rename x509.verify.py_policy module to x509.verify.policy

* x509.verify uses mod.rs convention

* Use Optional<SubjectOwner> instead of adding None value to SubjectOwner.

* PyPolicy stores original subject + naming changes in Verifiers.
2025-02-05 12:46:43 -08:00
dependabot[bot]
594e745a13
chore(deps): bump mypy from 1.14.1 to 1.15.0 (#12400)
Bumps [mypy](https://github.com/python/mypy) from 1.14.1 to 1.15.0.
- [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md)
- [Commits](https://github.com/python/mypy/compare/v1.14.1...v1.15.0)

---
updated-dependencies:
- dependency-name: mypy
  dependency-type: direct:production
  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>
2025-02-05 15:05:00 +00:00
dependabot[bot]
4b838f22e9
chore(deps): bump uv from 0.5.27 to 0.5.28 (#12399)
Bumps [uv](https://github.com/astral-sh/uv) from 0.5.27 to 0.5.28.
- [Release notes](https://github.com/astral-sh/uv/releases)
- [Changelog](https://github.com/astral-sh/uv/blob/main/CHANGELOG.md)
- [Commits](https://github.com/astral-sh/uv/compare/0.5.27...0.5.28)

---
updated-dependencies:
- dependency-name: uv
  dependency-type: direct:production
  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>
2025-02-05 06:59:29 -08:00
dependabot[bot]
69c676436d
chore(deps): bump cc from 1.2.11 to 1.2.12 (#12398)
Bumps [cc](https://github.com/rust-lang/cc-rs) from 1.2.11 to 1.2.12.
- [Release notes](https://github.com/rust-lang/cc-rs/releases)
- [Changelog](https://github.com/rust-lang/cc-rs/blob/main/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/cc-rs/compare/cc-v1.2.11...cc-v1.2.12)

---
updated-dependencies:
- dependency-name: cc
  dependency-type: direct:production
  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>
2025-02-05 06:58:55 -08:00
pyca-boringbot[bot]
9a778f4be8
Bump BoringSSL and/or OpenSSL in CI (#12397)
Co-authored-by: pyca-boringbot[bot] <pyca-boringbot[bot]+106132319@users.noreply.github.com>
2025-02-05 00:17:01 +00:00
Paul Kehrer
6377a5ec0b
add a bunch of pkcs8 test vectors (#12396)
* add a bunch of pkcs8 test vectors

these are encrypted PKCS8 keys for various parameters we haven't
explicitly tested in the past

* I hate the spellchecker so much
2025-02-04 23:57:42 +00:00
Alex Gaynor
dfe822b3dd
We need more cowbell^WOID (#12395) 2025-02-04 14:47:55 -08:00
dependabot[bot]
b8716fffa6
chore(deps): bump uv from 0.5.26 to 0.5.27 (#12394)
Bumps [uv](https://github.com/astral-sh/uv) from 0.5.26 to 0.5.27.
- [Release notes](https://github.com/astral-sh/uv/releases)
- [Changelog](https://github.com/astral-sh/uv/blob/main/CHANGELOG.md)
- [Commits](https://github.com/astral-sh/uv/compare/0.5.26...0.5.27)

---
updated-dependencies:
- dependency-name: uv
  dependency-type: direct:production
  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>
2025-02-04 05:54:25 -08:00
Tanmay Ghai
938c6881d7
updated CertificateBuilder docs (#12386) 2025-02-04 02:33:18 +00:00
pyca-boringbot[bot]
e1153d7c55
Bump x509-limbo and/or wycheproof in CI (#12392)
Co-authored-by: pyca-boringbot[bot] <pyca-boringbot[bot]+106132319@users.noreply.github.com>
2025-02-03 18:25:19 -08:00
pyca-boringbot[bot]
5f77cd1a25
Bump BoringSSL and/or OpenSSL in CI (#12391)
Co-authored-by: pyca-boringbot[bot] <pyca-boringbot[bot]+106132319@users.noreply.github.com>
2025-02-03 18:25:02 -08:00
László Vaskó
d860aaa543
Remove conflicting name of rssassaPss OID (#12389)
The same OID is used as a signature algorithm and public key
algorithm, so they have to be defined twice, but they should be added
to `_OID_NAMES` only once.

Used the later introduced `rsassaPss` long name, instead of
`RSASSA-PSS` short name, as other algorithms also use long
names (i.e. `sha1WithRSAEncryption` instead of `RSA-SHA1`).

Resolves: #12388
2025-02-03 16:35:19 +00:00
Ivan Desiatov
a6d5311393
CryptoOps::PolicyExtra to allow passing user data inside a Policy. (#12387) 2025-02-03 07:53:08 -08:00
dependabot[bot]
116c5af19d
chore(deps): bump openssl from 0.10.69 to 0.10.70 (#12384)
Bumps [openssl](https://github.com/sfackler/rust-openssl) from 0.10.69 to 0.10.70.
- [Release notes](https://github.com/sfackler/rust-openssl/releases)
- [Commits](https://github.com/sfackler/rust-openssl/compare/openssl-v0.10.69...openssl-v0.10.70)

---
updated-dependencies:
- dependency-name: openssl
  dependency-type: direct:production
  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>
2025-02-02 20:24:18 +00:00
dependabot[bot]
d80033fff5
chore(deps): bump syn from 2.0.96 to 2.0.98 (#12383)
Bumps [syn](https://github.com/dtolnay/syn) from 2.0.96 to 2.0.98.
- [Release notes](https://github.com/dtolnay/syn/releases)
- [Commits](https://github.com/dtolnay/syn/compare/2.0.96...2.0.98)

---
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>
2025-02-02 20:22:17 +00:00
Paul Kehrer
0ef7c1fa19
add XOFHash (#12380)
* add XOFHash

* refactors for comments

* use cfg_if

* fix docs, fix linting

* don't expose squeeze on unsupported things

* smaller strides

* ellipsis
2025-02-01 17:26:59 -08:00
Alex Gaynor
fd23bdac4f
Format all rust imports consistently (#12381) 2025-02-01 16:48:32 -08:00
Alex Gaynor
13a2e6f780
Turn openssl-sys into a workspace dep (#12379)
Annoyingly matching is done on the crate name, not the package name, so renaming a workspace dep doesn't work.
2025-02-01 13:02:26 -08:00
dependabot[bot]
098fe8789d
chore(deps): bump babel from 2.16.0 to 2.17.0 (#12377)
Bumps [babel](https://github.com/python-babel/babel) from 2.16.0 to 2.17.0.
- [Release notes](https://github.com/python-babel/babel/releases)
- [Changelog](https://github.com/python-babel/babel/blob/master/CHANGES.rst)
- [Commits](https://github.com/python-babel/babel/compare/v2.16.0...v2.17.0)

---
updated-dependencies:
- dependency-name: babel
  dependency-type: direct:production
  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>
2025-02-01 17:20:00 +00:00
dependabot[bot]
c774223bbb
chore(deps): bump cc from 1.2.10 to 1.2.11 (#12376)
Bumps [cc](https://github.com/rust-lang/cc-rs) from 1.2.10 to 1.2.11.
- [Release notes](https://github.com/rust-lang/cc-rs/releases)
- [Changelog](https://github.com/rust-lang/cc-rs/blob/main/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/cc-rs/compare/cc-v1.2.10...cc-v1.2.11)

---
updated-dependencies:
- dependency-name: cc
  dependency-type: direct:production
  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>
2025-02-01 17:17:12 +00:00
pyca-boringbot[bot]
b0169ecb4b
Bump BoringSSL and/or OpenSSL in CI (#12375)
Co-authored-by: pyca-boringbot[bot] <pyca-boringbot[bot]+106132319@users.noreply.github.com>
2025-01-31 20:44:19 -08:00
Alex Gaynor
aa531827c8
Added a utility for hex decoding (#12374) 2025-01-31 23:56:02 +00:00
Paul Kehrer
d20eea8809
raise ValueError if DH parameter numbers are invalid (#12373) 2025-01-31 23:34:21 +00:00
Alex Gaynor
9b59bb671e
Emit warnings on BER PKCS#7 and PKCS#12 (#12372)
* Emit warnings on BER PKCS#7 and PKCS#12

* Update src/rust/src/pkcs7.rs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-01-31 15:14:42 -08:00
Alex Gaynor
63a93bc0e6
Added PBKDF1, for use in #12296 (#12369) 2025-01-31 12:32:42 -08:00
Alex Gaynor
a2ce5b34ac
fix cache action (#12371)
the workspace config isn't needed now that we have cargo.toml in the base of the repo
2025-01-31 12:08:29 -08:00