aboutsummaryrefslogtreecommitdiffstats
path: root/test.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2022-02-15 16:21:36 +0100
committerMattias Andrée <maandree@kth.se>2022-02-15 16:21:36 +0100
commitf74764136b8b0564aa0e75e5c667b9d11158a2a9 (patch)
tree4b21592981aa6e06ecd4b336e2ad940cc8957613 /test.c
parentAdd libar2simplified_init_context (diff)
downloadlibar2simplified-f74764136b8b0564aa0e75e5c667b9d11158a2a9.tar.gz
libar2simplified-f74764136b8b0564aa0e75e5c667b9d11158a2a9.tar.bz2
libar2simplified-f74764136b8b0564aa0e75e5c667b9d11158a2a9.tar.xz
Add libar2simplified_decode_r
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'test.c')
-rw-r--r--test.c6
1 files changed, 5 insertions, 1 deletions
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));