From: Pauli Date: Fri, 12 Feb 2021 02:26:54 +0000 (+1000) Subject: test: DRBG test with long seed. X-Git-Tag: openssl-3.0.0-alpha12~23 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=79d68c4fb4d5763a1f199ca9676c250e6dd01f74;p=thirdparty%2Fopenssl.git test: DRBG test with long seed. Fixes: #14101 Reviewed-by: Shane Lontis (Merged from https://github.com/openssl/openssl/pull/14162) --- diff --git a/test/recipes/30-test_evp_data/evprand.txt b/test/recipes/30-test_evp_data/evprand.txt index b91f5483aec..f504dc3e0b1 100644 --- a/test/recipes/30-test_evp_data/evprand.txt +++ b/test/recipes/30-test_evp_data/evprand.txt @@ -12,6 +12,22 @@ # and continue until a blank line. Lines starting with a pound sign, # like this prolog, are ignored. +# Test vector from NISTs CAVP tool + +Title = CAVP Large Seed + +RAND = CTR-DRBG +Cipher = AES-192-CTR +DerivationFunction = 1 +PredictionResistance = 1 +GenerateBits = 256 +Entropy.0 = 22ED7A66C9E9F494C8D2B8F81D0D49BCDD0C03863FF5979212211EFE3E945758B6228CDD9E9EEC5F7984AEF7212699F3 +Nonce.0 = 5BF245B95F8E1377D5A17EB331AABCD9 +EntropyPredictionResistanceA.0 = C0535ACD3D715A0B1453AB3447D53D9131C939AEE1D9CA24A75B285CF58D79403A4111E2F3DEE011154D31D646D93001 +EntropyPredictionResistanceB.0 = 9FBC48890273FCAFCA1904B6486D1877CAD91EB601E979259506F93BA462AC17D8676C570B2231D4D98EC617C4826573 +Output.0 = 19CED57563D065B606DA27DD5E8DE83B93BB7C8F8B02D0288F475550C3F44B77 + + # Test vectors come from: # https://csrc.nist.gov/CSRC/media/Projects/Cryptographic-Algorithm-Validation-Program/documents/drbg/drbgtestvectors.zip