diff options
| author | Kévin Le Gouguec <kevin.legouguec@airbus.com> | 2018-11-27 08:07:38 +0100 |
|---|---|---|
| committer | Kévin Le Gouguec <kevin.legouguec@airbus.com> | 2018-11-27 08:10:01 +0100 |
| commit | 0ba0dda345c2280ebebe67ecaaa6179330b5cb01 (patch) | |
| tree | 6a2854a496b80c4c66307f6f168a1dd07f297052 /crypto_aead/lilliputaei128v1/ref/test/test-tweakey.c | |
| parent | 4a5daafd4292d907e15291204aaffd29e6f6bbc2 (diff) | |
| download | lilliput-ae-implem-0ba0dda345c2280ebebe67ecaaa6179330b5cb01.tar.xz | |
Suppression du code de debug
Avec debug.h, il devrait être facile d'ajouter des traces en cas de
besoin.
Diffstat (limited to 'crypto_aead/lilliputaei128v1/ref/test/test-tweakey.c')
| -rw-r--r-- | crypto_aead/lilliputaei128v1/ref/test/test-tweakey.c | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/crypto_aead/lilliputaei128v1/ref/test/test-tweakey.c b/crypto_aead/lilliputaei128v1/ref/test/test-tweakey.c index d75d2b0..7d2e08a 100644 --- a/crypto_aead/lilliputaei128v1/ref/test/test-tweakey.c +++ b/crypto_aead/lilliputaei128v1/ref/test/test-tweakey.c @@ -84,33 +84,20 @@ const vector VECTORS[] = { }; -int main(int argc, char const * const *argv) +int main() { - if (argc < 2) - { - fprintf(stderr, "usage: %s OUTPUT-FOLDER\n", argv[0]); - return 1; - } - int diff = 0; for (const vector *v=VECTORS; v<ARRAY_END(VECTORS); v++) { - FILE *dump = open_dump_file(argv[1], "tweakey", v->name); - - fprintf(dump, "Building Tweakey :\n"); - tweakey_state tk; - tweakey_state_init(&tk, v->key, v->tweak, dump); - - fprintf(dump, "Tweakey Schedule\n"); + tweakey_state_init(&tk, v->key, v->tweak); uint8_t rtk[ROUND_TWEAKEY_BYTES]; tweakey_state_extract(&tk, rtk, 0); for (uint8_t i=1; i<ROUNDS; i++) { - fprintf(dump, " Round Tweakey %"PRIu8"\n", i); tweakey_state_update(&tk); tweakey_state_extract(&tk, rtk, i); } @@ -120,8 +107,6 @@ int main(int argc, char const * const *argv) REPORT_DIFFERENCE(v->name, "last RTK"); diff++; } - - fclose(dump); } return diff; |
