|
|
|
@ -185,7 +185,7 @@ DECLSPEC void sha384_init (sha384_ctx_t *ctx)
|
|
|
|
|
|
|
|
|
|
DECLSPEC void sha384_update_128 (sha384_ctx_t *ctx, u32 *w0, u32 *w1, u32 *w2, u32 *w3, u32 *w4, u32 *w5, u32 *w6, u32 *w7, const int len)
|
|
|
|
|
{
|
|
|
|
|
const int pos = ctx->len & 127;
|
|
|
|
|
MAYBE_VOLATILE const int pos = ctx->len & 127;
|
|
|
|
|
|
|
|
|
|
ctx->len += len;
|
|
|
|
|
|
|
|
|
@ -1191,7 +1191,7 @@ DECLSPEC void sha384_update_global_utf16le_swap (sha384_ctx_t *ctx, const __glob
|
|
|
|
|
|
|
|
|
|
DECLSPEC void sha384_final (sha384_ctx_t *ctx)
|
|
|
|
|
{
|
|
|
|
|
const int pos = ctx->len & 127;
|
|
|
|
|
MAYBE_VOLATILE const int pos = ctx->len & 127;
|
|
|
|
|
|
|
|
|
|
append_0x80_8x4_S (ctx->w0, ctx->w1, ctx->w2, ctx->w3, ctx->w4, ctx->w5, ctx->w6, ctx->w7, pos ^ 3);
|
|
|
|
|
|
|
|
|
@ -2012,7 +2012,7 @@ DECLSPEC void sha384_init_vector_from_scalar (sha384_ctx_vector_t *ctx, sha384_c
|
|
|
|
|
|
|
|
|
|
DECLSPEC void sha384_update_vector_128 (sha384_ctx_vector_t *ctx, u32x *w0, u32x *w1, u32x *w2, u32x *w3, u32x *w4, u32x *w5, u32x *w6, u32x *w7, const int len)
|
|
|
|
|
{
|
|
|
|
|
const int pos = ctx->len & 127;
|
|
|
|
|
MAYBE_VOLATILE const int pos = ctx->len & 127;
|
|
|
|
|
|
|
|
|
|
ctx->len += len;
|
|
|
|
|
|
|
|
|
@ -2644,7 +2644,7 @@ DECLSPEC void sha384_update_vector_utf16beN (sha384_ctx_vector_t *ctx, const u32
|
|
|
|
|
|
|
|
|
|
DECLSPEC void sha384_final_vector (sha384_ctx_vector_t *ctx)
|
|
|
|
|
{
|
|
|
|
|
const int pos = ctx->len & 127;
|
|
|
|
|
MAYBE_VOLATILE const int pos = ctx->len & 127;
|
|
|
|
|
|
|
|
|
|
append_0x80_8x4 (ctx->w0, ctx->w1, ctx->w2, ctx->w3, ctx->w4, ctx->w5, ctx->w6, ctx->w7, pos ^ 3);
|
|
|
|
|
|
|
|
|
|