From 2be282051a89cd69eba40aca79bb17daebb72dab Mon Sep 17 00:00:00 2001 From: Kévin Le Gouguec Date: Thu, 14 Mar 2019 09:02:07 +0100 Subject: Correction de la génération du tweak pour ΘCB3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- test/i-128/test-ae-decrypt.c | 11 +++++------ test/i-128/test-ae-encrypt.c | 8 ++++---- 2 files changed, 9 insertions(+), 10 deletions(-) (limited to 'test') 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 } } }; -- cgit v1.2.3