Skip to content

Commit

Permalink
test: add positive FIPS indicator failure tests for DRBGs
Browse files Browse the repository at this point in the history
Reviewed-by: Shane Lontis <[email protected]>
Reviewed-by: Tom Cosgrove <[email protected]>
(Merged from openssl#25135)
  • Loading branch information
paulidale committed Aug 10, 2024
1 parent dc16db6 commit fb51e4f
Showing 1 changed file with 26 additions and 2 deletions.
28 changes: 26 additions & 2 deletions test/recipes/30-test_evp_data/evprand.txt
Original file line number Diff line number Diff line change
Expand Up @@ -79779,22 +79779,34 @@ Output.14 = ee191dc6bef025e36302bb8ce0e6a949f7b0d2944b246fc52d68a20c3b2b787595ca

Title = Test truncated Digests are not allowed in FIPS

FIPSversion = >=3.1.0
Availablein = fips
FIPSversion = >=3.1.0
RAND = HASH-DRBG
Digest = SHA2-224
GenerateBits = 16
Result = EVP_RAND_CTX_set_params

FIPSversion = >=3.1.0
Availablein = fips
FIPSversion = >=3.1.0
RAND = HMAC-DRBG
Digest = SHA2-384
GenerateBits = 16
Result = EVP_RAND_CTX_set_params

Title = Test FIPS indicator callbacks for truncated digests

Availablein = fips
FIPSversion = >=3.4.0
RAND = HASH-DRBG
Digest = SHA2-224
PredictionResistance = 0
GenerateBits = 16
Entropy.0 = c3ef82ce241f02e4298b118ca4f1622515e32abbae6b7433
Nonce.0 = 15e32abbae6b7433
Output.0 = 5af6
Result = EVP_RAND_CTX_set_params
Reason = digest not allowed

FIPSversion = >=3.4.0
RAND = HASH-DRBG
Unapproved = 1
Expand All @@ -79806,6 +79818,18 @@ Entropy.0 = c3ef82ce241f02e4298b118ca4f1622515e32abbae6b7433
Nonce.0 = 15e32abbae6b7433
Output.0 = 5af6

Availablein = fips
FIPSversion = >=3.4.0
RAND = HMAC-DRBG
Digest = SHA2-384
PredictionResistance = 0
GenerateBits = 16
Entropy.0 = 32c1ca125223de8de569697f92a37c6732c1ca125223de8de569697f92a37c67
Nonce.0 = 15e32abbae6b7433
Output.0 = ee9f
Result = EVP_RAND_CTX_set_params
Reason = digest not allowed

FIPSversion = >=3.4.0
RAND = HMAC-DRBG
Unapproved = 1
Expand Down

0 comments on commit fb51e4f

Please sign in to comment.