summaryrefslogtreecommitdiff
path: root/crypto_aead/lilliputaei128v1/ref/test/test-tbc-encrypt.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto_aead/lilliputaei128v1/ref/test/test-tbc-encrypt.c')
-rw-r--r--crypto_aead/lilliputaei128v1/ref/test/test-tbc-encrypt.c16
1 files changed, 3 insertions, 13 deletions
diff --git a/crypto_aead/lilliputaei128v1/ref/test/test-tbc-encrypt.c b/crypto_aead/lilliputaei128v1/ref/test/test-tbc-encrypt.c
index 0c6f980..2d116b9 100644
--- a/crypto_aead/lilliputaei128v1/ref/test/test-tbc-encrypt.c
+++ b/crypto_aead/lilliputaei128v1/ref/test/test-tbc-encrypt.c
@@ -1,4 +1,4 @@
-#include <inttypes.h>
+#include <stdint.h>
#include <stdio.h>
#include <string.h>
@@ -64,30 +64,20 @@ const vector VECTORS[] = {
};
-int main(int argc, char const * const *argv)
+int main()
{
- if (argc < 2)
- {
- fprintf(stderr, "usage: %s OUTPUT-FOLDER\n", argv[0]);
- return 1;
- }
-
int diff = 0;
for (const vector *v=VECTORS; v<ARRAY_END(VECTORS); v++)
{
- FILE *dump = open_dump_file(argv[1], "tbc-encrypt", v->name);
-
uint8_t ciphertext[BLOCK_BYTES];
- lilliput_tbc_encrypt(v->key, v->tweak, v->message, ciphertext, dump);
+ lilliput_tbc_encrypt(v->key, v->tweak, v->message, ciphertext);
if (memcmp(ciphertext, v->ciphertext, sizeof(ciphertext)) != 0)
{
REPORT_DIFFERENCE(v->name, "ciphertext");
diff++;
}
-
- fclose(dump);
}
return diff;