summaryrefslogtreecommitdiff
path: root/crypto_aead/lilliputaei128v1/ref/test/helpers.h
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@airbus.com>2018-11-22 14:47:07 +0100
committerKévin Le Gouguec <kevin.legouguec@airbus.com>2018-11-22 14:51:13 +0100
commit3a18c0891d890892a23eec2d4f438d2758dee1fe (patch)
tree307b02230c33f97f05b00233a070ea9f209d3d2c /crypto_aead/lilliputaei128v1/ref/test/helpers.h
parentbd03e27a8be67357b441bbdae00ce10447bd55e7 (diff)
downloadlilliput-ae-implem-3a18c0891d890892a23eec2d4f438d2758dee1fe.tar.xz
Ajout de tests et de l'API pour le mode authentifié
Diffstat (limited to 'crypto_aead/lilliputaei128v1/ref/test/helpers.h')
-rw-r--r--crypto_aead/lilliputaei128v1/ref/test/helpers.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/crypto_aead/lilliputaei128v1/ref/test/helpers.h b/crypto_aead/lilliputaei128v1/ref/test/helpers.h
index 2cb8e69..339ae0e 100644
--- a/crypto_aead/lilliputaei128v1/ref/test/helpers.h
+++ b/crypto_aead/lilliputaei128v1/ref/test/helpers.h
@@ -15,6 +15,11 @@
__FILE__, (VECTOR), (ELEMENT)); \
} while (0)
+#define REPORT_INVALID(VECTOR) do { \
+ fprintf(stderr, "%s: vector %s: ciphertext/tag invalid\n", \
+ __FILE__, (VECTOR)); \
+ } while (0)
+
static inline FILE* open_dump_file(const char *folder, const char* vector, const char *name)
{