From 7cef7206f7f4ec6afe54b710826e5c869be71df7 Mon Sep 17 00:00:00 2001 From: Kévin Le Gouguec Date: Wed, 5 Dec 2018 13:40:41 +0100 Subject: Mise à jour de la permutation du key schedule dans le code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ajout d'une fonction pour récupérer facilement la nouvelle valeur des vecteurs. --- test/i-128/test-tbc-encrypt.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'test/i-128/test-tbc-encrypt.c') diff --git a/test/i-128/test-tbc-encrypt.c b/test/i-128/test-tbc-encrypt.c index 60cc9cf..8d369e3 100644 --- a/test/i-128/test-tbc-encrypt.c +++ b/test/i-128/test-tbc-encrypt.c @@ -37,8 +37,8 @@ const vector VECTORS[] = { 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, }, .ciphertext = { - 0xf9, 0xe3, 0x95, 0x3c, 0x04, 0xf6, 0x2d, 0x9c, - 0x2d, 0x54, 0x58, 0xc0, 0x1d, 0xcc, 0x8a, 0x25 + 0x84, 0x04, 0xad, 0x43, 0x63, 0xb5, 0x30, 0xd0, + 0x68, 0x4f, 0xb9, 0x4f, 0x2d, 0xeb, 0xb1, 0xd1 } }, { @@ -57,8 +57,8 @@ const vector VECTORS[] = { 0x9c, 0x9d, 0x1d, 0xbd, 0x0d, 0x30, 0x94, 0x0b }, .ciphertext = { - 0xf4, 0x4a, 0x06, 0x30, 0x7d, 0xd2, 0xb2, 0x5a, - 0xf9, 0xd2, 0xba, 0x6c, 0x41, 0xf4, 0x45, 0x7f + 0xc9, 0xa1, 0xc4, 0x1c, 0xed, 0x4b, 0xc9, 0x86, + 0x8d, 0x44, 0xb5, 0x61, 0x53, 0xa4, 0x34, 0xb1 } } }; @@ -76,6 +76,7 @@ int main() if (memcmp(ciphertext, v->ciphertext, sizeof(ciphertext)) != 0) { REPORT_DIFFERENCE(v->name, "ciphertext"); + dump_c_initializer(BLOCK_BYTES, ciphertext); diff++; } } -- cgit v1.2.3