Lines Matching refs:bsize
24 unsigned int bsize = crypto_shash_blocksize(desc->tfm); in s390_sha_update() local
29 index = ctx->count & (bsize - 1); in s390_sha_update()
32 if ((index + len) < bsize) in s390_sha_update()
37 memcpy(ctx->buf + index, data, bsize - index); in s390_sha_update()
38 ret = crypt_s390_kimd(ctx->func, ctx->state, ctx->buf, bsize); in s390_sha_update()
39 if (ret != bsize) in s390_sha_update()
41 data += bsize - index; in s390_sha_update()
42 len -= bsize - index; in s390_sha_update()
47 if (len >= bsize) { in s390_sha_update()
49 len & ~(bsize - 1)); in s390_sha_update()
50 if (ret != (len & ~(bsize - 1))) in s390_sha_update()
66 unsigned int bsize = crypto_shash_blocksize(desc->tfm); in s390_sha_final() local
72 plen = (bsize > SHA256_BLOCK_SIZE) ? 16 : 8; in s390_sha_final()
75 index = ctx->count & (bsize - 1); in s390_sha_final()
76 end = (index < bsize - plen) ? bsize : (2 * bsize); in s390_sha_final()