summaryrefslogtreecommitdiff
path: root/crypto_aead/lilliputaei128v1/ref/test
diff options
context:
space:
mode:
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
);