lilliput-ae-reference-implementation

Implementations of Lilliput-AE submitted to the NIST LWC standardization process
git clone https://git.kevinlegouguec.net/lilliput-ae-reference-implementation
Log | Files | Refs | README

commit 0ea51ff949b689a6db9b823a18a83098707a9717
parent 4f7591ab99af01a47e501275c25957fe9c4b750c
Author: Kévin Le Gouguec <kevin.legouguec@airbus.com>
Date:   Thu, 22 Nov 2018 11:24:45 +0100

Ajout des fichiers demandés par le NIST

crypto_aead.h est fourni ici :

https://csrc.nist.gov/CSRC/media/Projects/Lightweight-Cryptography/documents/TestVectorGen.zip

Diffstat:
Acrypto_aead/lilliputaei128v1/ref/api.h | 13+++++++++++++
Acrypto_aead/lilliputaei128v1/ref/encrypt.c | 25+++++++++++++++++++++++++
2 files changed, 38 insertions(+), 0 deletions(-)

diff --git a/crypto_aead/lilliputaei128v1/ref/api.h b/crypto_aead/lilliputaei128v1/ref/api.h @@ -0,0 +1,13 @@ +#ifndef API_H +#define API_H + +#include "parameters.h" + + +#define CRYPTO_KEYBYTES KEY_BYTES +#define CRYPTO_NSECBYTES 0 +#define CRYPTO_NPUBBYTES NONCE_BYTES +#define CRYPTO_ABYTES BLOCK_BYTES +#define CRYPTO_NOOVERLAP 1 + +#endif /* API_H */ diff --git a/crypto_aead/lilliputaei128v1/ref/encrypt.c b/crypto_aead/lilliputaei128v1/ref/encrypt.c @@ -0,0 +1,25 @@ +#include "api.h" +#include "crypto_aead.h" /* TODO: provided by NIST's TestVectorGen.zip */ + + +int crypto_aead_encrypt( + unsigned char *c, unsigned long long *clen, + const unsigned char *m, unsigned long long mlen, + const unsigned char *ad, unsigned long long adlen, + const unsigned char *nsec, + const unsigned char *npub, + const unsigned char *k +) +{ +} + +int crypto_aead_decrypt( + unsigned char *m, unsigned long long *mlen, + unsigned char *nsec, + const unsigned char *c, unsigned long long clen, + const unsigned char *ad, unsigned long long adlen, + const unsigned char *npub, + const unsigned char *k +) +{ +}