summaryrefslogtreecommitdiff
path: root/crypto_aead/lilliputaei128v1
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@airbus.com>2018-11-22 14:57:47 +0100
committerKévin Le Gouguec <kevin.legouguec@airbus.com>2018-11-22 14:57:47 +0100
commit6b9b98de6c032fd3fd74a19083630cb749e185a7 (patch)
treee6d1f393002352eaaed6012fe49984b77b1b0477 /crypto_aead/lilliputaei128v1
parent3a18c0891d890892a23eec2d4f438d2758dee1fe (diff)
downloadlilliput-ae-implem-6b9b98de6c032fd3fd74a19083630cb749e185a7.tar.xz
Mise à jour de la permutation du tweakey dans l'implémentation
Diffstat (limited to 'crypto_aead/lilliputaei128v1')
-rw-r--r--crypto_aead/lilliputaei128v1/ref/constants.c2
-rw-r--r--crypto_aead/lilliputaei128v1/ref/tweakey.c2
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; k<LANE_BYTES; k++)
{
- TK->TK[j+k] = TK_old[j+h[k]];
+ TK->TK[j+h[k]] = TK_old[j+k];
}
}
}