summaryrefslogtreecommitdiff
path: root/crypto_aead/lilliputaei128v1/ref/lilliput-ae-i.c
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-i.c
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-i.c')
-rw-r--r--crypto_aead/lilliputaei128v1/ref/lilliput-ae-i.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/crypto_aead/lilliputaei128v1/ref/lilliput-ae-i.c b/crypto_aead/lilliputaei128v1/ref/lilliput-ae-i.c
new file mode 100644
index 0000000..945c75c
--- /dev/null
+++ b/crypto_aead/lilliputaei128v1/ref/lilliput-ae-i.c
@@ -0,0 +1,29 @@
+#include <stdbool.h>
+#include <stdint.h>
+
+#include "lilliput-ae.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]
+)
+{
+ return false;
+}
+