Home
last modified time | relevance | path

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

/optee_os/lib/libmbedtls/mbedtls/library/
H A Dpsa_crypto_random_impl.h71 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 Dpsa_crypto.c7979 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 Dversal_trng.c202 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 Drng_pta.c125 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 Dsub.mk35 SRCS_CRYPTO += entropy.c
/optee_os/lib/libmbedtls/mbedtls/
H A DChangeLog258 - 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 DCHANGELOG.md1204 * Use CNTPCT (when available) to add entropy to the software PRNG