From 545454617b142dbf16cd3c31ef3e876ec279c4fc Mon Sep 17 00:00:00 2001 From: Mohamed Tarek <104282801+motarekk@users.noreply.github.com> Date: Tue, 3 Oct 2023 12:11:55 +0300 Subject: [PATCH] Update Ascon-128_KAT.js --- KATs/Ascon-128_KAT.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/KATs/Ascon-128_KAT.js b/KATs/Ascon-128_KAT.js index a906af1..7a29a64 100644 --- a/KATs/Ascon-128_KAT.js +++ b/KATs/Ascon-128_KAT.js @@ -25,13 +25,14 @@ function ascon_128_KAT(){ try { var ct_to_test = ascon_aead(key, nonce, ad, pt, operation, variant).toUpperCase(); } catch (error) { - console.log(`failed test: ${ascon_128_kats[i].Count}`); + console.log(`Error in test case ${ascon_128a_kats[i].Count}: ${error}`) } if(ct == ct_to_test){ passed += 1; } else { failed += 1; + console.log(`failed test: ${ascon_128_kats[i].Count}`); } } @@ -52,13 +53,14 @@ function ascon_128_KAT(){ try { var pt_to_test = ascon_aead(key, nonce, ad, ct.toLowerCase(), operation, variant).toUpperCase(); } catch (error) { - console.log(`failed test: ${ascon_128_kats[i].Count}`); + console.log(`Error in test case ${ascon_128a_kats[i].Count}: ${error}`); } if(pt == pt_to_test){ passed += 1; } else { failed += 1; + console.log(`failed test: ${ascon_128_kats[i].Count}`); } }