summaryrefslogtreecommitdiff
path: root/crypto_aead/lilliputaei128v1/ref/lilliput-ae.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/lilliput-ae.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/lilliput-ae.h')
-rw-r--r--crypto_aead/lilliputaei128v1/ref/lilliput-ae.h30
1 files changed, 30 insertions, 0 deletions
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 <stddef.h>
+#include <stdbool.h>
+#include <stdint.h>
+
+#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 */