diff options
| author | Kévin Le Gouguec <kevin.legouguec@airbus.com> | 2018-11-22 11:24:45 +0100 |
|---|---|---|
| committer | Kévin Le Gouguec <kevin.legouguec@airbus.com> | 2018-11-22 14:51:13 +0100 |
| commit | 0ea51ff949b689a6db9b823a18a83098707a9717 (patch) | |
| tree | 9a8ff9f949e0e59ceeb1d25c0b5520a5e2a73834 /crypto_aead/lilliputaei128v1 | |
| parent | 4f7591ab99af01a47e501275c25957fe9c4b750c (diff) | |
| download | lilliput-ae-implem-0ea51ff949b689a6db9b823a18a83098707a9717.tar.xz | |
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 (limited to 'crypto_aead/lilliputaei128v1')
| -rw-r--r-- | crypto_aead/lilliputaei128v1/ref/api.h | 13 | ||||
| -rw-r--r-- | crypto_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 new file mode 100644 index 0000000..80dc20c --- /dev/null +++ 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 new file mode 100644 index 0000000..9f0f1cf --- /dev/null +++ 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 +) +{ +} |
