aboutsummaryrefslogtreecommitdiffstats
path: root/test/monniaux/bitsliced-aes/tests/tests.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/monniaux/bitsliced-aes/tests/tests.c')
-rw-r--r--test/monniaux/bitsliced-aes/tests/tests.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/monniaux/bitsliced-aes/tests/tests.c b/test/monniaux/bitsliced-aes/tests/tests.c
index d3e464f7..d9218685 100644
--- a/test/monniaux/bitsliced-aes/tests/tests.c
+++ b/test/monniaux/bitsliced-aes/tests/tests.c
@@ -88,16 +88,14 @@ void aes_ctr_test()
printf("plain text: \n");
dump_hex(input,AES_CTR_TESTS_BYTES);
- FILE *err = fdopen(2, "w");
-
if (memcmp(pt_vector, input, AES_CTR_TESTS_BYTES) != 0)
{
- fprintf(err,"error: decrypted ciphertext is not the same as the input plaintext\n");
+ fprintf(stderr,"error: decrypted ciphertext is not the same as the input plaintext\n");
exit(1);
}
else if (memcmp(ct_vector, output, AES_CTR_TESTS_BYTES) != 0)
{
- fprintf(err,"error: ciphertext is not the same as the test vector\n");
+ fprintf(stderr,"error: ciphertext is not the same as the test vector\n");
exit(1);
}
else