commit 6b9b98de6c032fd3fd74a19083630cb749e185a7
parent 3a18c0891d890892a23eec2d4f438d2758dee1fe
Author: Kévin Le Gouguec <kevin.legouguec@airbus.com>
Date: Thu, 22 Nov 2018 14:57:47 +0100
Mise à jour de la permutation du tweakey dans l'implémentation
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git 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
@@ -67,7 +67,7 @@ static void _permute_state(tweakey_state *TK)
{
for (size_t k=0; k<LANE_BYTES; k++)
{
- TK->TK[j+k] = TK_old[j+h[k]];
+ TK->TK[j+h[k]] = TK_old[j+k];
}
}
}