mirror of
https://github.com/saymrwulf/cryptography.git
synced 2026-05-14 20:37:55 +00:00
fixed fips skip condition (#10264)
This commit is contained in:
parent
430777fb56
commit
f7888eb46e
1 changed files with 1 additions and 4 deletions
|
|
@ -164,10 +164,7 @@ class TestDH:
|
|||
)
|
||||
def test_dh_parameters_allows_rfc3526_groups(self, backend, vector):
|
||||
p = int.from_bytes(binascii.unhexlify(vector["p"]), "big")
|
||||
if (
|
||||
backend._fips_enabled
|
||||
and p.bit_length() < backend._fips_dh_min_modulus
|
||||
):
|
||||
if backend._fips_enabled and p < backend._fips_dh_min_modulus:
|
||||
pytest.skip("modulus too small for FIPS mode")
|
||||
|
||||
params = dh.DHParameterNumbers(p, int(vector["g"]))
|
||||
|
|
|
|||
Loading…
Reference in a new issue