|
|
|
@ -1281,7 +1281,9 @@ DECLSPEC void sha384_hmac_init_128 (sha384_hmac_ctx_t *ctx, const u32 *w0, const
|
|
|
|
|
|
|
|
|
|
sha384_init (&ctx->ipad);
|
|
|
|
|
|
|
|
|
|
sha384_update_128 (&ctx->ipad, t0, t1, t2, t3, t4, t5, t6, t7, 128);
|
|
|
|
|
sha384_transform (t0, t1, t2, t3, t4, t5, t6, t7, ctx->ipad.h);
|
|
|
|
|
|
|
|
|
|
ctx->ipad.len = 128;
|
|
|
|
|
|
|
|
|
|
// opad
|
|
|
|
|
|
|
|
|
@ -1320,7 +1322,9 @@ DECLSPEC void sha384_hmac_init_128 (sha384_hmac_ctx_t *ctx, const u32 *w0, const
|
|
|
|
|
|
|
|
|
|
sha384_init (&ctx->opad);
|
|
|
|
|
|
|
|
|
|
sha384_update_128 (&ctx->opad, t0, t1, t2, t3, t4, t5, t6, t7, 128);
|
|
|
|
|
sha384_transform (t0, t1, t2, t3, t4, t5, t6, t7, ctx->opad.h);
|
|
|
|
|
|
|
|
|
|
ctx->opad.len = 128;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
DECLSPEC void sha384_hmac_init (sha384_hmac_ctx_t *ctx, const u32 *w, const int len)
|
|
|
|
@ -2701,7 +2705,9 @@ DECLSPEC void sha384_hmac_init_vector_128 (sha384_hmac_ctx_vector_t *ctx, const
|
|
|
|
|
|
|
|
|
|
sha384_init_vector (&ctx->ipad);
|
|
|
|
|
|
|
|
|
|
sha384_update_vector_128 (&ctx->ipad, t0, t1, t2, t3, t4, t5, t6, t7, 128);
|
|
|
|
|
sha384_transform_vector (t0, t1, t2, t3, t4, t5, t6, t7, ctx->ipad.h);
|
|
|
|
|
|
|
|
|
|
ctx->ipad.len = 128;
|
|
|
|
|
|
|
|
|
|
// opad
|
|
|
|
|
|
|
|
|
@ -2740,7 +2746,9 @@ DECLSPEC void sha384_hmac_init_vector_128 (sha384_hmac_ctx_vector_t *ctx, const
|
|
|
|
|
|
|
|
|
|
sha384_init_vector (&ctx->opad);
|
|
|
|
|
|
|
|
|
|
sha384_update_vector_128 (&ctx->opad, t0, t1, t2, t3, t4, t5, t6, t7, 128);
|
|
|
|
|
sha384_transform_vector (t0, t1, t2, t3, t4, t5, t6, t7, ctx->opad.h);
|
|
|
|
|
|
|
|
|
|
ctx->opad.len = 128;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
DECLSPEC void sha384_hmac_init_vector (sha384_hmac_ctx_vector_t *ctx, const u32x *w, const int len)
|
|
|
|
|