Searched refs:entropy (Results 1 – 7 of 7) sorted by relevance
| /optee_os/lib/libmbedtls/mbedtls/library/ |
| H A D | psa_crypto_random_impl.h | 71 mbedtls_entropy_context entropy; member 113 mbedtls_entropy_context *entropy, in mbedtls_psa_drbg_seed() argument 117 return mbedtls_ctr_drbg_seed(drbg_ctx, mbedtls_entropy_func, entropy, custom, len); in mbedtls_psa_drbg_seed() 120 return mbedtls_hmac_drbg_seed(drbg_ctx, md_info, mbedtls_entropy_func, entropy, custom, len); in mbedtls_psa_drbg_seed()
|
| H A D | psa_crypto.c | 7979 rng->entropy_init(&rng->entropy); in mbedtls_psa_random_init() 7984 mbedtls_entropy_add_source(&rng->entropy, in mbedtls_psa_random_init() 8005 rng->entropy_free(&rng->entropy); in mbedtls_psa_random_free() 8019 int ret = mbedtls_psa_drbg_seed(&rng->drbg, &rng->entropy, in mbedtls_psa_random_seed()
|
| /optee_os/core/drivers/ |
| H A D | versal_trng.c | 202 uint8_t entropy[MAX_PRE_DF_LEN]; /* input entropy */ member 567 static TEE_Result trng_check_seed(uint8_t *entropy, uint32_t len) in trng_check_seed() argument 569 uint32_t *p = (void *)entropy; in trng_check_seed() 657 uint8_t entropy[TRNG_SEED_LEN] = { 0 }; in trng_reseed_internal_nodf() local 667 if (trng_collect_random(trng, entropy, TRNG_SEED_LEN)) in trng_reseed_internal_nodf() 670 if (trng_check_seed(entropy, TRNG_SEED_LEN)) in trng_reseed_internal_nodf() 673 seed = entropy; in trng_reseed_internal_nodf() 703 if (trng_collect_random(trng, trng->dfin.entropy, trng->len)) in trng_reseed_internal_df() 706 if (trng_check_seed(trng->dfin.entropy, trng->len)) in trng_reseed_internal_df() 710 memcpy(trng->dfin.entropy, eseed, trng->len); in trng_reseed_internal_df() [all …]
|
| /optee_os/core/arch/arm/plat-synquacer/ |
| H A D | rng_pta.c | 125 static void pool_add_entropy(uint8_t *entropy, uint32_t size) in pool_add_entropy() argument 137 memcpy((entropy_pool + entropy_size), entropy, copy_size); in pool_add_entropy()
|
| /optee_os/lib/libmbedtls/ |
| H A D | sub.mk | 35 SRCS_CRYPTO += entropy.c
|
| /optee_os/lib/libmbedtls/mbedtls/ |
| H A D | ChangeLog | 258 - Random generation: ctr_drbg.h, hmac_drbg.h, entropy.h; 597 entropy resource in gen_key example. Fixes #8809. 721 entropy module was not covered which meant an external RNG had to be 1229 the entropy module. As a consequence, for now the only way to build with 1848 interfaces with mbedtls_entropy_add_source() and/or use an entropy seed 1850 https://mbed-tls.readthedocs.io/en/latest/kb/how-to/add-entropy-sources-to-entropy-pool/ for 2345 entropy collection and DRBG code. Enable MBEDTLS_PSA_CRYPTO_EXTERNAL_RNG 2358 nonce from entropy. Applications were affected if they called 2361 length, or when the entropy module uses SHA-256 and CTR_DRBG uses AES-256. 2364 entropy from the nonce. [all …]
|
| /optee_os/ |
| H A D | CHANGELOG.md | 1204 * Use CNTPCT (when available) to add entropy to the software PRNG
|