Home
last modified time | relevance | path

Searched refs:dhm (Results 1 – 5 of 5) sorted by relevance

/optee_os/lib/libmbedtls/core/
H A Ddh.c51 mbedtls_dhm_context dhm; in crypto_acipher_gen_dh_key() local
56 memset(&dhm, 0, sizeof(dhm)); in crypto_acipher_gen_dh_key()
57 mbedtls_dhm_init(&dhm); in crypto_acipher_gen_dh_key()
59 dhm.G = *(mbedtls_mpi *)key->g; in crypto_acipher_gen_dh_key()
60 dhm.P = *(mbedtls_mpi *)key->p; in crypto_acipher_gen_dh_key()
62 len = mbedtls_dhm_get_len(&dhm); in crypto_acipher_gen_dh_key()
78 lmd_res = mbedtls_dhm_make_public(&dhm, (int)xbytes, buf, in crypto_acipher_gen_dh_key()
85 crypto_bignum_copy(key->x, (void *)&dhm.X); in crypto_acipher_gen_dh_key()
91 mbedtls_mpi_init(&dhm.G); in crypto_acipher_gen_dh_key()
92 mbedtls_mpi_init(&dhm.P); in crypto_acipher_gen_dh_key()
[all …]
/optee_os/lib/libmbedtls/mbedtls/library/
H A Ddhm.c482 int mbedtls_dhm_parse_dhm(mbedtls_dhm_context *dhm, const unsigned char *dhmin, in mbedtls_dhm_parse_dhm() argument
535 if ((ret = mbedtls_asn1_get_mpi(&p, end, &dhm->P)) != 0 || in mbedtls_dhm_parse_dhm()
536 (ret = mbedtls_asn1_get_mpi(&p, end, &dhm->G)) != 0) { in mbedtls_dhm_parse_dhm()
566 mbedtls_dhm_free(dhm); in mbedtls_dhm_parse_dhm()
627 int mbedtls_dhm_parse_dhmfile(mbedtls_dhm_context *dhm, const char *path) in mbedtls_dhm_parse_dhmfile() argument
637 ret = mbedtls_dhm_parse_dhm(dhm, buf, n); in mbedtls_dhm_parse_dhmfile()
681 mbedtls_dhm_context dhm; in mbedtls_dhm_self_test() local
683 mbedtls_dhm_init(&dhm); in mbedtls_dhm_self_test()
689 if ((ret = mbedtls_dhm_parse_dhm(&dhm, in mbedtls_dhm_self_test()
705 mbedtls_dhm_free(&dhm); in mbedtls_dhm_self_test()
/optee_os/lib/libmbedtls/mbedtls/include/mbedtls/
H A Ddhm.h348 int mbedtls_dhm_parse_dhm(mbedtls_dhm_context *dhm, const unsigned char *dhmin,
364 int mbedtls_dhm_parse_dhmfile(mbedtls_dhm_context *dhm, const char *path);
/optee_os/lib/libmbedtls/
H A Dsub.mk28 SRCS_CRYPTO += dhm.c
86 SRCS_CRYPTO += dhm.c
/optee_os/lib/libmbedtls/mbedtls/
H A DChangeLog262 - Asymmetric cryptography: bignum.h, dhm.h, ecdh.h, ecdsa.h, ecjpake.h,
5292 * dhm_parse_dhm() (hence dhm_parse_dhmfile()) did not set dhm->len.