summaryrefslogtreecommitdiff
path: root/test/i-256/traces-tbc.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/i-256/traces-tbc.c')
-rw-r--r--test/i-256/traces-tbc.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/test/i-256/traces-tbc.c b/test/i-256/traces-tbc.c
index 6668c8c..a135583 100644
--- a/test/i-256/traces-tbc.c
+++ b/test/i-256/traces-tbc.c
@@ -43,11 +43,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("tbc-256-i", v->name);
+ debug_open_dump(argv[1], argv[2], v->name);
debug_dump_buffer("message", BLOCK_BYTES, v->message, 0);
debug_dump_buffer("key", KEY_BYTES, v->key, 0);
debug_dump_buffer("tweak", TWEAK_BYTES, v->tweak, 0);