Skip to content

Commit fd8cbcd

Browse files
committed
Accomodate format change in NIST KATs
Signed-off-by: Anjan Roy <hello@itzmeanjan.in>
1 parent 0596ea2 commit fd8cbcd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kats/scripts/parse_ascon_aead128_acvp_kat.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def main():
2121
for test in test_group["tests"]:
2222
if test["payloadLen"] % 8 != 0:
2323
continue
24-
if test["aadLen"] % 8 != 0:
24+
if test["adLen"] % 8 != 0:
2525
continue
2626
if test["tagLen"] % 8 != 0:
2727
continue
@@ -32,7 +32,7 @@ def main():
3232
sys.stdout.write(f'Key = {test["key"]}\n')
3333
sys.stdout.write(f'Nonce = {test["nonce"]}\n')
3434
sys.stdout.write(f'PT = {test["pt"]}\n')
35-
sys.stdout.write(f'AD = {test["aad"]}\n')
35+
sys.stdout.write(f'AD = {test["ad"]}\n')
3636
sys.stdout.write(f'CT = {test["ct"]}\n')
3737
sys.stdout.write(f'Tag = {test["tag"]}\n')
3838

0 commit comments

Comments
 (0)