summaryrefslogtreecommitdiff
path: root/test/i-256/traces-ae.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/i-256/traces-ae.c')
-rw-r--r--test/i-256/traces-ae.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/test/i-256/traces-ae.c b/test/i-256/traces-ae.c
index c233bcc..77fe7c8 100644
--- a/test/i-256/traces-ae.c
+++ b/test/i-256/traces-ae.c
@@ -100,11 +100,17 @@ const vector VECTORS[] = {
};
-int main()
+int main(int argc, char **argv)
{
+ if (argc < 3)
+ {
+ fprintf(stderr, "usage: %s OUTPUT-FOLDER PREFIX\n", argv[0]);
+ return 1;
+ }
+
for (const vector *v=VECTORS; v<ARRAY_END(VECTORS); v++)
{
- debug_open_dump("ae-256-i", v->name);
+ debug_open_dump(argv[1], argv[2], v->name);
debug_dump_buffer("message", v->message_len, v->message, 0);
debug_dump_buffer("associated data", v->auth_len, v->auth, 0);
debug_dump_buffer("key", KEY_BYTES, v->key, 0);