Thread (19 messages) 19 messages, 5 authors, 2023-04-26

Re: [PATCH 4/5] Glue code for optmized Poly1305 implementation for ppc64le.

From: Danny Tsen <hidden>
Date: 2023-04-25 11:58:41
Also in: linux-crypto, lkml

Did not notice that.  Will do fix it.

Thanks.

-Danny

On 4/25/23 12:44 AM, Herbert Xu wrote:
On Mon, Apr 24, 2023 at 02:47:25PM -0400, Danny Tsen wrote:
quoted
+	if (likely(srclen >= POLY1305_BLOCK_SIZE)) {
+		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();
Your chacha code has a SIMD-fallback, how come this one doesn't?

Thanks,
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help