Lines Matching refs:len
130 void sha256_process_bytes(const void *buffer, size_t len, struct sha256_ctx *ctx) { in sha256_process_bytes() argument
139 size_t add = 128 - left_over > len ? len : 128 - left_over; in sha256_process_bytes()
154 len -= add; in sha256_process_bytes()
158 if (len >= 64) { in sha256_process_bytes()
171 while (len > 64) { in sha256_process_bytes()
175 len -= 64; in sha256_process_bytes()
180 sha256_process_block(buffer, len & ~63, ctx); in sha256_process_bytes()
181 buffer = (const char *) buffer + (len & ~63); in sha256_process_bytes()
182 len &= 63; in sha256_process_bytes()
187 if (len > 0) { in sha256_process_bytes()
190 memcpy(&ctx->buffer[left_over], buffer, len); in sha256_process_bytes()
191 left_over += len; in sha256_process_bytes()
204 static void sha256_process_block(const void *buffer, size_t len, struct sha256_ctx *ctx) { in sha256_process_block() argument
206 size_t nwords = len / sizeof(uint32_t); in sha256_process_block()
223 ctx->total64 += len; in sha256_process_block()