Lines Matching refs:copy_len
152 uint32_t copy_len; in sha1_ctx_mgr_resubmit() local
158 copy_len = len & (SHA1_BLOCK_SIZE-1); in sha1_ctx_mgr_resubmit()
160 if (copy_len) { in sha1_ctx_mgr_resubmit()
161 len -= copy_len; in sha1_ctx_mgr_resubmit()
164 copy_len); in sha1_ctx_mgr_resubmit()
165 ctx->partial_block_buffer_length = copy_len; in sha1_ctx_mgr_resubmit()
290 uint32_t copy_len = SHA1_BLOCK_SIZE - ctx->partial_block_buffer_length; in sha1_ctx_mgr_submit() local
291 if (len < copy_len) in sha1_ctx_mgr_submit()
292 copy_len = len; in sha1_ctx_mgr_submit()
294 if (copy_len) { in sha1_ctx_mgr_submit()
297 buffer, copy_len); in sha1_ctx_mgr_submit()
299 ctx->partial_block_buffer_length += copy_len; in sha1_ctx_mgr_submit()
300 ctx->incoming_buffer = (const void *)((const char *)buffer + copy_len); in sha1_ctx_mgr_submit()
301 ctx->incoming_buffer_length = len - copy_len; in sha1_ctx_mgr_submit()