Update tests for AEAD change

This commit is contained in:
2025-09-09 20:55:16 -07:00
parent a3d978a4b3
commit 6287904204
2 changed files with 8 additions and 9 deletions

View File

@@ -3,10 +3,10 @@ module TestAsconAEAD128 where
import Ascon
testcase : {n, m} (fin m, fin n) => [128] -> [128] -> [8 * m] -> [8 * n] -> [8 * (m + 16)] -> Bit
testcase K N P A C =
AEAD128_encrypt_bytes (split K) (split N) (split A) (split P) == split C
testcase K N P A (C # T) =
AEAD128_encrypt_bytes (split K) (split N) (split A) (split P) == (split C, split T)
/\
case AEAD128_decrypt_bytes (split K) (split N) (split A) (split C) of
case AEAD128_decrypt_bytes (split K) (split N) (split A) (split C) (split T) of
None -> False
Some p -> p == split P