diff --git a/test/crypto_kem/functest.c b/test/crypto_kem/functest.c index 7f50608b..18023f1c 100644 --- a/test/crypto_kem/functest.c +++ b/test/crypto_kem/functest.c @@ -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; } }