diff options
Diffstat (limited to 'test/ii-256/traces-tbc.c')
| -rw-r--r-- | test/ii-256/traces-tbc.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/test/ii-256/traces-tbc.c b/test/ii-256/traces-tbc.c index 217d335..3a083e8 100644 --- a/test/ii-256/traces-tbc.c +++ b/test/ii-256/traces-tbc.c @@ -42,11 +42,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-ii", 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); |
