Lines Matching refs:outlen
103 int ossl_sha3_final(KECCAK1600_CTX *ctx, unsigned char *out, size_t outlen) in ossl_sha3_final() argument
108 if (outlen == 0) in ossl_sha3_final()
126 SHA3_squeeze(ctx->A, out, outlen, bsz, 0); in ossl_sha3_final()
140 int ossl_sha3_squeeze(KECCAK1600_CTX *ctx, unsigned char *out, size_t outlen) in ossl_sha3_squeeze() argument
147 if (outlen == 0) in ossl_sha3_squeeze()
178 if (outlen > ctx->bufsz) in ossl_sha3_squeeze()
181 len = outlen; in ossl_sha3_squeeze()
184 outlen -= len; in ossl_sha3_squeeze()
187 if (outlen == 0) in ossl_sha3_squeeze()
191 if (outlen >= bsz) { in ossl_sha3_squeeze()
192 len = bsz * (outlen / bsz); in ossl_sha3_squeeze()
196 outlen -= len; in ossl_sha3_squeeze()
198 if (outlen > 0) { in ossl_sha3_squeeze()
201 memcpy(out, ctx->buf, outlen); in ossl_sha3_squeeze()
203 ctx->bufsz = bsz - outlen; in ossl_sha3_squeeze()