Lines Matching refs:out_len

122     size_t out_len;  member
141 static int encode_string(unsigned char *out, size_t out_max_len, size_t *out_len,
143 static int right_encode(unsigned char *out, size_t out_max_len, size_t *out_len,
145 static int bytepad(unsigned char *out, size_t *out_len,
150 size_t *out_len,
207 kctx->out_len = (size_t)md_size; in kmac_fetch_new()
251 dst->out_len = src->out_len; in kmac_dup()
312 size_t out_len, block_len; in kmac_init() local
346 if (!bytepad(NULL, &out_len, kmac_string, sizeof(kmac_string), in kmac_init()
351 out = OPENSSL_malloc(out_len); in kmac_init()
356 && EVP_DigestUpdate(ctx, out, out_len) in kmac_init()
383 lbits = (kctx->xof_mode ? 0 : (kctx->out_len * 8)); in kmac_final()
387 && EVP_DigestFinalXOF(ctx, out, kctx->out_len); in kmac_final()
388 *outl = kctx->out_len; in kmac_final()
411 && !OSSL_PARAM_set_size_t(p, kctx->out_len)) in kmac_get_ctx_params()
489 kctx->out_len = sz; in kmac_set_ctx_params()
531 static int right_encode(unsigned char *out, size_t out_max_len, size_t *out_len, in right_encode() argument
551 *out_len = len + 1; in right_encode()
562 static int encode_string(unsigned char *out, size_t out_max_len, size_t *out_len, in encode_string() argument
566 *out_len = 0; in encode_string()
585 *out_len = sz; in encode_string()
598 static int bytepad(unsigned char *out, size_t *out_len, in bytepad() argument
607 if (out_len == NULL) { in bytepad()
612 *out_len = (sz + w - 1) / w * w; in bytepad()
636 if (out_len != NULL) in bytepad()
637 *out_len = sz; in bytepad()
643 size_t *out_len, in kmac_bytepad_encode_key() argument
652 if (!bytepad(NULL, out_len, tmp, tmp_len, NULL, 0, w)) in kmac_bytepad_encode_key()
654 if (!ossl_assert(*out_len <= out_max_len)) in kmac_bytepad_encode_key()