[openssl-dev] [openssl.org #4346] poly1305-x86.pl's AVX2 code

David Benjamin via RT rt at openssl.org
Fri Feb 26 21:59:23 UTC 2016


On Fri, Feb 26, 2016 at 4:48 PM Andy Polyakov via RT <rt at openssl.org> wrote:

> > There seems to be a bug in the AVX2 codepath in poly1305-x86.pl. I have
> not
> > attempted to debug this, but I have attached a test file which produces
> > different output in normal and AVX2 codepaths. Our existing poly1305
> > implementation agrees with the former.
> >
> > $ OPENSSL_ia32cap=0 ./poly1305_test
> > PASS
> > $ ./poly1305_test
> > Poly1305 test failed.
> > got:      2e65f0054e36505687d937ff5e8ed112
> > expected: 69d28f73dd09d39a92aa179da354b7ea
>
> While I keep looking further, double-check attached.
>

That patch makes all of my test cases pass. (Though I don't know if I have
coverage for this code because valgrind doesn't do 32-bit AVX2 yet.)

David

-- 
Ticket here: http://rt.openssl.org/Ticket/Display.html?id=4346
Please log in as guest with password guest if prompted



More information about the openssl-dev mailing list