Home
last modified time | relevance | path

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

/arch/x86/crypto/sha256-mb/
Dsha256_mb.c154 if (ctx->partial_block_buffer_length == 0 && in sha256_ctx_mgr_resubmit()
172 ctx->partial_block_buffer_length = copy_len; in sha256_ctx_mgr_resubmit()
276 ctx->partial_block_buffer_length = 0; in sha256_ctx_mgr_submit()
303 if (ctx->partial_block_buffer_length || len < SHA256_BLOCK_SIZE) { in sha256_ctx_mgr_submit()
309 ctx->partial_block_buffer_length; in sha256_ctx_mgr_submit()
316 &ctx->partial_block_buffer[ctx->partial_block_buffer_length], in sha256_ctx_mgr_submit()
319 ctx->partial_block_buffer_length += copy_len; in sha256_ctx_mgr_submit()
326 assert(ctx->partial_block_buffer_length <= SHA256_BLOCK_SIZE); in sha256_ctx_mgr_submit()
332 if (ctx->partial_block_buffer_length >= SHA256_BLOCK_SIZE) { in sha256_ctx_mgr_submit()
333 ctx->partial_block_buffer_length = 0; in sha256_ctx_mgr_submit()
[all …]
Dsha256_mb_ctx.h132 uint32_t partial_block_buffer_length; member
/arch/x86/crypto/sha1-mb/
Dsha1_mb.c152 if (ctx->partial_block_buffer_length == 0 && in sha1_ctx_mgr_resubmit()
170 ctx->partial_block_buffer_length = copy_len; in sha1_ctx_mgr_resubmit()
277 ctx->partial_block_buffer_length = 0; in sha1_ctx_mgr_submit()
307 if (ctx->partial_block_buffer_length || len < SHA1_BLOCK_SIZE) { in sha1_ctx_mgr_submit()
313 ctx->partial_block_buffer_length; in sha1_ctx_mgr_submit()
319 memcpy(&ctx->partial_block_buffer[ctx->partial_block_buffer_length], in sha1_ctx_mgr_submit()
322 ctx->partial_block_buffer_length += copy_len; in sha1_ctx_mgr_submit()
332 assert(ctx->partial_block_buffer_length <= SHA1_BLOCK_SIZE); in sha1_ctx_mgr_submit()
338 if (ctx->partial_block_buffer_length >= SHA1_BLOCK_SIZE) { in sha1_ctx_mgr_submit()
339 ctx->partial_block_buffer_length = 0; in sha1_ctx_mgr_submit()
[all …]
Dsha1_mb_ctx.h132 uint32_t partial_block_buffer_length; member
/arch/x86/crypto/sha512-mb/
Dsha512_mb.c155 if (ctx->partial_block_buffer_length == 0 && in sha512_ctx_mgr_resubmit()
173 ctx->partial_block_buffer_length = copy_len; in sha512_ctx_mgr_resubmit()
296 ctx->partial_block_buffer_length = 0; in sha512_ctx_mgr_submit()
326 if (ctx->partial_block_buffer_length || len < SHA512_BLOCK_SIZE) { in sha512_ctx_mgr_submit()
331 ctx->partial_block_buffer_length; in sha512_ctx_mgr_submit()
338 (&ctx->partial_block_buffer[ctx->partial_block_buffer_length], in sha512_ctx_mgr_submit()
341 ctx->partial_block_buffer_length += copy_len; in sha512_ctx_mgr_submit()
350 assert(ctx->partial_block_buffer_length <= SHA512_BLOCK_SIZE); in sha512_ctx_mgr_submit()
355 if (ctx->partial_block_buffer_length >= SHA512_BLOCK_SIZE) { in sha512_ctx_mgr_submit()
356 ctx->partial_block_buffer_length = 0; in sha512_ctx_mgr_submit()
[all …]
Dsha512_mb_ctx.h126 uint32_t partial_block_buffer_length; member