Lines Matching refs:outlen

112                         size_t outlen)  in keccak_final()  argument
123 if (outlen > 0) in keccak_final()
131 size_t outlen) in shake_squeeze() argument
140 if (outlen > 0) in shake_squeeze()
141 ret = ctx->meth.squeeze(ctx, out, outlen); in shake_squeeze()
143 *outl = outlen; in shake_squeeze()
161 static int generic_sha3_final(void *vctx, unsigned char *out, size_t outlen) in generic_sha3_final() argument
163 return ossl_sha3_final((KECCAK1600_CTX *)vctx, out, outlen); in generic_sha3_final()
166 static int generic_sha3_squeeze(void *vctx, unsigned char *out, size_t outlen) in generic_sha3_squeeze() argument
168 return ossl_sha3_squeeze((KECCAK1600_CTX *)vctx, out, outlen); in generic_sha3_squeeze()
211 static int s390x_sha3_final(void *vctx, unsigned char *out, size_t outlen) in s390x_sha3_final() argument
225 memcpy(out, ctx->A, outlen); in s390x_sha3_final()
229 static int s390x_shake_final(void *vctx, unsigned char *out, size_t outlen) in s390x_shake_final() argument
242 s390x_klmd(ctx->buf, ctx->bufsz, out, outlen, fc, ctx->A); in s390x_shake_final()
246 static int s390x_shake_squeeze(void *vctx, unsigned char *out, size_t outlen) in s390x_shake_squeeze() argument
263 s390x_klmd(ctx->buf, ctx->bufsz, out, outlen, fc, ctx->A); in s390x_shake_squeeze()
264 ctx->bufsz = outlen % ctx->block_size; in s390x_shake_squeeze()
271 if (outlen < len) in s390x_shake_squeeze()
272 len = outlen; in s390x_shake_squeeze()
275 outlen -= len; in s390x_shake_squeeze()
280 if (outlen == 0) in s390x_shake_squeeze()
282 s390x_klmd(NULL, 0, out, outlen, ctx->pad | S390X_KLMD_PS, ctx->A); in s390x_shake_squeeze()
283 ctx->bufsz = outlen % ctx->block_size; in s390x_shake_squeeze()
288 static int s390x_keccakc_final(void *vctx, unsigned char *out, size_t outlen, in s390x_keccakc_final() argument
294 size_t needed = outlen; in s390x_keccakc_final()
305 if (outlen == 0) in s390x_keccakc_final()
321 static int s390x_keccak_final(void *vctx, unsigned char *out, size_t outlen) in s390x_keccak_final() argument
323 return s390x_keccakc_final(vctx, out, outlen, 0x01); in s390x_keccak_final()
326 static int s390x_kmac_final(void *vctx, unsigned char *out, size_t outlen) in s390x_kmac_final() argument
328 return s390x_keccakc_final(vctx, out, outlen, 0x04); in s390x_kmac_final()
331 static int s390x_keccakc_squeeze(void *vctx, unsigned char *out, size_t outlen, in s390x_keccakc_squeeze() argument
360 if (outlen < len) in s390x_keccakc_squeeze()
361 len = outlen; in s390x_keccakc_squeeze()
364 outlen -= len; in s390x_keccakc_squeeze()
370 if (outlen == 0) in s390x_keccakc_squeeze()
372 s390x_klmd(NULL, 0, out, outlen, ctx->pad | S390X_KLMD_PS, ctx->A); in s390x_keccakc_squeeze()
373 ctx->bufsz = outlen % ctx->block_size; in s390x_keccakc_squeeze()
378 static int s390x_keccak_squeeze(void *vctx, unsigned char *out, size_t outlen) in s390x_keccak_squeeze() argument
380 return s390x_keccakc_squeeze(vctx, out, outlen, 0x01); in s390x_keccak_squeeze()
383 static int s390x_kmac_squeeze(void *vctx, unsigned char *out, size_t outlen) in s390x_kmac_squeeze() argument
385 return s390x_keccakc_squeeze(vctx, out, outlen, 0x04); in s390x_kmac_squeeze()