From f74764136b8b0564aa0e75e5c667b9d11158a2a9 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 15 Feb 2022 16:21:36 +0100 Subject: Add libar2simplified_decode_r MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- test.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'test.c') diff --git a/test.c b/test.c index a656b99..cd22e45 100644 --- a/test.c +++ b/test.c @@ -10,6 +10,8 @@ #define SALT_ALPHABET "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/" +#define TIME_RECOMMENDATIONS 0 + #define MEM(S) S, sizeof(S) - 1 @@ -183,6 +185,7 @@ check_random_salt_generate(void) } +#if TIME_RECOMMENDATIONS static void time_hash(const char *params_str, const char *params_name, int lineno) { @@ -216,6 +219,7 @@ time_hash(const char *params_str, const char *params_name, int lineno) from_lineno = 0; } +#endif static int @@ -291,7 +295,7 @@ main(void) assert_streq(libar2simplified_recommendation(1), RECOMMENDATION_SIDE_CHANNEL_FREE_ENVIRONMENT); #endif -#if 0 +#if TIME_RECOMMENDATIONS #define TIME_HASH(PARAMS) time_hash(PARAMS, #PARAMS, __LINE__) TIME_HASH(libar2simplified_recommendation(0)); TIME_HASH(libar2simplified_recommendation(1)); -- cgit v1.2.3-70-g09d2