From b27db0acff5a7e1199772821840f409ae3d03d01 Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Tue, 30 Mar 2021 23:33:49 +0200 Subject: [PATCH] Repeat a few DH tests Repeat a few tests that use random data. This way the code is exercised with a few different random values. Signed-off-by: Gilles Peskine --- tests/suites/test_suite_dhm.data | 30 +++++++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/tests/suites/test_suite_dhm.data b/tests/suites/test_suite_dhm.data index c4795b6d3..063c1a601 100644 --- a/tests/suites/test_suite_dhm.data +++ b/tests/suites/test_suite_dhm.data @@ -1,13 +1,37 @@ Diffie-Hellman parameter validation dhm_invalid_params: -Diffie-Hellman full exchange #1 +Diffie-Hellman full exchange: 5-bit #1 dhm_do_dhm:10:"23":10:"5":0 -Diffie-Hellman full exchange #2 +Diffie-Hellman full exchange: 5-bit #2 +dhm_do_dhm:10:"23":10:"5":0 + +Diffie-Hellman full exchange: 5-bit #3 +dhm_do_dhm:10:"23":10:"5":0 + +Diffie-Hellman full exchange: 5-bit #4 +dhm_do_dhm:10:"23":10:"5":0 + +Diffie-Hellman full exchange: 5-bit #5 +dhm_do_dhm:10:"23":10:"5":0 + +Diffie-Hellman full exchange: 97-bit #1 dhm_do_dhm:10:"93450983094850938450983409623":10:"9345098304850938450983409622":0 -Diffie-Hellman full exchange #3 +Diffie-Hellman full exchange: 97-bit #2 +dhm_do_dhm:10:"93450983094850938450983409623":10:"9345098304850938450983409622":0 + +Diffie-Hellman full exchange: 97-bit #3 +dhm_do_dhm:10:"93450983094850938450983409623":10:"9345098304850938450983409622":0 + +Diffie-Hellman full exchange: 97-bit #4 +dhm_do_dhm:10:"93450983094850938450983409623":10:"9345098304850938450983409622":0 + +Diffie-Hellman full exchange: 97-bit #5 +dhm_do_dhm:10:"93450983094850938450983409623":10:"9345098304850938450983409622":0 + +Diffie-Hellman full exchange: 286-bit dhm_do_dhm:10:"93450983094850938450983409623982317398171298719873918739182739712938719287391879381271":10:"9345098309485093845098340962223981329819812792137312973297123912791271":0 Diffie-Hellman trivial subgroup #1