[openssl-commits] [openssl] master update

Richard Levitte levitte at openssl.org
Wed Jan 27 17:53:59 UTC 2016


The branch master has been updated
       via  920ed8c81d9f6ff76564add0cd4605ac0ff86c88 (commit)
      from  d20a161f46f0e3bf6b53235d51a3b0e23794e6a5 (commit)


- Log -----------------------------------------------------------------
commit 920ed8c81d9f6ff76564add0cd4605ac0ff86c88
Author: Billy Brumley <bbrumley at gmail.com>
Date:   Wed Jan 27 17:29:32 2016 +0200

    Test all built-in curves and let the library choose the EC_METHOD
    
    Reviewed-by: Rich Salz <rsalz at openssl.org>
    Reviewed-by: Richard Levitte <levitte at openssl.org>

-----------------------------------------------------------------------

Summary of changes:
 test/ectest.c | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/test/ectest.c b/test/ectest.c
index a8d0b55..f17b8b0 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;
 }


More information about the openssl-commits mailing list