On Mon, Apr 24, 2023 at 02:47:25PM -0400, Danny Tsen wrote:
+ if (likely(srclen >= POLY1305_BLOCK_SIZE)) {Your chacha code has a SIMD-fallback, how come this one doesn't?
+ bytes = round_down(srclen, POLY1305_BLOCK_SIZE);
+ used = crypto_poly1305_setdctxkey(dctx, src, bytes);
+ if (likely(used)) {
+ srclen -= used;
+ src += used;
+ }
+ if (srclen >= POLY1305_BLOCK_SIZE*4) {
+ vsx_begin();
Thanks,