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/i-128/traces-ae.c | 10 ++++++++-- test/i-128/traces-tbc.c | 10 ++++++++-- 2 files changed, 16 insertions(+), 4 deletions(-) (limited to 'test/i-128') diff --git a/test/i-128/traces-ae.c b/test/i-128/traces-ae.c index 223ab2e..cb8e4e2 100644 --- a/test/i-128/traces-ae.c +++ b/test/i-128/traces-ae.c @@ -96,11 +96,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", 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); diff --git a/test/i-128/traces-tbc.c b/test/i-128/traces-tbc.c index c128da2..0d1f6a8 100644 --- a/test/i-128/traces-tbc.c +++ b/test/i-128/traces-tbc.c @@ -40,11 +40,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