Lines Matching refs:block_size
65 unsigned int block_size = in ccp_do_sha_update() local
74 if (!final && (len <= block_size)) { in ccp_do_sha_update()
86 rctx->hash_rem = final ? 0 : len & (block_size - 1); in ccp_do_sha_update()
90 rctx->hash_cnt -= block_size; in ccp_do_sha_update()
91 rctx->hash_rem = block_size; in ccp_do_sha_update()
189 unsigned int block_size = in ccp_sha_init() local
199 memcpy(rctx->buf, ctx->u.sha.ipad, block_size); in ccp_sha_init()
200 rctx->buf_count = block_size; in ccp_sha_init()
277 unsigned int block_size = crypto_shash_blocksize(shash); in ccp_sha_setkey() local
289 if (key_len > block_size) { in ccp_sha_setkey()
301 for (i = 0; i < block_size; i++) { in ccp_sha_setkey()
306 sg_init_one(&ctx->u.sha.opad_sg, ctx->u.sha.opad, block_size); in ccp_sha_setkey()
307 ctx->u.sha.opad_count = block_size; in ccp_sha_setkey()
365 u32 block_size; member
375 .block_size = SHA1_BLOCK_SIZE,
383 .block_size = SHA224_BLOCK_SIZE,
391 .block_size = SHA256_BLOCK_SIZE,
399 .block_size = SHA384_BLOCK_SIZE,
407 .block_size = SHA512_BLOCK_SIZE,
494 base->cra_blocksize = def->block_size; in ccp_register_sha_alg()