summaryrefslogtreecommitdiff
path: root/crypto_aead/lilliputaei128v1/ref/test
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@airbus.com>2018-11-26 14:21:01 +0100
committerKévin Le Gouguec <kevin.legouguec@airbus.com>2018-11-26 14:21:01 +0100
commitdb2c7ed005cd201d708b43fd5babb626b9819e31 (patch)
tree879e8f4fe71f142cb0f7eb7a3a4345476d1af047 /crypto_aead/lilliputaei128v1/ref/test
parent5a2a9781534370bc3060ae58cc6b89d4a262bfcf (diff)
downloadlilliput-ae-implem-db2c7ed005cd201d708b43fd5babb626b9819e31.tar.xz
Implémentation du mode ΘCB3 : chiffrement - message - tweak
Et 2-3 corrections au passage : - taille du tweak dans les commentaires - remplissage du tweak pour les données associées - ordre des arguments
Diffstat (limited to 'crypto_aead/lilliputaei128v1/ref/test')
-rw-r--r--crypto_aead/lilliputaei128v1/ref/test/test-ae-roundtrip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto_aead/lilliputaei128v1/ref/test/test-ae-roundtrip.c b/crypto_aead/lilliputaei128v1/ref/test/test-ae-roundtrip.c
index f1cb24c..4b03efb 100644
--- a/crypto_aead/lilliputaei128v1/ref/test/test-ae-roundtrip.c
+++ b/crypto_aead/lilliputaei128v1/ref/test/test-ae-roundtrip.c
@@ -87,7 +87,7 @@ int main()
lilliput_ae_encrypt(
v->message_len, v->message,
v->auth_len, v->auth,
- v->nonce, v->key,
+ v->key, v->nonce,
&ciphertext_len, ciphertext,
tag
);
@@ -97,7 +97,7 @@ int main()
bool valid = lilliput_ae_decrypt(
ciphertext_len, ciphertext,
v->auth_len, v->auth,
- v->nonce, v->key, tag,
+ v->key, v->nonce, tag,
&deciphered_len, deciphered
);