From 0eb76bcfd8fe528c985fe784e8c2227a4973b17f Mon Sep 17 00:00:00 2001 From: Daniel Pouzzner Date: Mon, 18 Oct 2021 23:46:54 -0500 Subject: [PATCH] linuxkm: add missing RESTORE_VECTOR_REGISTERS() in wolfcrypt/src/poly1305.c:wc_Poly1305Update(). --- wolfcrypt/src/poly1305.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wolfcrypt/src/poly1305.c b/wolfcrypt/src/poly1305.c index 816efb236..c21ddafd2 100644 --- a/wolfcrypt/src/poly1305.c +++ b/wolfcrypt/src/poly1305.c @@ -724,8 +724,10 @@ int wc_Poly1305Update(Poly1305* ctx, const byte* m, word32 bytes) bytes -= (word32)want; m += want; ctx->leftover += want; - if (ctx->leftover < sizeof(ctx->buffer)) + if (ctx->leftover < sizeof(ctx->buffer)) { + RESTORE_VECTOR_REGISTERS(); return 0; + } if (!ctx->started) poly1305_calc_powers_avx2(ctx);