From 0b90498964b43fa37111701030ac693484130c8a Mon Sep 17 00:00:00 2001 From: Kévin Le Gouguec Date: Tue, 11 Dec 2018 14:02:45 +0100 Subject: Correction des shifts lors de la multiplication par MR MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit *Toutes* les opérations s'appliquent dans l'autre sens, *y compris les shifts*, vu que on prend (y₀…y7)ᵗ = MR(x₀…x₇)ᵗ. --- test/i-128/test-tbc-decrypt.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test/i-128/test-tbc-decrypt.c') diff --git a/test/i-128/test-tbc-decrypt.c b/test/i-128/test-tbc-decrypt.c index 6e992e8..6b558cb 100644 --- a/test/i-128/test-tbc-decrypt.c +++ b/test/i-128/test-tbc-decrypt.c @@ -33,8 +33,8 @@ const vector VECTORS[] = { 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f }, .ciphertext = { - 0xdd, 0x93, 0x48, 0x8a, 0x10, 0x0c, 0xd4, 0xdc, - 0x4c, 0xa1, 0x9a, 0x53, 0x1d, 0x3d, 0x41, 0x62 + 0x8d, 0x95, 0xa2, 0x10, 0xe6, 0xb2, 0xce, 0xc2, + 0x52, 0x0b, 0x06, 0xaf, 0x26, 0x00, 0xce, 0xe5 }, .message = { 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, @@ -53,8 +53,8 @@ const vector VECTORS[] = { 0x7f, 0xf4, 0x23, 0x4d, 0x3d, 0xd5, 0xf9, 0x9b }, .ciphertext = { - 0xca, 0x79, 0x91, 0xe5, 0x48, 0xda, 0xdd, 0xab, - 0xcb, 0xd9, 0xd5, 0xa0, 0x43, 0x39, 0x14, 0x07 + 0x5b, 0x5a, 0x1c, 0xfe, 0x25, 0x6e, 0x85, 0x69, + 0x3e, 0x71, 0x3e, 0x43, 0x30, 0xa8, 0x4c, 0x82 }, .message = { 0xbc, 0xd7, 0xf0, 0x29, 0x84, 0xb6, 0xc8, 0xf9, -- cgit v1.2.3