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

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Fri Dec 8 18:21:58 GMT 2023


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

--- Comment #43 from Luke Kenneth Casson Leighton <lkcl at lkcl.net> ---
(In reply to Sadoon Albader from comment #41)

> Which is this in python:
> 
>             h0 += t0 & 0xfffffffffff
>             h1 += (((t0 >> 44) | (t1 << 20)) & 0xfffffffffff);
>             h2 += (((t1 >> 24)             ) & 0x3ffffffffff) | hibit;

see comment #18.

it is something like this in python:

r1, t0 = dsrd(t0, 0, 44)
r2, t1 = dsrd(t1, t0, 44)

h1 += r1
h2 += r2

or close to it.

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


More information about the libre-soc-bugs mailing list