From 3a18c0891d890892a23eec2d4f438d2758dee1fe Mon Sep 17 00:00:00 2001 From: Kévin Le Gouguec Date: Thu, 22 Nov 2018 14:47:07 +0100 Subject: Ajout de tests et de l'API pour le mode authentifié MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crypto_aead/lilliputaei128v1/ref/test/helpers.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'crypto_aead/lilliputaei128v1/ref/test/helpers.h') 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) { -- cgit v1.2.3