From d9e66c1e1fda350a5714316ffb2a515835fa974a Mon Sep 17 00:00:00 2001 From: David Monniaux Date: Sat, 2 Feb 2019 08:02:39 +0100 Subject: fixes in types etc. --- test/monniaux/bitsliced-aes/main.c | 2 ++ test/monniaux/bitsliced-aes/tests/tests.c | 6 ++---- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'test/monniaux/bitsliced-aes') diff --git a/test/monniaux/bitsliced-aes/main.c b/test/monniaux/bitsliced-aes/main.c index 5c730308..96d545ae 100644 --- a/test/monniaux/bitsliced-aes/main.c +++ b/test/monniaux/bitsliced-aes/main.c @@ -20,6 +20,8 @@ int main(int argc, char * argv[]) { + clock_prepare(); + clock_start(); #ifdef RUN_TESTS 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 -- cgit