linuxkm: add missing RESTORE_VECTOR_REGISTERS() in wolfcrypt/src/poly1305.c:wc_Poly1305Update().

This commit is contained in:
Daniel Pouzzner
2021-10-18 23:46:54 -05:00
parent 85a8c06062
commit 0eb76bcfd8

View File

@ -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);