Home
last modified time | relevance | path

Searched refs:entropy (Results 1 – 13 of 13) sorted by relevance

/hal_espressif-latest/components/wpa_supplicant/esp_supplicant/src/crypto/
Dcrypto_mbedtls-rsa.c189 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 …]
Dcrypto_mbedtls-ec.c271 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 …]
Dtls_mbedtls.c76 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/
Dsecure_boot_rsa_signature.c27 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/
Dctr_prng.c118 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/
Dctr_prng.c118 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/
Dctr_prng.h102 uint8_t const * const entropy,
127 uint8_t const * const entropy,
/hal_espressif-latest/components/bt/esp_ble_mesh/mesh_common/tinycrypt/include/tinycrypt/
Dctr_prng.h102 uint8_t const *const entropy,
127 uint8_t const *const entropy,
/hal_espressif-latest/components/bt/controller/esp32c2/
Dbt.c1312 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/
Dbt.c1407 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/
Dbt.c1384 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/
Dtinycrypt.rst145 * 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/
DKconfig624 Standard ECDSA is "fragile" in the sense that lack of entropy when signing