From 6b9b98de6c032fd3fd74a19083630cb749e185a7 Mon Sep 17 00:00:00 2001 From: Kévin Le Gouguec Date: Thu, 22 Nov 2018 14:57:47 +0100 Subject: Mise à jour de la permutation du tweakey dans l'implémentation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crypto_aead/lilliputaei128v1/ref/constants.c | 2 +- crypto_aead/lilliputaei128v1/ref/tweakey.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crypto_aead/lilliputaei128v1/ref/constants.c b/crypto_aead/lilliputaei128v1/ref/constants.c index 350021c..b8c8f31 100644 --- a/crypto_aead/lilliputaei128v1/ref/constants.c +++ b/crypto_aead/lilliputaei128v1/ref/constants.c @@ -2,7 +2,7 @@ const uint8_t h[8] = { - 4, 0, 1, 5, 2, 6, 3, 7 + 1, 2, 4, 6, 0, 3, 5, 7 }; const uint8_t P[6][256] = { diff --git a/crypto_aead/lilliputaei128v1/ref/tweakey.c b/crypto_aead/lilliputaei128v1/ref/tweakey.c index 3fa2dac..4946245 100644 --- a/crypto_aead/lilliputaei128v1/ref/tweakey.c +++ b/crypto_aead/lilliputaei128v1/ref/tweakey.c @@ -67,7 +67,7 @@ static void _permute_state(tweakey_state *TK) { for (size_t k=0; kTK[j+k] = TK_old[j+h[k]]; + TK->TK[j+h[k]] = TK_old[j+k]; } } } -- cgit v1.2.3