Lines Matching refs:copy_len
150 uint32_t copy_len; in sha1_ctx_mgr_resubmit() local
156 copy_len = len & (SHA1_BLOCK_SIZE-1); in sha1_ctx_mgr_resubmit()
158 if (copy_len) { in sha1_ctx_mgr_resubmit()
159 len -= copy_len; in sha1_ctx_mgr_resubmit()
162 copy_len); in sha1_ctx_mgr_resubmit()
163 ctx->partial_block_buffer_length = copy_len; in sha1_ctx_mgr_resubmit()
290 uint32_t copy_len = SHA1_BLOCK_SIZE - in sha1_ctx_mgr_submit() local
292 if (len < copy_len) in sha1_ctx_mgr_submit()
293 copy_len = len; in sha1_ctx_mgr_submit()
295 if (copy_len) { in sha1_ctx_mgr_submit()
298 buffer, copy_len); in sha1_ctx_mgr_submit()
300 ctx->partial_block_buffer_length += copy_len; in sha1_ctx_mgr_submit()
302 ((const char *)buffer + copy_len); in sha1_ctx_mgr_submit()
303 ctx->incoming_buffer_length = len - copy_len; in sha1_ctx_mgr_submit()