summaryrefslogtreecommitdiff
path: root/test/i-128/test-tweakey.c
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@airbus.com>2018-12-05 13:40:41 +0100
committerKévin Le Gouguec <kevin.legouguec@airbus.com>2018-12-05 13:44:54 +0100
commit7cef7206f7f4ec6afe54b710826e5c869be71df7 (patch)
treeb7d99a49eadeef7aad789a7b7cf23b1cc6a92ac9 /test/i-128/test-tweakey.c
parent52c0e83053a4a7326da6436f9ef29b7dcc64db41 (diff)
downloadlilliput-ae-implem-7cef7206f7f4ec6afe54b710826e5c869be71df7.tar.xz
Mise à jour de la permutation du key schedule dans le code
Ajout d'une fonction pour récupérer facilement la nouvelle valeur des vecteurs.
Diffstat (limited to 'test/i-128/test-tweakey.c')
-rw-r--r--test/i-128/test-tweakey.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/i-128/test-tweakey.c b/test/i-128/test-tweakey.c
index 2b0bad5..e332c66 100644
--- a/test/i-128/test-tweakey.c
+++ b/test/i-128/test-tweakey.c
@@ -63,7 +63,7 @@ const vector VECTORS[] = {
0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f
},
.last_rtk = {
- 0xa5, 0x92, 0x9b, 0xa7, 0x86, 0x8f, 0xb3, 0xae
+ 0xb8, 0xba, 0x86, 0x8f, 0xae, 0x92, 0x9b, 0xb3
}
},
{
@@ -78,7 +78,7 @@ const vector VECTORS[] = {
0x7f, 0xf4, 0x23, 0x4d, 0x3d, 0xd5, 0xf9, 0x9b
},
.last_rtk = {
- 0xed, 0xe3, 0x39, 0xac, 0x5e, 0xa6, 0xf9, 0xf1
+ 0xb3, 0xf2, 0x5e, 0xa6, 0xf1, 0xe3, 0x39, 0xf9
}
}
};
@@ -105,6 +105,7 @@ int main()
if (memcmp(rtk, v->last_rtk, sizeof(rtk)) != 0)
{
REPORT_DIFFERENCE(v->name, "last RTK");
+ dump_c_initializer(ROUND_TWEAKEY_BYTES, rtk);
diff++;
}
}