X-Git-Url: https://git.openssl.org/?p=openssl.git;a=blobdiff_plain;f=test%2Fbntest.c;h=59148b0366cf2bedb994fb360829ca13ed913b8f;hp=00bdf3fd09b151ce893a9c7b43fbbf426dba15d8;hb=9e206ce5f80172136b503ca23fbd8e53b78eb4b7;hpb=d72a00416a0691bfd4920008767221bb4082a2ed diff --git a/test/bntest.c b/test/bntest.c index 00bdf3fd09..59148b0366 100644 --- a/test/bntest.c +++ b/test/bntest.c @@ -1367,9 +1367,9 @@ static int file_modexp(STANZA *s) "0000000000000000000000000000000000000000000000000000000000000000" "0000000000000000000000000000000000000000000000000000000000000000" "0000000000000000000000000000000000000000000000000000000001"); - BN_mod_exp(d, a, b, c, ctx); - BN_mul(e, a, a, ctx); - if (!TEST_BN_eq(d, e)) + if (!TEST_true(BN_mod_exp(d, a, b, c, ctx)) + || !TEST_true(BN_mul(e, a, a, ctx)) + || !TEST_BN_eq(d, e)) goto err; st = 1;