blob: 864b8ba67a87efab63c147637cf1050d7dfe522b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
Reference implementation
========================
This folder contains the reference implementation for Lilliput-AE.
It is organized as follows:
`src`
-----
Contains two kinds of subfolders:
- implementations: parameter-independent code
- `ref`: the reference implementation
- `add_*`: additional implementations
- parameters: one folder for each variant of the Lilliput-AE family,
named `${mode}-${keybits}`:
- mode is either i (for ΘCB3) or ii (for SCT-2)
- keybits is either 128, 192 or 256
Each implementation folder contains:
- `lilliput-ae.h`: main API
- `lilliput-ae-i.c`: implementation of Lilliput-Ⅰ (ΘCB3-based)
- `lilliput-ae-ii.c`: implementation of Lilliput-Ⅱ (SCT-2-based)
- `ae-common.h`: internal helper functions used by both AE schemes
- `tweakey.*`: implementation of Lilliput-TBC's tweakey schedule
- `cipher.*`: implementation of the tweakable block-cipher
Lilliput-TBC
- `constants.h`: byte sizes for inputs and outputs (depends on
parameter-dependent `parameters.h` files)
`test`
------
Contains test vectors. There is one subfolder per member of the
Lilliput-AE family, as well as:
- `common.mk`: makefile recipes for test programs
- `debug.h`: helper functions to dump intermediate values, used in
the trace-generating patches
- `test-helpers.h`: helper functions for test code
`nist`
------
Contains code to
- generate the directory structure required by NIST
- compile each member of the Lilliput-AE family against NIST's
`genkat_aead.c`
- generate test vectors
- package code and test vectors together into `results/crypto_aead`
The code can be run with `make nist`.
`traces`
--------
Contains patches to add print statements for inputs, outputs and
intermediate values. `make traces` will
- apply the patches
- run the trace programs
- collect traces
- revert the patches
|