Home
last modified time | relevance | path

Searched refs:ecdh (Results 1 – 7 of 7) sorted by relevance

/optee_os/lib/libmbedtls/core/
H A Decc.c319 mbedtls_ecdh_context ecdh; in ecc_shared_secret() local
323 memset(&ecdh, 0, sizeof(ecdh)); in ecc_shared_secret()
325 mbedtls_ecdh_init(&ecdh); in ecc_shared_secret()
327 lmd_res = mbedtls_ecdh_setup(&ecdh, gid); in ecc_shared_secret()
333 assert(ecdh.var == MBEDTLS_ECDH_VARIANT_MBEDTLS_2_0); in ecc_shared_secret()
334 ecdh.ctx.mbed_ecdh.d = *(mbedtls_mpi *)private_key->d; in ecc_shared_secret()
335 ecdh.ctx.mbed_ecdh.Qp.X = *(mbedtls_mpi *)public_key->x; in ecc_shared_secret()
336 ecdh.ctx.mbed_ecdh.Qp.Y = *(mbedtls_mpi *)public_key->y; in ecc_shared_secret()
337 mbedtls_mpi_read_binary(&ecdh.ctx.mbed_ecdh.Qp.Z, one, sizeof(one)); in ecc_shared_secret()
339 lmd_res = mbedtls_ecdh_calc_secret(&ecdh, &out_len, secret, in ecc_shared_secret()
[all …]
/optee_os/lib/libmbedtls/mbedtls/include/mbedtls/
H A Ddebug.h55 #define MBEDTLS_SSL_DEBUG_ECDH(level, ecdh, attr) \ argument
56 mbedtls_debug_printf_ecdh(ssl, level, __FILE__, __LINE__, ecdh, attr)
67 #define MBEDTLS_SSL_DEBUG_ECDH(level, ecdh, attr) do { } while (0) argument
/optee_os/lib/libmbedtls/mbedtls/library/
H A Ddebug.c420 const mbedtls_ecdh_context *ecdh, in mbedtls_debug_printf_ecdh_internal() argument
424 const mbedtls_ecdh_context *ctx = ecdh; in mbedtls_debug_printf_ecdh_internal()
426 const mbedtls_ecdh_context_mbed *ctx = &ecdh->ctx.mbed_ecdh; in mbedtls_debug_printf_ecdh_internal()
449 const mbedtls_ecdh_context *ecdh, in mbedtls_debug_printf_ecdh() argument
453 mbedtls_debug_printf_ecdh_internal(ssl, level, file, line, ecdh, attr); in mbedtls_debug_printf_ecdh()
455 switch (ecdh->var) { in mbedtls_debug_printf_ecdh()
457 mbedtls_debug_printf_ecdh_internal(ssl, level, file, line, ecdh, in mbedtls_debug_printf_ecdh()
H A Dpsa_crypto_ecp.c542 mbedtls_ecdh_context ecdh; in mbedtls_psa_key_agreement_ecdh() local
545 mbedtls_ecdh_init(&ecdh); in mbedtls_psa_key_agreement_ecdh()
558 mbedtls_ecdh_get_params(&ecdh, their_key, MBEDTLS_ECDH_THEIRS)); in mbedtls_psa_key_agreement_ecdh()
563 mbedtls_ecdh_get_params(&ecdh, ecp, MBEDTLS_ECDH_OURS)); in mbedtls_psa_key_agreement_ecdh()
569 mbedtls_ecdh_calc_secret(&ecdh, in mbedtls_psa_key_agreement_ecdh()
584 mbedtls_ecdh_free(&ecdh); in mbedtls_psa_key_agreement_ecdh()
H A Ddebug_internal.h167 const mbedtls_ecdh_context *ecdh,
/optee_os/lib/libmbedtls/
H A Dsub.mk29 SRCS_CRYPTO += ecdh.c
87 SRCS_CRYPTO += ecdh.c
/optee_os/lib/libmbedtls/mbedtls/
H A DChangeLog262 - Asymmetric cryptography: bignum.h, dhm.h, ecdh.h, ecdsa.h, ecjpake.h,