Lines Matching refs:copy_len
155 uint32_t copy_len; in sha1_ctx_mgr_resubmit() local
161 copy_len = len & (SHA1_BLOCK_SIZE-1); in sha1_ctx_mgr_resubmit()
163 if (copy_len) { in sha1_ctx_mgr_resubmit()
164 len -= copy_len; in sha1_ctx_mgr_resubmit()
167 copy_len); in sha1_ctx_mgr_resubmit()
168 ctx->partial_block_buffer_length = copy_len; in sha1_ctx_mgr_resubmit()
293 uint32_t copy_len = SHA1_BLOCK_SIZE - ctx->partial_block_buffer_length; in sha1_ctx_mgr_submit() local
294 if (len < copy_len) in sha1_ctx_mgr_submit()
295 copy_len = len; in sha1_ctx_mgr_submit()
297 if (copy_len) { in sha1_ctx_mgr_submit()
300 buffer, copy_len); in sha1_ctx_mgr_submit()
302 ctx->partial_block_buffer_length += copy_len; in sha1_ctx_mgr_submit()
303 ctx->incoming_buffer = (const void *)((const char *)buffer + copy_len); in sha1_ctx_mgr_submit()
304 ctx->incoming_buffer_length = len - copy_len; in sha1_ctx_mgr_submit()