aboutsummaryrefslogtreecommitdiffstats
path: root/libar2simplified_recommendation.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2022-02-15 13:48:52 +0100
committerMattias Andrée <maandree@kth.se>2022-02-15 13:48:52 +0100
commit107c9f195b9a480c58c657efac05947de9043d5f (patch)
tree168e13b29a5cd87bc0b80e2118be0953c6148e34 /libar2simplified_recommendation.c
parentAdd test for salt generation (diff)
downloadlibar2simplified-107c9f195b9a480c58c657efac05947de9043d5f.tar.gz
libar2simplified-107c9f195b9a480c58c657efac05947de9043d5f.tar.bz2
libar2simplified-107c9f195b9a480c58c657efac05947de9043d5f.tar.xz
Add libar2simplified_recommendation1.0
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'libar2simplified_recommendation.c')
-rw-r--r--libar2simplified_recommendation.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/libar2simplified_recommendation.c b/libar2simplified_recommendation.c
new file mode 100644
index 0000000..23f7060
--- /dev/null
+++ b/libar2simplified_recommendation.c
@@ -0,0 +1,9 @@
+/* See LICENSE file for copyright and license details. */
+#include "common.h"
+
+
+const char *
+libar2simplified_recommendation(int side_channel_free)
+{
+ return side_channel_free ? RECOMMENDATION_SIDE_CHANNEL_FREE_ENVIRONMENT : RECOMMENDATION_SIDE_CHANNEL_ENVIRONMENT;
+}