Skip to content

Commit eb9a451

Browse files
authored
Update AWS-LC and update wycheproof for new checks (#14466)
1 parent 8e3e3fc commit eb9a451

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ jobs:
4242
- {VERSION: "3.14", NOXSESSION: "rust,tests", OPENSSL: {TYPE: "libressl", VERSION: "4.2.1"}}
4343
# Latest commit on the BoringSSL main branch, as of Mar 10, 2026.
4444
- {VERSION: "3.14", NOXSESSION: "rust,tests", OPENSSL: {TYPE: "boringssl", VERSION: "476f4835186050a44f7fe6f088abbd279b634194"}}
45-
# Latest tag of AWS-LC main branch, as of Mar 03, 2026.
46-
- {VERSION: "3.14", NOXSESSION: "rust,tests", OPENSSL: {TYPE: "aws-lc", VERSION: "v1.69.0"}}
45+
# Latest tag of AWS-LC main branch, as of Mar 12, 2026.
46+
- {VERSION: "3.14", NOXSESSION: "rust,tests", OPENSSL: {TYPE: "aws-lc", VERSION: "v1.70.0"}}
4747
# Latest commit on the OpenSSL master branch, as of Sep 04, 2025.
4848
- {VERSION: "3.14", NOXSESSION: "tests", OPENSSL: {TYPE: "openssl", VERSION: "ceb45f64bde3d299c7ef529e5cd5372e4a421366"}}
4949
# Builds with various Rust versions. Includes MSRV and next

tests/wycheproof/test_rsa.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import pytest
99

1010
from cryptography.exceptions import InvalidSignature
11+
from cryptography.hazmat.bindings._rust import openssl as rust_openssl
1112
from cryptography.hazmat.primitives import hashes, serialization
1213
from cryptography.hazmat.primitives.asymmetric import padding, rsa
1314

@@ -249,7 +250,13 @@ def test_rsa_oaep_encryption(backend, wycheproof):
249250
if backend._fips_enabled and key.key_size < backend._fips_rsa_min_key_size:
250251
pytest.skip("Invalid params for FIPS. <2048 bit keys are disallowed")
251252

252-
if wycheproof.valid or wycheproof.acceptable:
253+
if wycheproof.valid or (
254+
wycheproof.acceptable
255+
and not (
256+
rust_openssl.CRYPTOGRAPHY_IS_AWSLC
257+
and wycheproof.has_flag("SmallIntegerCiphertext")
258+
)
259+
):
253260
pt = key.decrypt(
254261
binascii.unhexlify(wycheproof.testcase["ct"]), padding_algo
255262
)

0 commit comments

Comments
 (0)