diff options
author | Rob Austein <sra@hactrn.net> | 2015-06-10 18:52:16 -0400 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2015-06-10 18:52:16 -0400 |
commit | 5d21abbc8a727b7a586a91d0fc5c704deb1a69a4 (patch) | |
tree | f24a6959d0e37fbe6d95b122d8f5bd1b87d168a7 /tests | |
parent | 9cca19087b29d5678dc39fd446bd8f6a6036b097 (diff) |
Operand lengths weren't including bug-workaround padding.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-rsa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test-rsa.c b/tests/test-rsa.c index 5491399..150c6eb 100644 --- a/tests/test-rsa.c +++ b/tests/test-rsa.c @@ -82,7 +82,7 @@ static int test_modexp(const char * const kind, static int test_rsa(const rsa_tc_t * const tc) { - return (test_modexp("Signature", tc, &tc->m, &tc->d, &tc->s) || /* RSA decryption */ + return (test_modexp("Signature", tc, &tc->m, &tc->d, &tc->s) && /* RSA decryption */ test_modexp("Verification", tc, &tc->s, &tc->e, &tc->m)); /* RSA encryption */ } |