diff options
| author | Kévin Le Gouguec <kevin.legouguec@airbus.com> | 2019-03-14 09:02:07 +0100 |
|---|---|---|
| committer | Kévin Le Gouguec <kevin.legouguec@airbus.com> | 2019-03-14 09:02:07 +0100 |
| commit | 2be282051a89cd69eba40aca79bb17daebb72dab (patch) | |
| tree | 41739b6579aabc2c11a043ca20a104a37c68dc89 /test | |
| parent | 499a04c70519f114ad14d9bbb01207a5fa9a15c3 (diff) | |
| download | lilliput-ae-implem-2be282051a89cd69eba40aca79bb17daebb72dab.tar.xz | |
Correction de la génération du tweak pour ΘCB3
L'implémentation de référence se basait sur les indices figurant dans
le papier de Deoxys. Deux questions à résoudre, que d'autres se sont
sans doute déjà posées :
- Est-ce que ce l-1 est normal dans le papier de Deoxys ?
- Est-ce que nos changements d'indices sont bien tous corrects ?
En tout cas, les implémentations Python et C sont maintenant d'accord.
Diffstat (limited to 'test')
| -rw-r--r-- | test/i-128/test-ae-decrypt.c | 11 | ||||
| -rw-r--r-- | test/i-128/test-ae-encrypt.c | 8 |
2 files changed, 9 insertions, 10 deletions
diff --git a/test/i-128/test-ae-decrypt.c b/test/i-128/test-ae-decrypt.c index d835342..043185b 100644 --- a/test/i-128/test-ae-decrypt.c +++ b/test/i-128/test-ae-decrypt.c @@ -57,10 +57,9 @@ const vector VECTORS[] = { 0x47, 0x6b, 0xe5, 0x6a, 0x97, 0x07, 0xc0, 0x87 }, .tag = { - 0x69, 0xb6, 0x26, 0x07, 0x4f, 0x76, 0xc6, 0x3a, - 0x0e, 0x0e, 0xcd, 0xa4, 0x4b, 0xad, 0x77, 0x1f - } - , + 0x2e, 0xe5, 0xbf, 0x50, 0x87, 0x71, 0x17, 0x40, + 0x1b, 0xa7, 0xe9, 0xed, 0xd5, 0xcb, 0xec, 0x6d + }, .message = (uint8_t[]) { 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, @@ -107,8 +106,8 @@ const vector VECTORS[] = { 0x4f, 0x09 }, .tag = { - 0xbf, 0xe3, 0x8e, 0x6f, 0xda, 0x02, 0x5a, 0x63, - 0x34, 0x20, 0x4a, 0x43, 0xc2, 0x54, 0x3e, 0x5b + 0x04, 0x10, 0xbc, 0x6f, 0xe5, 0x88, 0xe0, 0xd5, + 0x09, 0x59, 0x26, 0x17, 0x12, 0x49, 0x35, 0x9a }, .message = (uint8_t[]) { 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, diff --git a/test/i-128/test-ae-encrypt.c b/test/i-128/test-ae-encrypt.c index 442d621..522a3e6 100644 --- a/test/i-128/test-ae-encrypt.c +++ b/test/i-128/test-ae-encrypt.c @@ -67,8 +67,8 @@ const vector VECTORS[] = { 0x47, 0x6b, 0xe5, 0x6a, 0x97, 0x07, 0xc0, 0x87 }, .tag = { - 0x69, 0xb6, 0x26, 0x07, 0x4f, 0x76, 0xc6, 0x3a, - 0x0e, 0x0e, 0xcd, 0xa4, 0x4b, 0xad, 0x77, 0x1f + 0x2e, 0xe5, 0xbf, 0x50, 0x87, 0x71, 0x17, 0x40, + 0x1b, 0xa7, 0xe9, 0xed, 0xd5, 0xcb, 0xec, 0x6d } }, { @@ -117,8 +117,8 @@ const vector VECTORS[] = { 0x4f, 0x09 }, .tag = { - 0xbf, 0xe3, 0x8e, 0x6f, 0xda, 0x02, 0x5a, 0x63, - 0x34, 0x20, 0x4a, 0x43, 0xc2, 0x54, 0x3e, 0x5b + 0x04, 0x10, 0xbc, 0x6f, 0xe5, 0x88, 0xe0, 0xd5, + 0x09, 0x59, 0x26, 0x17, 0x12, 0x49, 0x35, 0x9a } } }; |
