/hal_espressif-latest/components/wpa_supplicant/esp_supplicant/src/crypto/ |
D | crypto_mbedtls-rsa.c | 189 mbedtls_entropy_context *entropy = os_zalloc(sizeof(*entropy)); in crypto_public_key_encrypt_pkcs1_v15() local 192 if (!pkey || !entropy || !ctr_drbg) { in crypto_public_key_encrypt_pkcs1_v15() 193 if (entropy) in crypto_public_key_encrypt_pkcs1_v15() 194 os_free(entropy); in crypto_public_key_encrypt_pkcs1_v15() 201 mbedtls_entropy_init( entropy ); in crypto_public_key_encrypt_pkcs1_v15() 205 entropy, (const unsigned char *) pers, in crypto_public_key_encrypt_pkcs1_v15() 224 mbedtls_entropy_free( entropy ); in crypto_public_key_encrypt_pkcs1_v15() 225 os_free(entropy); in crypto_public_key_encrypt_pkcs1_v15() 240 mbedtls_entropy_context *entropy = os_malloc(sizeof(*entropy)); in crypto_private_key_decrypt_pkcs1_v15() local 243 if (!pkey || !entropy || !ctr_drbg) { in crypto_private_key_decrypt_pkcs1_v15() [all …]
|
D | crypto_mbedtls-ec.c | 271 mbedtls_entropy_context entropy; in crypto_ec_point_mul() local 274 mbedtls_entropy_init(&entropy); in crypto_ec_point_mul() 277 MBEDTLS_MPI_CHK(mbedtls_ctr_drbg_seed(&ctr_drbg, mbedtls_entropy_func, &entropy, in crypto_ec_point_mul() 288 mbedtls_entropy_free(&entropy); in crypto_ec_point_mul() 469 mbedtls_entropy_context entropy; in crypto_key_compare() local 472 mbedtls_entropy_init(&entropy); in crypto_key_compare() 475 MBEDTLS_MPI_CHK(mbedtls_ctr_drbg_seed(&ctr_drbg, mbedtls_entropy_func, &entropy, NULL, 0)); in crypto_key_compare() 483 mbedtls_entropy_free(&entropy); in crypto_key_compare() 745 mbedtls_entropy_context entropy; in crypto_ecdh() local 749 mbedtls_entropy_init(&entropy); in crypto_ecdh() [all …]
|
D | tls_mbedtls.c | 76 mbedtls_entropy_context entropy; /*!< mbedTLS entropy context structure */ member 104 mbedtls_entropy_free(&tls->entropy); in tls_mbedtls_cleanup() 585 mbedtls_entropy_init(&tls->entropy); in tls_create_mbedtls_handle() 594 &tls->entropy, NULL, 0); in tls_create_mbedtls_handle()
|
/hal_espressif-latest/components/bootloader_support/src/secure_boot_v2/ |
D | secure_boot_rsa_signature.c | 27 mbedtls_entropy_context entropy; in verify_rsa_signature_block() local 40 mbedtls_entropy_init(&entropy); in verify_rsa_signature_block() 42 ret = mbedtls_ctr_drbg_seed(&ctr_drbg, mbedtls_entropy_func, &entropy, NULL, 0); in verify_rsa_signature_block() 97 mbedtls_entropy_free(&entropy); in verify_rsa_signature_block()
|
/hal_espressif-latest/components/bt/porting/ext/tinycrypt/src/ |
D | ctr_prng.c | 118 uint8_t const * const entropy, in tc_ctr_prng_init() argument 140 if ((0 != ctx) && (0 != entropy) && (entropyLen >= sizeof seed_material)) { in tc_ctr_prng_init() 142 memcpy(seed_material, entropy, sizeof seed_material); in tc_ctr_prng_init() 165 uint8_t const * const entropy, in tc_ctr_prng_reseed() argument 189 memcpy(seed_material, entropy, sizeof seed_material); in tc_ctr_prng_reseed()
|
/hal_espressif-latest/components/bt/esp_ble_mesh/mesh_common/tinycrypt/src/ |
D | ctr_prng.c | 118 uint8_t const *const entropy, in tc_ctr_prng_init() argument 140 if ((0 != ctx) && (0 != entropy) && (entropyLen >= sizeof seed_material)) { in tc_ctr_prng_init() 142 memcpy(seed_material, entropy, sizeof seed_material); in tc_ctr_prng_init() 165 uint8_t const *const entropy, in tc_ctr_prng_reseed() argument 189 memcpy(seed_material, entropy, sizeof seed_material); in tc_ctr_prng_reseed()
|
/hal_espressif-latest/components/bt/porting/ext/tinycrypt/include/tinycrypt/ |
D | ctr_prng.h | 102 uint8_t const * const entropy, 127 uint8_t const * const entropy,
|
/hal_espressif-latest/components/bt/esp_ble_mesh/mesh_common/tinycrypt/include/tinycrypt/ |
D | ctr_prng.h | 102 uint8_t const *const entropy, 127 uint8_t const *const entropy,
|
/hal_espressif-latest/components/bt/controller/esp32c2/ |
D | bt.c | 1312 mbedtls_entropy_context entropy = {0}; in ble_sm_alg_gen_dhkey() local 1323 mbedtls_entropy_init(&entropy); in ble_sm_alg_gen_dhkey() 1341 if ((rc = mbedtls_ctr_drbg_seed(&ctr_drbg, mbedtls_entropy_func, &entropy, NULL, 0)) != 0) { in ble_sm_alg_gen_dhkey() 1370 mbedtls_entropy_free(&entropy); in ble_sm_alg_gen_dhkey() 1395 mbedtls_entropy_context entropy = {0}; in mbedtls_gen_keypair() local 1398 mbedtls_entropy_init(&entropy); in mbedtls_gen_keypair() 1402 if ((rc = mbedtls_ctr_drbg_seed(&ctr_drbg, mbedtls_entropy_func, &entropy, in mbedtls_gen_keypair() 1428 mbedtls_entropy_free(&entropy); in mbedtls_gen_keypair()
|
/hal_espressif-latest/components/bt/controller/esp32c6/ |
D | bt.c | 1407 mbedtls_entropy_context entropy = {0}; in ble_sm_alg_gen_dhkey() local 1418 mbedtls_entropy_init(&entropy); in ble_sm_alg_gen_dhkey() 1436 if ((rc = mbedtls_ctr_drbg_seed(&ctr_drbg, mbedtls_entropy_func, &entropy, NULL, 0)) != 0) { in ble_sm_alg_gen_dhkey() 1465 mbedtls_entropy_free(&entropy); in ble_sm_alg_gen_dhkey() 1490 mbedtls_entropy_context entropy = {0}; in mbedtls_gen_keypair() local 1493 mbedtls_entropy_init(&entropy); in mbedtls_gen_keypair() 1497 if ((rc = mbedtls_ctr_drbg_seed(&ctr_drbg, mbedtls_entropy_func, &entropy, in mbedtls_gen_keypair() 1523 mbedtls_entropy_free(&entropy); in mbedtls_gen_keypair()
|
/hal_espressif-latest/components/bt/controller/esp32h2/ |
D | bt.c | 1384 mbedtls_entropy_context entropy = {0}; in ble_sm_alg_gen_dhkey() local 1395 mbedtls_entropy_init(&entropy); in ble_sm_alg_gen_dhkey() 1413 if ((rc = mbedtls_ctr_drbg_seed(&ctr_drbg, mbedtls_entropy_func, &entropy, NULL, 0)) != 0) { in ble_sm_alg_gen_dhkey() 1442 mbedtls_entropy_free(&entropy); in ble_sm_alg_gen_dhkey() 1467 mbedtls_entropy_context entropy = {0}; in mbedtls_gen_keypair() local 1470 mbedtls_entropy_init(&entropy); in mbedtls_gen_keypair() 1474 if ((rc = mbedtls_ctr_drbg_seed(&ctr_drbg, mbedtls_entropy_func, &entropy, in mbedtls_gen_keypair() 1500 mbedtls_entropy_free(&entropy); in mbedtls_gen_keypair()
|
/hal_espressif-latest/components/bt/porting/ext/tinycrypt/documentation/ |
D | tinycrypt.rst | 145 * Before using HMAC-PRNG, you *must* find an entropy source to produce a seed. 151 step: entropy seed, personalization and a nonce (which is not implemented). 153 the entropy seed using a mandatory call to the re-seed function. 170 * Before using CTR-PRNG, you *must* find an entropy source to produce a seed. 268 * Extract entropy from strings containing some randomness (HMAC-SHA256);
|
/hal_espressif-latest/components/mbedtls/ |
D | Kconfig | 624 Standard ECDSA is "fragile" in the sense that lack of entropy when signing
|