diff options
| author | Kévin Le Gouguec <kevin.legouguec@airbus.com> | 2018-11-21 11:22:08 +0100 |
|---|---|---|
| committer | Kévin Le Gouguec <kevin.legouguec@airbus.com> | 2018-11-21 11:22:08 +0100 |
| commit | 2df3f453fc584c9001404c3d2a74cb2059d94c0f (patch) | |
| tree | d81bd29417cf97b7f3e6e8bf8b0a1c6fdf71043d /crypto_aead/lilliputaei128v1/ref/test/test-cipher.c | |
| parent | 1a8a1c0f98e39907af61d181d318fd45f3ce93ca (diff) | |
| download | lilliput-ae-implem-2df3f453fc584c9001404c3d2a74cb2059d94c0f.tar.xz | |
Introduction de l'entête "parameters.h"
Permet d'isoler les paramètres propres à la taille de clé et au mode ;
normalement, le reste du code devrait être strictement identique d'un
dossier à l'autre.
Diffstat (limited to 'crypto_aead/lilliputaei128v1/ref/test/test-cipher.c')
| -rw-r--r-- | crypto_aead/lilliputaei128v1/ref/test/test-cipher.c | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/crypto_aead/lilliputaei128v1/ref/test/test-cipher.c b/crypto_aead/lilliputaei128v1/ref/test/test-cipher.c new file mode 100644 index 0000000..da19454 --- /dev/null +++ b/crypto_aead/lilliputaei128v1/ref/test/test-cipher.c @@ -0,0 +1,42 @@ +#include <inttypes.h> +#include <stdio.h> + +#include "constants.h" + +#include "helpers.h" + + +/* [0]: LSB */ + + +vector_input VECTORS[] = { + { + .name = "order", + .tweak = { + 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, + 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, + 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17 + }, + .key = { + 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, + 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f + } + }, + { + .name = "random", + .tweak = { + 0xa8, 0x43, 0xf3, 0x10, 0x81, 0x11, 0x1c, 0x84, + 0xdf, 0xf8, 0x2e, 0xfa, 0x90, 0x90, 0x26, 0x21, + 0x7d, 0x8d, 0x43, 0x12, 0x2a, 0xb3, 0xd2, 0x4d + }, + .key = { + 0xc1, 0x96, 0xc6, 0x0a, 0x02, 0x73, 0x91, 0x68, + 0x7f, 0xf4, 0x23, 0x4d, 0x3d, 0xd5, 0xf9, 0x9b + } + } +}; + + +int main() +{ +} |
