Lines Matching refs:copy_len
151 uint32_t copy_len; in sha512_ctx_mgr_resubmit() local
157 copy_len = len & (SHA512_BLOCK_SIZE-1); in sha512_ctx_mgr_resubmit()
159 if (copy_len) { in sha512_ctx_mgr_resubmit()
160 len -= copy_len; in sha512_ctx_mgr_resubmit()
163 copy_len); in sha512_ctx_mgr_resubmit()
164 ctx->partial_block_buffer_length = copy_len; in sha512_ctx_mgr_resubmit()
306 uint32_t copy_len = SHA512_BLOCK_SIZE - in sha512_ctx_mgr_submit() local
308 if (len < copy_len) in sha512_ctx_mgr_submit()
309 copy_len = len; in sha512_ctx_mgr_submit()
311 if (copy_len) { in sha512_ctx_mgr_submit()
315 buffer, copy_len); in sha512_ctx_mgr_submit()
317 ctx->partial_block_buffer_length += copy_len; in sha512_ctx_mgr_submit()
319 ((const char *)buffer + copy_len); in sha512_ctx_mgr_submit()
320 ctx->incoming_buffer_length = len - copy_len; in sha512_ctx_mgr_submit()