[Libre-soc-bugs] [Bug 1157] Implement poly1305

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Wed Oct 11 20:56:06 BST 2023


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

--- Comment #27 from Sadoon Albader <sadoon at albader.co> ---
This is a copy-pasta of poly1305-donna.py BUT now has a small function that
runs ISACaller in such syntax:

simulator(lst, RS, RA, RB)

https://git.libre-soc.org/?p=openpower-isa.git;a=commitdiff;h=6a798c6eb31f17bc2e7e4e2f2b25e51c3de39044

Obviously doesn't work with immediate-based instructions but the most important
part is:

I have added ASM inlining using ISACaller in a very simple way, which means I
can finally move to the SVP64 implementation while still using the same tests.

For now, only the first h0+= ... is implemented in ISACaller, I explicitly did
this for testing whether this works, and luckily it only needs one instruction
:D

I'll need to reconsider later whether I will use this function (likely not when
things grow bigger but it's useful nonetheless) but it was a good exercise to
a- revise my python skills and b- make sure I know how to call ISACaller

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


More information about the libre-soc-bugs mailing list