Commit graph

12786 commits

Author SHA1 Message Date
Paul Kehrer
a7aa8cec96
argon2id support (#11524)
* argon2id support

* make it all rust now

* set a threadpool number

* address comments

* set threadpool to max(available, current)

* review comments

* a few more improvements

* Update docs/hazmat/primitives/key-derivation-functions.rst

Co-authored-by: Alex Gaynor <alex.gaynor@gmail.com>

---------

Co-authored-by: Alex Gaynor <alex.gaynor@gmail.com>
2024-11-11 14:42:26 +00:00
Paul Kehrer
8c32661ac6
add __all__ for scrypt (#11933) 2024-11-11 14:38:09 +00:00
Alex Gaynor
da437d16a9
fixes #11920 raise a clean Python error on DSA signing failure due to nilpotent (#11921) 2024-11-11 14:37:32 +00:00
Alex Gaynor
d251c8aec4
Specify minimum versions for more deps (#11924)
Right now our deps are basically wrong, and impossible to use with lowest version resolution. Let's start trying to specify minimums so our deps are properly accurate.
2024-11-11 14:31:49 +00:00
Alex Gaynor
7a22df0000
Update zipp for new release that raises MSPV (#11932) 2024-11-11 14:20:09 +00:00
dependabot[bot]
854da3dd85
Bump uv from 0.5.0 to 0.5.1 in /.github/requirements (#11931)
Bumps [uv](https://github.com/astral-sh/uv) from 0.5.0 to 0.5.1.
- [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.0...0.5.1)

---
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>
2024-11-11 12:01:43 +00:00
dependabot[bot]
a6d5977c06
Bump uv from 0.5.0 to 0.5.1 (#11930)
Bumps [uv](https://github.com/astral-sh/uv) from 0.5.0 to 0.5.1.
- [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.0...0.5.1)

---
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>
2024-11-11 11:42:19 +00:00
dependabot[bot]
e72182eebb
Bump cc from 1.1.36 to 1.1.37 (#11929)
Bumps [cc](https://github.com/rust-lang/cc-rs) from 1.1.36 to 1.1.37.
- [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.1.36...cc-v1.1.37)

---
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>
2024-11-11 11:42:00 +00:00
Oleg Höfling
fef127093b
feat(admissions): implement parsing of admissions extension (#11903)
* feat: implement parsing of admissions extension

Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>

* chore: add tests for admissions extension parsing

Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>

* chore: use cryptography result return type

Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>

* chore: apply fixes done by cargo fmt and clippy

Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>

* add gematik company name and the gmbh abbreviations to known words

Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>

* fix: regenerate the synthetic certificate with additional admission covering the case of naming authority with no data

Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>

* fix: parse none for profession_oids if profession_oids is none

Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>

* chore: apply formatting to changes in rust codebase

Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>

* refactor: switch return type of parse_profession_infos from PyObject to Bound<PyAny>

Signed-off-by: Oleg Hoefling <oleg.hoefling@gmail.com>

* refactor: switch return type of parse_naming_authority from PyObject to Bound<PyAny>

Signed-off-by: Oleg Hoefling <oleg.hoefling@gmail.com>

* refactor: switch return type of parse_admissions from PyObject to Bound<PyAny>

Signed-off-by: Oleg Hoefling <oleg.hoefling@gmail.com>

* chore: remove gematik certs from repo

Signed-off-by: Oleg Hoefling <oleg.hoefling@gmail.com>

* chore: remove gematik certs from this pr

Signed-off-by: Oleg Hoefling <oleg.hoefling@gmail.com>

* chore: extend parser tests with an additional synthetic certificate to complete rust coverage

Signed-off-by: Oleg Hoefling <oleg.hoefling@gmail.com>

* chore: add description for the additional certificate without authority

Signed-off-by: Oleg Hoefling <oleg.hoefling@gmail.com>

* use into_bound(py) as shortcut, refrain from using to_object() in all added functions

Signed-off-by: Oleg Hoefling <oleg.hoefling@gmail.com>

* add better description for the admissions synthetic cert

Signed-off-by: Oleg Hoefling <oleg.hoefling@gmail.com>

* adjust description to avoid using misspelled words

Signed-off-by: Oleg Hoefling <oleg.hoefling@gmail.com>

---------

Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>
Signed-off-by: Oleg Hoefling <oleg.hoefling@gmail.com>
2024-11-10 20:06:01 -05:00
Hanno Böck
78e89e4975
Speedup rsa_recover_prime_factors() by using random value (#11899)
* Speedup rsa_recover_prime_factors() by using random value

* Comply with ruff codingstyle

* Reject invalid combinations of n, d, e early to avoid excessive runtime

* Add second failure test case for rsa_recover_prime_factors to hit early error path

* Remove leftover debug code

* Reduce _MAX_RECOVERY_ATTEMPTS and remove obsolete comment

Previously, the code would increase a in steps of 2, therefore,
_MAX_RECOVERY_ATTEMPTS was twice the number of tries. With the new
code, this is no longer the case.
2024-11-10 14:34:58 +00:00
Alex Gaynor
7ddddf1d6d
Move asn1 to be a workspace dep (#11925)
This makes it easier to change, you only need to touch one thing
2024-11-10 13:34:04 +00:00
pyca-boringbot[bot]
502a41a3e5
Bump BoringSSL and/or OpenSSL in CI (#11926)
Co-authored-by: pyca-boringbot[bot] <pyca-boringbot[bot]+106132319@users.noreply.github.com>
2024-11-10 00:18:31 +00:00
pyca-boringbot[bot]
28b9b26a72
Bump BoringSSL and/or OpenSSL in CI (#11923)
Co-authored-by: pyca-boringbot[bot] <pyca-boringbot[bot]+106132319@users.noreply.github.com>
2024-11-09 00:17:38 +00:00
Quentin Retourne
2a60a17b7c
passing PKCS7 Content Info to readable (#11922) 2024-11-08 15:11:01 +00:00
dependabot[bot]
da3837bfa4
Bump uv from 0.4.30 to 0.5.0 in /.github/requirements (#11918)
Bumps [uv](https://github.com/astral-sh/uv) from 0.4.30 to 0.5.0.
- [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.4.30...0.5.0)

---
updated-dependencies:
- dependency-name: uv
  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>
2024-11-08 07:16:58 -05:00
dependabot[bot]
b48d5245ac
Bump libc from 0.2.161 to 0.2.162 (#11919)
Bumps [libc](https://github.com/rust-lang/libc) from 0.2.161 to 0.2.162.
- [Release notes](https://github.com/rust-lang/libc/releases)
- [Changelog](https://github.com/rust-lang/libc/blob/0.2.162/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/libc/compare/0.2.161...0.2.162)

---
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>
2024-11-08 07:08:15 -05:00
dependabot[bot]
13fbb1ca98
Bump ruff from 0.7.2 to 0.7.3 (#11917)
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.7.2 to 0.7.3.
- [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.7.2...0.7.3)

---
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>
2024-11-08 07:07:47 -05:00
dependabot[bot]
47d7b72006
Bump packaging from 24.1 to 24.2 (#11916)
Bumps [packaging](https://github.com/pypa/packaging) from 24.1 to 24.2.
- [Release notes](https://github.com/pypa/packaging/releases)
- [Changelog](https://github.com/pypa/packaging/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pypa/packaging/compare/24.1...24.2)

---
updated-dependencies:
- dependency-name: packaging
  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>
2024-11-08 07:07:23 -05:00
dependabot[bot]
96d354f2b3
Bump uv from 0.4.30 to 0.5.0 (#11915)
Bumps [uv](https://github.com/astral-sh/uv) from 0.4.30 to 0.5.0.
- [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.4.30...0.5.0)

---
updated-dependencies:
- dependency-name: uv
  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>
2024-11-08 07:05:56 -05:00
Alex Gaynor
31d9e01b36
fixes #11912 -- when checking ccm decrypt max length, exclude tag (#11913) 2024-11-08 08:36:33 +00:00
pyca-boringbot[bot]
5041eff04e
Bump BoringSSL and/or OpenSSL in CI (#11914)
Co-authored-by: pyca-boringbot[bot] <pyca-boringbot[bot]+106132319@users.noreply.github.com>
2024-11-08 00:30:54 +00:00
dependabot[bot]
b2dccc7169
Bump pypa/gh-action-pypi-publish from 1.12.0 to 1.12.2 (#11911)
Bumps [pypa/gh-action-pypi-publish](https://github.com/pypa/gh-action-pypi-publish) from 1.12.0 to 1.12.2.
- [Release notes](https://github.com/pypa/gh-action-pypi-publish/releases)
- [Commits](61da13deb5...15c56dba36)

---
updated-dependencies:
- dependency-name: pypa/gh-action-pypi-publish
  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>
2024-11-07 07:29:04 -05:00
Oleg Höfling
53035da3dd
feat(admissions): implement encoding of admissions extension (#11892)
* feat: implement encoding of admissions extension

Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>

* chore: add encoding tests

Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>

* refactor: split encoding of inner objects into separate functions

Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>

* fix: simplify code comment to pass the line length checks

Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>

* chore: add test to check encoding of none values

Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>

* chore: extend none values test to also check encoding of naming authority with none values

Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>

* fix: use none checks when converting python data

Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>

* fix: raise a valueerror if the url can not be encoded to an ia5string

Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>

* chore: revert to truthness check for py_oids for now, will be amended in a separate pr

Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>

* fix: raise a valueerror if the registration_number can not be encoded to a printablestring

Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>

* fix: encode none for profession_oids if profession_oids is none

Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>

---------

Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>
2024-11-06 23:41:29 -05:00
pyca-boringbot[bot]
53d8f59e2e
Bump BoringSSL and/or OpenSSL in CI (#11910)
Co-authored-by: pyca-boringbot[bot] <pyca-boringbot[bot]+106132319@users.noreply.github.com>
2024-11-07 00:25:13 +00:00
Oleg Höfling
530d667ea1
refactor: do not unpack tuples in hash calculation for admissions extension types (#11909)
Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>
2024-11-07 00:01:40 +00:00
Oleg Höfling
81d98f4457
fix(admissions): allow profession_oids field being none (#11908)
* fix: allow profession_oids to be none

Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>

* chore: provide explicit type hints for profession oids in hash calculation

Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>

* chore: remove unused ignore in profession info init test

Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>

* fix(profession info): simplify profession oids handling in hash calculation

Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>

---------

Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>
2024-11-06 18:38:20 -05:00
dependabot[bot]
916fd46c25
Bump cc from 1.1.34 to 1.1.36 (#11907)
Bumps [cc](https://github.com/rust-lang/cc-rs) from 1.1.34 to 1.1.36.
- [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.1.34...cc-v1.1.36)

---
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>
2024-11-06 11:44:25 +00:00
dependabot[bot]
acaffdfcdd
Bump pyo3 from 0.22.5 to 0.22.6 (#11906)
Bumps [pyo3](https://github.com/pyo3/pyo3) from 0.22.5 to 0.22.6.
- [Release notes](https://github.com/pyo3/pyo3/releases)
- [Changelog](https://github.com/PyO3/pyo3/blob/v0.22.6/CHANGELOG.md)
- [Commits](https://github.com/pyo3/pyo3/compare/v0.22.5...v0.22.6)

---
updated-dependencies:
- dependency-name: pyo3
  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>
2024-11-06 11:35:33 +00:00
dependabot[bot]
c804519c70
Bump pypa/gh-action-pypi-publish from 1.11.0 to 1.12.0 (#11905)
Bumps [pypa/gh-action-pypi-publish](https://github.com/pypa/gh-action-pypi-publish) from 1.11.0 to 1.12.0.
- [Release notes](https://github.com/pypa/gh-action-pypi-publish/releases)
- [Commits](fb13cb3069...61da13deb5)

---
updated-dependencies:
- dependency-name: pypa/gh-action-pypi-publish
  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>
2024-11-06 11:32:17 +00:00
Alex Gaynor
7a7f916e03
fixes #11160 -- include the cert in the error message for verification error (#11898) 2024-11-06 09:50:30 +00:00
pyca-boringbot[bot]
05a3dc6ee8
Bump x509-limbo and/or wycheproof in CI (#11902)
Co-authored-by: pyca-boringbot[bot] <pyca-boringbot[bot]+106132319@users.noreply.github.com>
2024-11-05 19:56:05 -05:00
pyca-boringbot[bot]
e300ce5b79
Bump BoringSSL and/or OpenSSL in CI (#11901)
Co-authored-by: pyca-boringbot[bot] <pyca-boringbot[bot]+106132319@users.noreply.github.com>
2024-11-06 00:17:49 +00:00
Quentin Retourne
5b425ec416
added new vectors for PKCS7 tests (#11843)
* added new vectors for PKCS7 tests

* some corrections in the documentation

* removed RSA CA, not using it anymore
2024-11-05 22:29:26 +00:00
Alex Gaynor
26b293c3d7
Added a certificate field to verification error. (#11882)
refs #11160
2024-11-05 14:27:17 +00:00
dependabot[bot]
a63ca251a7
Bump uv from 0.4.29 to 0.4.30 in /.github/requirements (#11897)
Bumps [uv](https://github.com/astral-sh/uv) from 0.4.29 to 0.4.30.
- [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.4.29...0.4.30)

---
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>
2024-11-05 07:13:52 -05:00
dependabot[bot]
1fba29e2d7
Bump uv from 0.4.29 to 0.4.30 (#11896)
Bumps [uv](https://github.com/astral-sh/uv) from 0.4.29 to 0.4.30.
- [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.4.29...0.4.30)

---
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>
2024-11-05 07:13:39 -05:00
pyca-boringbot[bot]
b6bf329566
Bump x509-limbo and/or wycheproof in CI (#11894)
Co-authored-by: pyca-boringbot[bot] <pyca-boringbot[bot]+106132319@users.noreply.github.com>
2024-11-05 00:36:27 +00:00
pyca-boringbot[bot]
b9d63a5d9a
Bump BoringSSL and/or OpenSSL in CI (#11893)
Co-authored-by: pyca-boringbot[bot] <pyca-boringbot[bot]+106132319@users.noreply.github.com>
2024-11-05 00:24:43 +00:00
Simo Sorce
10b278c700
Make the Hmac paramter optional (#11891)
In PBKDF2 structs generally there is no Algorithm Parameter
associated with the PRF, but without marking the parameter optional
the parser expect a an actual parameter with a null value.

Signed-off-by: Simo Sorce <simo@redhat.com>
2024-11-04 19:48:35 +00:00
dependabot[bot]
57b304996e
Bump flit-core from 3.10.0 to 3.10.1 in /.github/requirements (#11888)
Bumps [flit-core](https://github.com/pypa/flit) from 3.10.0 to 3.10.1.
- [Changelog](https://github.com/pypa/flit/blob/main/doc/history.rst)
- [Commits](https://github.com/pypa/flit/compare/3.10.0...3.10.1)

---
updated-dependencies:
- dependency-name: flit-core
  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>
2024-11-04 07:15:07 -05:00
dependabot[bot]
a69e700b2e
Bump syn from 2.0.86 to 2.0.87 (#11890)
Bumps [syn](https://github.com/dtolnay/syn) from 2.0.86 to 2.0.87.
- [Release notes](https://github.com/dtolnay/syn/releases)
- [Commits](https://github.com/dtolnay/syn/compare/2.0.86...2.0.87)

---
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>
2024-11-04 12:10:51 +00:00
dependabot[bot]
733e6aea65
Bump cc from 1.1.31 to 1.1.34 (#11889)
Bumps [cc](https://github.com/rust-lang/cc-rs) from 1.1.31 to 1.1.34.
- [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.1.31...cc-v1.1.34)

---
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>
2024-11-04 12:09:09 +00:00
dependabot[bot]
634ae789dc
Bump ruff from 0.7.1 to 0.7.2 (#11887)
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.7.1 to 0.7.2.
- [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.7.1...0.7.2)

---
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>
2024-11-04 12:06:08 +00:00
Oleg Höfling
cf93084b0e
feat(admissions): add admissions extension type (#11886)
* feat(admissions): add admissions extension type

Signed-off-by: Oleg Hoefling <oleg.hoefling@gmail.com>

* fix: use tuple for admissions unpacking in hash code calculation

Signed-off-by: Oleg Hoefling <oleg.hoefling@gmail.com>

---------

Signed-off-by: Oleg Hoefling <oleg.hoefling@gmail.com>
2024-11-04 06:42:08 -05:00
pyca-boringbot[bot]
78b3750a3b
Bump BoringSSL and/or OpenSSL in CI (#11884)
Co-authored-by: pyca-boringbot[bot] <pyca-boringbot[bot]+106132319@users.noreply.github.com>
2024-11-04 00:18:17 +00:00
Oleg Höfling
4d86913082
feat(admissions): add admission type for the admissions extension (#11883)
* feat(admissions): add admission type for the admissions extension

Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>

* refactor: explicitly convert profession infos to tuples for hash calculation

Signed-off-by: Oleg Hoefling <oleg.hoefling@gmail.com>

* refactor: add asn1 trait derives to admission type, commented out

Signed-off-by: Oleg Hoefling <oleg.hoefling@gmail.com>

---------

Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>
Signed-off-by: Oleg Hoefling <oleg.hoefling@gmail.com>
2024-11-03 17:12:39 -05:00
Oleg Höfling
f65ab4d7f5
feat(admissions): add profession info type for the admissions extension (#11881)
* feat(admissions): add profession info python type for the admissions extension

Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>

* feat(admissions): add profession info rust type for the admissions extension

Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>

* feat(admissions): add test for profession info hash implementation

Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>

* fix(admissions): minor fixes

Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>

* remove the asn1 traits from the profession info rust type

Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>

* remove the explicit mark from the naming authority field

Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>

* chore: add commented out annotation for the naming authority field

Signed-off-by: Oleg Hoefling <oleg.hoefling@gmail.com>

* fix: use correct type for add_profeccion_info field

Signed-off-by: Oleg Hoefling <oleg.hoefling@gmail.com>

* refactor: explicitly convert profession items and oids to tuples for hash calculation

Signed-off-by: Oleg Hoefling <oleg.hoefling@gmail.com>

* refactor: add asn1 trait derives to naming authority and profession info types, commented out

Signed-off-by: Oleg Hoefling <oleg.hoefling@gmail.com>

---------

Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>
Signed-off-by: Oleg Hoefling <oleg.hoefling@gmail.com>
2024-11-03 20:16:23 +00:00
Alex Gaynor
9e46c93034
start refactoring ValidationError in prep for tracking which cert had the error (#11844)
The end goal is that `ValidationError` will include a cert field, which optionally contains a `VerificationCertificate` where relevant

refs #11160
2024-11-03 14:57:50 +00:00
Oleg Höfling
09dfc983a4
feat(admissions): add naming authority type for the admissions extension (#11876)
* feat(admissions): add naming authority python type for the admissions extension

Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>

* feat(admissions): user short names for naming authority fields

Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>

* feat(admissions): add naming authority rust type for the admissions extension

Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>

* chore: use assert_eq macro for value comparison in naming authority test

Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>

* chore: drop useless test for naming authority rust type

Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>

* fix: correct the naming authority text type

Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>

---------

Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>
2024-11-03 14:49:47 +00:00
Alex Gaynor
86458256e4
Simplify ownership of VerificationCertificates (#11871)
This removes a lifetime, at the cost of acquiring the GIL to do some increfs.
2024-11-03 14:48:10 +00:00