diff options
author | Billy Brumley <bbrumley@gmail.com> | 2016-01-27 17:29:32 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2016-01-27 18:49:09 +0100 |
commit | 920ed8c81d9f6ff76564add0cd4605ac0ff86c88 (patch) | |
tree | 34bbcba8a8e3bf735b1772e25938bd68534827f0 /test/ectest.c | |
parent | d20a161f46f0e3bf6b53235d51a3b0e23794e6a5 (diff) |
Test all built-in curves and let the library choose the EC_METHOD
Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'test/ectest.c')
-rw-r--r-- | test/ectest.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/ectest.c b/test/ectest.c index a8d0b55bf4..f17b8b04e1 100644 --- a/test/ectest.c +++ b/test/ectest.c @@ -1397,6 +1397,20 @@ static void internal_curve_test(void) fprintf(stdout, " failed\n\n"); ABORT; } + + /* Test all built-in curves and let the library choose the EC_METHOD */ + for (n = 0; n < crv_len; n++) { + EC_GROUP *group = NULL; + int nid = curves[n].nid; + fprintf(stdout, "%s:\n", OBJ_nid2sn(nid)); + fflush(stdout); + if ((group = EC_GROUP_new_by_curve_name(nid)) == NULL) { + ABORT; + } + group_order_tests(group); + EC_GROUP_free(group); + } + OPENSSL_free(curves); return; } |