Skip to content

Commit f0e4f93

Browse files
committed
Check FIPS key length during RSA test with NoDigestInfo
1 parent 07a2d68 commit f0e4f93

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/hazmat/primitives/test_rsa.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -486,6 +486,9 @@ def test_pkcs1v15_signing_without_digest(self, backend, subtests):
486486
e=params["public_exponent"], n=params["modulus"]
487487
),
488488
).private_key(backend, unsafe_skip_rsa_key_validation=True)
489+
490+
_check_fips_key_length(backend, private_key)
491+
489492
signature = private_key.sign(
490493
binascii.unhexlify(
491494
compute_rsa_hash_digest_sha256(backend, params["msg"])

0 commit comments

Comments
 (0)