Lines Matching refs:olen
274 size_t *olen, int point_format, in ecdh_make_params_internal() argument
326 *olen = grp_len + pt_len; in ecdh_make_params_internal()
337 int mbedtls_ecdh_make_params(mbedtls_ecdh_context *ctx, size_t *olen, in mbedtls_ecdh_make_params() argument
350 return ecdh_make_params_internal(ctx, olen, ctx->point_format, buf, blen, in mbedtls_ecdh_make_params()
356 return mbedtls_everest_make_params(&ctx->ctx.everest_ecdh, olen, in mbedtls_ecdh_make_params()
360 return ecdh_make_params_internal(&ctx->ctx.mbed_ecdh, olen, in mbedtls_ecdh_make_params()
493 size_t *olen, int point_format, in ecdh_make_public_internal() argument
530 return mbedtls_ecp_tls_write_point(&ctx->grp, &ctx->Q, point_format, olen, in ecdh_make_public_internal()
537 int mbedtls_ecdh_make_public(mbedtls_ecdh_context *ctx, size_t *olen, in mbedtls_ecdh_make_public() argument
548 return ecdh_make_public_internal(ctx, olen, ctx->point_format, buf, blen, in mbedtls_ecdh_make_public()
554 return mbedtls_everest_make_public(&ctx->ctx.everest_ecdh, olen, in mbedtls_ecdh_make_public()
558 return ecdh_make_public_internal(&ctx->ctx.mbed_ecdh, olen, in mbedtls_ecdh_make_public()
611 size_t *olen, unsigned char *buf, in ecdh_calc_secret_internal() argument
653 *olen = ctx->grp.pbits / 8 + ((ctx->grp.pbits % 8) != 0); in ecdh_calc_secret_internal()
656 return mbedtls_mpi_write_binary_le(&ctx->z, buf, *olen); in ecdh_calc_secret_internal()
659 return mbedtls_mpi_write_binary(&ctx->z, buf, *olen); in ecdh_calc_secret_internal()
665 int mbedtls_ecdh_calc_secret(mbedtls_ecdh_context *ctx, size_t *olen, in mbedtls_ecdh_calc_secret() argument
676 return ecdh_calc_secret_internal(ctx, olen, buf, blen, f_rng, p_rng, in mbedtls_ecdh_calc_secret()
682 return mbedtls_everest_calc_secret(&ctx->ctx.everest_ecdh, olen, in mbedtls_ecdh_calc_secret()
686 return ecdh_calc_secret_internal(&ctx->ctx.mbed_ecdh, olen, buf, in mbedtls_ecdh_calc_secret()