commit 9328089a5a699b900886389ab128fd81397637bd
parent 22591d1cef9a553fab43537446a5fa1c07daa48e
Author: Kévin Le Gouguec <kevin.legouguec@airbus.com>
Date: Tue, 11 Dec 2018 15:07:20 +0100
Correction de l'affichage de TK dans les traces
Diffstat:
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/traces/traces-tbc.patch b/traces/traces-tbc.patch
@@ -1,5 +1,5 @@
diff --git a/SOUMISSION_NIST/REFERENCE_IMPLEMENTATION/src/cipher.c b/SOUMISSION_NIST/REFERENCE_IMPLEMENTATION/src/cipher.c
-index bb2d46a..5e637b8 100644
+index bb2d46a..028d4e2 100644
--- a/SOUMISSION_NIST/REFERENCE_IMPLEMENTATION/src/cipher.c
+++ b/SOUMISSION_NIST/REFERENCE_IMPLEMENTATION/src/cipher.c
@@ -1,3 +1,5 @@
@@ -26,7 +26,7 @@ index bb2d46a..5e637b8 100644
+ fprintf(DUMP, " %zu\n", (size_t)i);
+
tweakey_state_update(TK);
-+ debug_dump_buffer("TK", TWEAK_BYTES, TK, 8);
++ debug_dump_buffer("TK", TWEAKEY_BYTES, TK, 8);
tweakey_state_extract(TK, i, RTK[i]);
+ debug_dump_buffer("RTK", ROUND_TWEAKEY_BYTES, RTK[i], 8);
}
@@ -114,7 +114,7 @@ index bb2d46a..5e637b8 100644
memcpy(ciphertext, X, BLOCK_BYTES);
diff --git a/SOUMISSION_NIST/REFERENCE_IMPLEMENTATION/src/tweakey.c b/SOUMISSION_NIST/REFERENCE_IMPLEMENTATION/src/tweakey.c
-index c7d5aaa..a3be76b 100644
+index 8f2f7dd..3b81cff 100644
--- a/SOUMISSION_NIST/REFERENCE_IMPLEMENTATION/src/tweakey.c
+++ b/SOUMISSION_NIST/REFERENCE_IMPLEMENTATION/src/tweakey.c
@@ -1,3 +1,5 @@
@@ -140,7 +140,7 @@ index c7d5aaa..a3be76b 100644
}
round_tweakey[0] ^= round_constant;
-@@ -114,6 +122,10 @@ static const matrix_multiplication ALPHAS[6] = {
+@@ -152,6 +160,10 @@ static const matrix_multiplication ALPHAS[6] = {
_multiply_MR3
};
@@ -151,7 +151,7 @@ index c7d5aaa..a3be76b 100644
void tweakey_state_update(uint8_t TK[TWEAKEY_BYTES])
{
-@@ -127,5 +139,9 @@ void tweakey_state_update(uint8_t TK[TWEAKEY_BYTES])
+@@ -165,5 +177,9 @@ void tweakey_state_update(uint8_t TK[TWEAKEY_BYTES])
memcpy(TKj_old, TKj, LANE_BYTES);
ALPHAS[j-1](TKj_old, TKj);