Lines Matching refs:bsize
23 unsigned int bsize = crypto_tfm_alg_blocksize(tfm); in s390_sha_update() local
28 index = ctx->count & (bsize - 1); in s390_sha_update()
31 if ((index + len) < bsize) in s390_sha_update()
36 memcpy(ctx->buf + index, data, bsize - index); in s390_sha_update()
37 ret = crypt_s390_kimd(ctx->func, ctx->state, ctx->buf, bsize); in s390_sha_update()
38 BUG_ON(ret != bsize); in s390_sha_update()
39 data += bsize - index; in s390_sha_update()
40 len -= bsize - index; in s390_sha_update()
44 if (len >= bsize) { in s390_sha_update()
46 len & ~(bsize - 1)); in s390_sha_update()
47 BUG_ON(ret != (len & ~(bsize - 1))); in s390_sha_update()
60 unsigned int bsize = crypto_tfm_alg_blocksize(tfm); in s390_sha_final() local
66 plen = (bsize > SHA256_BLOCK_SIZE) ? 16 : 8; in s390_sha_final()
69 index = ctx->count & (bsize - 1); in s390_sha_final()
70 end = (index < bsize - plen) ? bsize : (2 * bsize); in s390_sha_final()