diff options
author | Shane Lontis <shane.lontis@oracle.com> | 2019-06-05 08:24:16 +1000 |
---|---|---|
committer | Shane Lontis <shane.lontis@oracle.com> | 2019-06-25 12:00:25 +1000 |
commit | 10c25644e362381844e0089504f0db42f029d855 (patch) | |
tree | fd1342f8f753b944e76adc1f5ceb53ef72c4d794 /test/ectest.c | |
parent | be1dc984e1a5938170188cbdb6e536f1e7ac1656 (diff) | |
download | openssl-10c25644e362381844e0089504f0db42f029d855.zip openssl-10c25644e362381844e0089504f0db42f029d855.tar.gz openssl-10c25644e362381844e0089504f0db42f029d855.tar.bz2 |
EC only uses approved curves in FIPS mode.
Once there are buildable fips tests, some tests that are data driven
from files will need to be modified to exclude non approved curves in
fips mode.
These changes were tested by temporarily adding #define FIPS_MODE 1 to
all the modified source files.
Reviewed-by: Nicola Tuveri <nic.tuv@gmail.com>
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/9081)
Diffstat (limited to 'test/ectest.c')
-rw-r--r-- | test/ectest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ectest.c b/test/ectest.c index 3f7747e..50f8c63 100644 --- a/test/ectest.c +++ b/test/ectest.c @@ -1820,7 +1820,7 @@ static int parameter_test(void) unsigned char *buf = NULL; int r = 0, len; - if (!TEST_ptr(group = EC_GROUP_new_by_curve_name(NID_secp112r1)) + if (!TEST_ptr(group = EC_GROUP_new_by_curve_name(NID_secp224r1)) || !TEST_ptr(ecparameters = EC_GROUP_get_ecparameters(group, NULL)) || !TEST_ptr(group2 = EC_GROUP_new_from_ecparameters(ecparameters)) || !TEST_int_eq(EC_GROUP_cmp(group, group2, NULL), 0)) |