From c800899400f179dde4960ef945336f4ce0e24d89 Mon Sep 17 00:00:00 2001 From: Kévin Le Gouguec Date: Tue, 11 Dec 2018 16:17:23 +0100 Subject: Revert "Adaptation des tests à la correction de M³" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 7a0789a3abb151e80959f4f802c9154e5c2899c3. Paul confirme qu'il faut apporter une correction à M³ ; avec un peu de chance, on peut donc garder les tests tels qu'il étaient avant de déplier M³. --- test/i-128/test-ae-decrypt.c | 45 ++++++++++++++++++++++---------------------- 1 file changed, 23 insertions(+), 22 deletions(-) (limited to 'test/i-128/test-ae-decrypt.c') diff --git a/test/i-128/test-ae-decrypt.c b/test/i-128/test-ae-decrypt.c index 0ebdb25..d835342 100644 --- a/test/i-128/test-ae-decrypt.c +++ b/test/i-128/test-ae-decrypt.c @@ -47,19 +47,20 @@ const vector VECTORS[] = { }, .ciphertext_len = 64, .ciphertext = (uint8_t[]) { - 0xda, 0x1d, 0xa5, 0xa1, 0xc3, 0x6a, 0x09, 0x7a, - 0x4d, 0xbd, 0x99, 0xa0, 0xe6, 0x82, 0x60, 0xdb, - 0xe3, 0x86, 0x2e, 0x8e, 0xee, 0xa8, 0x98, 0x70, - 0x09, 0xb3, 0xf1, 0xf2, 0x41, 0xb2, 0xb6, 0x7d, - 0x7c, 0xb6, 0x6e, 0x12, 0x7c, 0x70, 0x6e, 0x4f, - 0x41, 0xa4, 0x9c, 0x56, 0x31, 0xd6, 0xcd, 0xac, - 0xcf, 0x6b, 0xab, 0x19, 0x29, 0xba, 0xa1, 0xea, - 0xaf, 0xeb, 0xc7, 0xbc, 0xb2, 0x91, 0xdb, 0xf8 + 0x86, 0x09, 0xbe, 0x90, 0xa2, 0x9f, 0xa0, 0xed, + 0x9a, 0xf6, 0xeb, 0x8d, 0x96, 0x0e, 0x83, 0x81, + 0x0a, 0x6b, 0x00, 0xf4, 0x76, 0x99, 0xf4, 0x62, + 0x4e, 0x3d, 0x91, 0x4c, 0x95, 0x96, 0x56, 0x91, + 0x94, 0xf2, 0x29, 0x55, 0x20, 0x11, 0x2c, 0x93, + 0x15, 0x23, 0x59, 0xe2, 0xa3, 0xc4, 0xc4, 0x62, + 0xbb, 0xa3, 0x11, 0xf1, 0x39, 0xa2, 0xe2, 0xc9, + 0x47, 0x6b, 0xe5, 0x6a, 0x97, 0x07, 0xc0, 0x87 }, .tag = { - 0x06, 0x9f, 0xa6, 0xfa, 0x92, 0xe0, 0x2f, 0x47, - 0xfa, 0x73, 0x1f, 0x06, 0xa8, 0x38, 0xa8, 0xe2 - }, + 0x69, 0xb6, 0x26, 0x07, 0x4f, 0x76, 0xc6, 0x3a, + 0x0e, 0x0e, 0xcd, 0xa4, 0x4b, 0xad, 0x77, 0x1f + } + , .message = (uint8_t[]) { 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, @@ -95,19 +96,19 @@ const vector VECTORS[] = { }, .ciphertext_len = 66, .ciphertext = (uint8_t[]) { - 0xda, 0x1d, 0xa5, 0xa1, 0xc3, 0x6a, 0x09, 0x7a, - 0x4d, 0xbd, 0x99, 0xa0, 0xe6, 0x82, 0x60, 0xdb, - 0xe3, 0x86, 0x2e, 0x8e, 0xee, 0xa8, 0x98, 0x70, - 0x09, 0xb3, 0xf1, 0xf2, 0x41, 0xb2, 0xb6, 0x7d, - 0x7c, 0xb6, 0x6e, 0x12, 0x7c, 0x70, 0x6e, 0x4f, - 0x41, 0xa4, 0x9c, 0x56, 0x31, 0xd6, 0xcd, 0xac, - 0xcf, 0x6b, 0xab, 0x19, 0x29, 0xba, 0xa1, 0xea, - 0xaf, 0xeb, 0xc7, 0xbc, 0xb2, 0x91, 0xdb, 0xf8, - 0xaf, 0x65 + 0x86, 0x09, 0xbe, 0x90, 0xa2, 0x9f, 0xa0, 0xed, + 0x9a, 0xf6, 0xeb, 0x8d, 0x96, 0x0e, 0x83, 0x81, + 0x0a, 0x6b, 0x00, 0xf4, 0x76, 0x99, 0xf4, 0x62, + 0x4e, 0x3d, 0x91, 0x4c, 0x95, 0x96, 0x56, 0x91, + 0x94, 0xf2, 0x29, 0x55, 0x20, 0x11, 0x2c, 0x93, + 0x15, 0x23, 0x59, 0xe2, 0xa3, 0xc4, 0xc4, 0x62, + 0xbb, 0xa3, 0x11, 0xf1, 0x39, 0xa2, 0xe2, 0xc9, + 0x47, 0x6b, 0xe5, 0x6a, 0x97, 0x07, 0xc0, 0x87, + 0x4f, 0x09 }, .tag = { - 0xe0, 0x44, 0x87, 0x93, 0x7c, 0x27, 0x7f, 0x04, - 0xb5, 0x4b, 0xbd, 0x75, 0x2d, 0x47, 0x0e, 0x5b + 0xbf, 0xe3, 0x8e, 0x6f, 0xda, 0x02, 0x5a, 0x63, + 0x34, 0x20, 0x4a, 0x43, 0xc2, 0x54, 0x3e, 0x5b }, .message = (uint8_t[]) { 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, -- cgit v1.2.3