Lines Matching refs:block_size
63 unsigned int block_size = in ccp_do_sha_update() local
72 if (!final && (len <= block_size)) { in ccp_do_sha_update()
84 rctx->hash_rem = final ? 0 : len & (block_size - 1); in ccp_do_sha_update()
88 rctx->hash_cnt -= block_size; in ccp_do_sha_update()
89 rctx->hash_rem = block_size; in ccp_do_sha_update()
187 unsigned int block_size = in ccp_sha_init() local
197 memcpy(rctx->buf, ctx->u.sha.ipad, block_size); in ccp_sha_init()
198 rctx->buf_count = block_size; in ccp_sha_init()
278 unsigned int block_size = crypto_shash_blocksize(shash); in ccp_sha_setkey() local
290 if (key_len > block_size) { in ccp_sha_setkey()
306 for (i = 0; i < block_size; i++) { in ccp_sha_setkey()
311 sg_init_one(&ctx->u.sha.opad_sg, ctx->u.sha.opad, block_size); in ccp_sha_setkey()
312 ctx->u.sha.opad_count = block_size; in ccp_sha_setkey()
370 u32 block_size; member
380 .block_size = SHA1_BLOCK_SIZE,
388 .block_size = SHA224_BLOCK_SIZE,
396 .block_size = SHA256_BLOCK_SIZE,
404 .block_size = SHA384_BLOCK_SIZE,
412 .block_size = SHA512_BLOCK_SIZE,
498 base->cra_blocksize = def->block_size; in ccp_register_sha_alg()