diff options
author | Andrey Matyukov <andrey.matyukov@intel.com> | 2020-12-08 22:53:39 +0300 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2022-11-09 15:29:59 +0100 |
commit | 3d2b47bcdf8cf407ef1e459d54d4501cc19f0227 (patch) | |
tree | bf85f45e7ae5af4f40cf392fa86cd55072527499 /test | |
parent | 0bed814750c62c738d509cd0a9655789ae69e99b (diff) |
Dual 1536/2048-bit exponentiation optimization for Intel IceLake CPU
It uses AVX512_IFMA + AVX512_VL (with 256-bit wide registers) ISA to
keep lower power license.
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14908)
(cherry picked from commit f87b4c4ea67393c9269663ed40a7ea3463cc59d3)
Diffstat (limited to 'test')
-rw-r--r-- | test/exptest.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/test/exptest.c b/test/exptest.c index 71ee031a43..234ad7b2b9 100644 --- a/test/exptest.c +++ b/test/exptest.c @@ -223,11 +223,12 @@ static int test_mod_exp_x2(int idx) BIGNUM *m2 = NULL; int factor_size = 0; - /* - * Currently only 1024-bit factor size is supported. - */ if (idx <= 100) factor_size = 1024; + else if (idx <= 200) + factor_size = 1536; + else if (idx <= 300) + factor_size = 2048; if (!TEST_ptr(ctx = BN_CTX_new())) goto err; @@ -303,6 +304,6 @@ int setup_tests(void) { ADD_TEST(test_mod_exp_zero); ADD_ALL_TESTS(test_mod_exp, 200); - ADD_ALL_TESTS(test_mod_exp_x2, 100); + ADD_ALL_TESTS(test_mod_exp_x2, 300); return 1; } |