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/lilliput-ae.h | 30 ++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 crypto_aead/lilliputaei128v1/ref/lilliput-ae.h (limited to 'crypto_aead/lilliputaei128v1/ref/lilliput-ae.h') diff --git a/crypto_aead/lilliputaei128v1/ref/lilliput-ae.h b/crypto_aead/lilliputaei128v1/ref/lilliput-ae.h new file mode 100644 index 0000000..973533c --- /dev/null +++ b/crypto_aead/lilliputaei128v1/ref/lilliput-ae.h @@ -0,0 +1,30 @@ +#ifndef LILLIPUT_AE_H +#define LILLIPUT_AE_H + +#include +#include +#include + +#include "parameters.h" + + +void lilliput_ae_encrypt( + size_t message_len, const uint8_t message[message_len], + size_t auth_data_len, const uint8_t auth_data[auth_data_len], + const uint8_t nonce[NONCE_BYTES], + + size_t *ciphertext_len, uint8_t ciphertext[message_len+BLOCK_BYTES], + uint8_t tag[TAG_BYTES] +); + +bool lilliput_ae_decrypt( + size_t ciphertext_len, const uint8_t ciphertext[ciphertext_len], + size_t auth_data_len, const uint8_t auth_data[auth_data_len], + const uint8_t nonce[NONCE_BYTES], + const uint8_t tag[TAG_BYTES], + + size_t *message_len, uint8_t message[ciphertext_len] +); + + +#endif /* LILLIPUT_AE_H */ -- cgit v1.2.3