[openssl-commits] [openssl] master update

Richard Levitte levitte at openssl.org
Thu May 4 15:15:33 UTC 2017


The branch master has been updated
       via  7104351cd9f2289d9ffe7812668738a2c0fcb515 (commit)
      from  7a4e6a1e506d9bc88987b0ab6c028d8a057ca668 (commit)


- Log -----------------------------------------------------------------
commit 7104351cd9f2289d9ffe7812668738a2c0fcb515
Author: Richard Levitte <levitte at openssl.org>
Date:   Thu May 4 05:26:07 2017 +0200

    test/exptest.c: stop marking progress with a period
    
    Because we now have TAP output for every mod_exp round, there's no
    more need to mark the round with outputting a period.
    
    Reviewed-by: Rich Salz <rsalz at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/3380)

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

Summary of changes:
 test/exptest.c | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/test/exptest.c b/test/exptest.c
index fa4dfe3..e15c051 100644
--- a/test/exptest.c
+++ b/test/exptest.c
@@ -173,12 +173,9 @@ static int test_mod_exp(int round)
         || !TEST_true(BN_mod_exp_mont_consttime(r_mont_const, a, b, m, ctx, NULL)))
         goto err;
 
-    if (TEST_int_eq(BN_cmp(r_simple, r_mont), 0)
-        && TEST_int_eq(BN_cmp(r_simple, r_recp), 0)
-        && TEST_int_eq(BN_cmp(r_simple, r_mont_const), 0)) {
-        printf(".");
-        fflush(stdout);
-    } else {
+    if (!TEST_int_eq(BN_cmp(r_simple, r_mont), 0)
+        || !TEST_int_eq(BN_cmp(r_simple, r_recp), 0)
+        || !TEST_int_eq(BN_cmp(r_simple, r_mont_const), 0)) {
         if (BN_cmp(r_simple, r_mont) != 0)
             fprintf(stderr, "simple and mont results differ\n");
         if (BN_cmp(r_simple, r_mont_const) != 0)


More information about the openssl-commits mailing list