summaryrefslogtreecommitdiff
path: root/test/ii-192/traces-tbc.c
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@airbus.com>2018-12-04 11:11:16 +0100
committerKévin Le Gouguec <kevin.legouguec@airbus.com>2018-12-04 11:11:16 +0100
commitefbea430fc5443e373606e3c9f79fa39388e6812 (patch)
tree6fb8f7a7c08d92cb328a23eb298499436d00975b /test/ii-192/traces-tbc.c
parentca5d23276808b6b6c4d069e0ce77d776b5d93306 (diff)
downloadlilliput-ae-implem-efbea430fc5443e373606e3c9f79fa39388e6812.tar.xz
Réorganisation des traces
Diffstat (limited to 'test/ii-192/traces-tbc.c')
-rw-r--r--test/ii-192/traces-tbc.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/test/ii-192/traces-tbc.c b/test/ii-192/traces-tbc.c
index 5f5929f..59574af 100644
--- a/test/ii-192/traces-tbc.c
+++ b/test/ii-192/traces-tbc.c
@@ -41,11 +41,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-192-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);