1
1
mirror of https://github.com/henrydcase/pqc.git synced 2024-11-26 09:21:28 +00:00

Always return negative numbers so positive+negative != 0

This commit is contained in:
Douglas Stebila 2019-04-04 12:39:47 -04:00
parent 49729d6da0
commit 301f7aca57

View File

@ -161,7 +161,7 @@ static int test_invalid_sk_a(void) {
if (!memcmp(key_a, key_b, CRYPTO_BYTES)) {
printf("ERROR invalid sk_a\n");
return 1;
return -1;
}
}
@ -199,7 +199,7 @@ static int test_invalid_ciphertext(void) {
if (!memcmp(key_a, key_b, CRYPTO_BYTES)) {
printf("ERROR invalid ciphertext\n");
return 1;
return -1;
}
}