From efbea430fc5443e373606e3c9f79fa39388e6812 Mon Sep 17 00:00:00 2001 From: Kévin Le Gouguec Date: Tue, 4 Dec 2018 11:11:16 +0100 Subject: Réorganisation des traces MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/ii-192/traces-tbc.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'test/ii-192/traces-tbc.c') 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; vname); + 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); -- cgit v1.2.3