Lines Matching refs:block_nb
119 unsigned int block_nb) in sha256_transf() argument
131 for (i = 0; i < (int)block_nb; i++) { in sha256_transf()
348 unsigned int block_nb = 0; in sha256_update() local
367 block_nb = new_len / SHA256_BLOCK_SIZE; in sha256_update()
372 sha256_transf(ctx, shifted_message, block_nb); in sha256_update()
377 ctx->block[i] = shifted_message[(block_nb << 6) + i]; in sha256_update()
380 ctx->tot_len += (block_nb + 1) << 6; in sha256_update()
385 unsigned int block_nb = 0; in sha256_final() local
393 block_nb = 1; in sha256_final()
395 block_nb++; in sha256_final()
398 pm_len = block_nb << 6; in sha256_final()
406 sha256_transf(ctx, ctx->block, block_nb); in sha256_final()
459 unsigned int block_nb = 0; in sha224_update() local
478 block_nb = new_len / SHA224_BLOCK_SIZE; in sha224_update()
483 sha256_transf((struct sha256_ctx *)ctx, shifted_message, block_nb); in sha224_update()
488 ctx->block[i] = shifted_message[(block_nb << 6) + i]; in sha224_update()
491 ctx->tot_len += (block_nb + 1) << 6; in sha224_update()
496 unsigned int block_nb = 0; in sha224_final() local
504 block_nb = 1; in sha224_final()
506 block_nb++; in sha224_final()
509 pm_len = block_nb << 6; in sha224_final()
517 sha256_transf((struct sha256_ctx *)ctx, ctx->block, block_nb); in sha224_final()