summaryrefslogtreecommitdiff
path: root/test/i-128/test-tbc-encrypt.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-tbc-encrypt.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-tbc-encrypt.c')
-rw-r--r--test/i-128/test-tbc-encrypt.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/test/i-128/test-tbc-encrypt.c b/test/i-128/test-tbc-encrypt.c
index 60cc9cf..8d369e3 100644
--- a/test/i-128/test-tbc-encrypt.c
+++ b/test/i-128/test-tbc-encrypt.c
@@ -37,8 +37,8 @@ const vector VECTORS[] = {
0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f,
},
.ciphertext = {
- 0xf9, 0xe3, 0x95, 0x3c, 0x04, 0xf6, 0x2d, 0x9c,
- 0x2d, 0x54, 0x58, 0xc0, 0x1d, 0xcc, 0x8a, 0x25
+ 0x84, 0x04, 0xad, 0x43, 0x63, 0xb5, 0x30, 0xd0,
+ 0x68, 0x4f, 0xb9, 0x4f, 0x2d, 0xeb, 0xb1, 0xd1
}
},
{
@@ -57,8 +57,8 @@ const vector VECTORS[] = {
0x9c, 0x9d, 0x1d, 0xbd, 0x0d, 0x30, 0x94, 0x0b
},
.ciphertext = {
- 0xf4, 0x4a, 0x06, 0x30, 0x7d, 0xd2, 0xb2, 0x5a,
- 0xf9, 0xd2, 0xba, 0x6c, 0x41, 0xf4, 0x45, 0x7f
+ 0xc9, 0xa1, 0xc4, 0x1c, 0xed, 0x4b, 0xc9, 0x86,
+ 0x8d, 0x44, 0xb5, 0x61, 0x53, 0xa4, 0x34, 0xb1
}
}
};
@@ -76,6 +76,7 @@ int main()
if (memcmp(ciphertext, v->ciphertext, sizeof(ciphertext)) != 0)
{
REPORT_DIFFERENCE(v->name, "ciphertext");
+ dump_c_initializer(BLOCK_BYTES, ciphertext);
diff++;
}
}