[Libre-soc-bugs] [Bug 1159] poly1305 unit tests

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Fri Sep 22 20:01:40 BST 2023


https://bugs.libre-soc.org/show_bug.cgi?id=1159

--- Comment #3 from Sadoon Albader <sadoon at albader.co> ---
(In reply to Luke Kenneth Casson Leighton from comment #2)
> (In reply to Sadoon Albader from comment #1)
> 1. python Poly1305 class instance
> 2. python Poly1305Donna class instance
> 3. SVP64 assembler (in test_caller_xxxyyy.py)

1. and 2. are simple enough, I've already added some known-working values from
the original poly1305-donna project and they do work fine. Importantly, they
are *not* multiples of 16-bytes and not less than 16-bytes which should put any
implementation through its paces.

But for a proper unit test I think at least 10 vectors with different sizes and
different keys should be added, which I will do before attempting anything
else.

I've been reading https://libre-soc.org/docs/firststeps/ to better understand
how test_caller_* works, is there any other relevant documentation to help
steer me in a good direction? Not necessary as I feel I already understand 80%
of how it works, but nice to have if available.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the libre-soc-bugs mailing list