Lines Matching refs:bsz
30 size_t bsz = SHA3_BLOCKSIZE(bitlen); in ossl_sha3_init() local
32 if (bsz <= sizeof(ctx->buf)) { in ossl_sha3_init()
34 ctx->block_size = bsz; in ossl_sha3_init()
55 size_t bsz = ctx->block_size; in ossl_sha3_update() local
66 rem = bsz - num; in ossl_sha3_update()
80 (void)SHA3_absorb(ctx->A, ctx->buf, bsz, bsz); in ossl_sha3_update()
85 if (len >= bsz) in ossl_sha3_update()
86 rem = SHA3_absorb(ctx->A, inp, len, bsz); in ossl_sha3_update()
105 size_t bsz = ctx->block_size; in ossl_sha3_final() local
119 memset(ctx->buf + num, 0, bsz - num); in ossl_sha3_final()
121 ctx->buf[bsz - 1] |= 0x80; in ossl_sha3_final()
123 (void)SHA3_absorb(ctx->A, ctx->buf, bsz, bsz); in ossl_sha3_final()
126 SHA3_squeeze(ctx->A, out, outlen, bsz, 0); in ossl_sha3_final()
142 size_t bsz = ctx->block_size; in ossl_sha3_squeeze() local
164 memset(ctx->buf + num, 0, bsz - num); in ossl_sha3_squeeze()
166 ctx->buf[bsz - 1] |= 0x80; in ossl_sha3_squeeze()
167 (void)SHA3_absorb(ctx->A, ctx->buf, bsz, bsz); in ossl_sha3_squeeze()
182 memcpy(out, ctx->buf + bsz - ctx->bufsz, len); in ossl_sha3_squeeze()
191 if (outlen >= bsz) { in ossl_sha3_squeeze()
192 len = bsz * (outlen / bsz); in ossl_sha3_squeeze()
193 SHA3_squeeze(ctx->A, out, len, bsz, next); in ossl_sha3_squeeze()
200 SHA3_squeeze(ctx->A, ctx->buf, bsz, bsz, next); in ossl_sha3_squeeze()
203 ctx->bufsz = bsz - outlen; in ossl_sha3_squeeze()