Lines Matching refs:copy_len
151 uint32_t copy_len; in sha256_ctx_mgr_resubmit() local
157 copy_len = len & (SHA256_BLOCK_SIZE-1); in sha256_ctx_mgr_resubmit()
159 if (copy_len) { in sha256_ctx_mgr_resubmit()
160 len -= copy_len; in sha256_ctx_mgr_resubmit()
163 copy_len); in sha256_ctx_mgr_resubmit()
164 ctx->partial_block_buffer_length = copy_len; in sha256_ctx_mgr_resubmit()
287 uint32_t copy_len = SHA256_BLOCK_SIZE - in sha256_ctx_mgr_submit() local
289 if (len < copy_len) in sha256_ctx_mgr_submit()
290 copy_len = len; in sha256_ctx_mgr_submit()
292 if (copy_len) { in sha256_ctx_mgr_submit()
296 buffer, copy_len); in sha256_ctx_mgr_submit()
298 ctx->partial_block_buffer_length += copy_len; in sha256_ctx_mgr_submit()
300 ((const char *)buffer + copy_len); in sha256_ctx_mgr_submit()
301 ctx->incoming_buffer_length = len - copy_len; in sha256_ctx_mgr_submit()