Searched refs:dhm (Results 1 – 5 of 5) sorted by relevance
/optee_os-3.20.0/lib/libmbedtls/core/ |
A D | dh.c | 51 mbedtls_dhm_context dhm; in crypto_acipher_gen_dh_key() local 55 memset(&dhm, 0, sizeof(dhm)); in crypto_acipher_gen_dh_key() 56 mbedtls_dhm_init(&dhm); in crypto_acipher_gen_dh_key() 68 xbytes = dhm.len; in crypto_acipher_gen_dh_key() 72 buf = malloc(dhm.len); in crypto_acipher_gen_dh_key() 92 mbedtls_dhm_free(&dhm); in crypto_acipher_gen_dh_key() 106 memset(&dhm, 0, sizeof(dhm)); in crypto_acipher_dh_shared_secret() 107 mbedtls_dhm_init(&dhm); in crypto_acipher_dh_shared_secret() 117 buf = malloc(dhm.len); in crypto_acipher_dh_shared_secret() 123 lmd_res = mbedtls_dhm_calc_secret(&dhm, buf, dhm.len, in crypto_acipher_dh_shared_secret() [all …]
|
/optee_os-3.20.0/lib/libmbedtls/mbedtls/library/ |
A D | dhm.c | 490 DHM_VALIDATE_RET( dhm != NULL ); in mbedtls_dhm_parse_dhm() 537 if( ( ret = mbedtls_asn1_get_mpi( &p, end, &dhm->P ) ) != 0 || in mbedtls_dhm_parse_dhm() 538 ( ret = mbedtls_asn1_get_mpi( &p, end, &dhm->G ) ) != 0 ) in mbedtls_dhm_parse_dhm() 567 dhm->len = mbedtls_mpi_size( &dhm->P ); in mbedtls_dhm_parse_dhm() 574 mbedtls_dhm_free( dhm ); in mbedtls_dhm_parse_dhm() 640 DHM_VALIDATE_RET( dhm != NULL ); in mbedtls_dhm_parse_dhmfile() 646 ret = mbedtls_dhm_parse_dhm( dhm, buf, n ); in mbedtls_dhm_parse_dhmfile() 690 mbedtls_dhm_context dhm; in mbedtls_dhm_self_test() local 692 mbedtls_dhm_init( &dhm ); in mbedtls_dhm_self_test() 697 if( ( ret = mbedtls_dhm_parse_dhm( &dhm, in mbedtls_dhm_self_test() [all …]
|
/optee_os-3.20.0/lib/libmbedtls/mbedtls/include/mbedtls/ |
A D | dhm.h | 324 int mbedtls_dhm_parse_dhm( mbedtls_dhm_context *dhm, const unsigned char *dhmin, 340 int mbedtls_dhm_parse_dhmfile( mbedtls_dhm_context *dhm, const char *path );
|
/optee_os-3.20.0/lib/libmbedtls/ |
A D | sub.mk | 26 SRCS_CRYPTO += dhm.c 80 SRCS_CRYPTO += dhm.c
|
/optee_os-3.20.0/lib/libmbedtls/mbedtls/ |
A D | ChangeLog | 3403 * dhm_parse_dhm() (hence dhm_parse_dhmfile()) did not set dhm->len.
|
Completed in 19 milliseconds