[Libre-soc-bugs] [Bug 1159] poly1305 unit tests
bugzilla-daemon at libre-soc.org
bugzilla-daemon at libre-soc.org
Wed Sep 20 17:54:57 BST 2023
https://bugs.libre-soc.org/show_bug.cgi?id=1159
--- Comment #1 from Sadoon Albader <sadoon at albader.co> ---
Rough brainstorming:
To implement comprehensive unit tests we need to understand what we're testing,
figure out the normal cases, edge cases, and additional behavior that is
specifically related to SVP64.
I'll organize this list in order of complexity.
numbers are in bytes,
m = message, k = key, h' = received MAC, h = generated MAC
Message size:
-m[0] is received, nothing to authenticate, exit
- m[16] is received, algorithm needs to process exactly one block and is done.
- m[16*n] is received, algorithm needs to process exactly n blocks using the
same function and is done.
-m[1<n<16] is received, algorithm needs to process leftover data as opposed to
full data (I have to study this a bit more)
-m[17<n] where n%16=/=0 received, algorithm processes n/16 blocks normally and
the last block is processed as leftover.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the libre-soc-bugs
mailing list