Home
last modified time | relevance | path

Searched refs:partial_block_buffer_length (Results 1 – 6 of 6) sorted by relevance

/Linux-v4.19/arch/x86/crypto/sha1-mb/
Dsha1_mb.c145 if (ctx->partial_block_buffer_length == 0 && in sha1_ctx_mgr_resubmit()
163 ctx->partial_block_buffer_length = copy_len; in sha1_ctx_mgr_resubmit()
285 if (ctx->partial_block_buffer_length || len < SHA1_BLOCK_SIZE) { in sha1_ctx_mgr_submit()
291 ctx->partial_block_buffer_length; in sha1_ctx_mgr_submit()
297 memcpy(&ctx->partial_block_buffer[ctx->partial_block_buffer_length], in sha1_ctx_mgr_submit()
300 ctx->partial_block_buffer_length += copy_len; in sha1_ctx_mgr_submit()
310 assert(ctx->partial_block_buffer_length <= SHA1_BLOCK_SIZE); in sha1_ctx_mgr_submit()
316 if (ctx->partial_block_buffer_length >= SHA1_BLOCK_SIZE) { in sha1_ctx_mgr_submit()
317 ctx->partial_block_buffer_length = 0; in sha1_ctx_mgr_submit()
367 sctx->partial_block_buffer_length = 0; in sha1_mb_init()
Dsha1_mb_ctx.h130 uint32_t partial_block_buffer_length; member
/Linux-v4.19/arch/x86/crypto/sha256-mb/
Dsha256_mb.c146 if (ctx->partial_block_buffer_length == 0 && in sha256_ctx_mgr_resubmit()
164 ctx->partial_block_buffer_length = copy_len; in sha256_ctx_mgr_resubmit()
282 if (ctx->partial_block_buffer_length || len < SHA256_BLOCK_SIZE) { in sha256_ctx_mgr_submit()
288 ctx->partial_block_buffer_length; in sha256_ctx_mgr_submit()
295 &ctx->partial_block_buffer[ctx->partial_block_buffer_length], in sha256_ctx_mgr_submit()
298 ctx->partial_block_buffer_length += copy_len; in sha256_ctx_mgr_submit()
305 assert(ctx->partial_block_buffer_length <= SHA256_BLOCK_SIZE); in sha256_ctx_mgr_submit()
311 if (ctx->partial_block_buffer_length >= SHA256_BLOCK_SIZE) { in sha256_ctx_mgr_submit()
312 ctx->partial_block_buffer_length = 0; in sha256_ctx_mgr_submit()
366 sctx->partial_block_buffer_length = 0; in sha256_mb_init()
Dsha256_mb_ctx.h130 uint32_t partial_block_buffer_length; member
/Linux-v4.19/arch/x86/crypto/sha512-mb/
Dsha512_mb.c146 if (ctx->partial_block_buffer_length == 0 && in sha512_ctx_mgr_resubmit()
164 ctx->partial_block_buffer_length = copy_len; in sha512_ctx_mgr_resubmit()
302 if (ctx->partial_block_buffer_length || len < SHA512_BLOCK_SIZE) { in sha512_ctx_mgr_submit()
307 ctx->partial_block_buffer_length; in sha512_ctx_mgr_submit()
314 (&ctx->partial_block_buffer[ctx->partial_block_buffer_length], in sha512_ctx_mgr_submit()
317 ctx->partial_block_buffer_length += copy_len; in sha512_ctx_mgr_submit()
326 assert(ctx->partial_block_buffer_length <= SHA512_BLOCK_SIZE); in sha512_ctx_mgr_submit()
331 if (ctx->partial_block_buffer_length >= SHA512_BLOCK_SIZE) { in sha512_ctx_mgr_submit()
332 ctx->partial_block_buffer_length = 0; in sha512_ctx_mgr_submit()
395 sctx->partial_block_buffer_length = 0; in sha512_mb_init()
Dsha512_mb_ctx.h124 uint32_t partial_block_buffer_length; member