Lines Matching defs:length
467 static void sha256_update(sha256_context *ctx, const uint8_t *input, uint32_t length)
471 if (!length) {
478 ctx->total[0] += length;
481 if (ctx->total[0] < length) {
485 if (left && length >= fill) {
488 length -= fill;
493 while (length >= 0x40) {
495 length -= 0x40;
499 if (length) {
500 memcpy((void *)(ctx->buffer + left), (void *)input, length);