Home
last modified time | relevance | path

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

/mbedtls-3.5.0/programs/ssl/
Dssl_test_lib.c75 void rng_init(rng_context_t *rng) in rng_init() argument
78 (void) rng; in rng_init()
83 mbedtls_ctr_drbg_init(&rng->drbg); in rng_init()
85 mbedtls_hmac_drbg_init(&rng->drbg); in rng_init()
90 mbedtls_entropy_init(&rng->entropy); in rng_init()
94 int rng_seed(rng_context_t *rng, int reproducible, const char *pers) in rng_seed() argument
105 (void) rng; in rng_seed()
122 int ret = mbedtls_ctr_drbg_seed(&rng->drbg, in rng_seed()
123 f_entropy, &rng->entropy, in rng_seed()
134 int ret = mbedtls_hmac_drbg_seed(&rng->drbg, in rng_seed()
[all …]
Dssl_test_lib.h165 void rng_init(rng_context_t *rng);
181 int rng_seed(rng_context_t *rng, int reproducible, const char *pers);
188 void rng_free(rng_context_t *rng);
Dssl_server2.c606 rng_context_t rng; variable
830 mbedtls_pk_parse_keyfile(new->key, key_file, "", rng_get, &rng) != 0) { in sni_parse()
1182 rng_get, &rng) == 0) { in ssl_async_start()
1600 rng_init(&rng); in main()
2537 ret = rng_seed(&rng, opt.reproducible, pers); in main()
2609 opt.key_pwd, rng_get, &rng)) != 0) { in main()
2631 opt.key_pwd2, rng_get, &rng)) != 0) { in main()
2659 rng_get, &rng)) != 0) { in main()
2677 rng_get, &rng)) != 0) { in main()
2913 mbedtls_ssl_conf_rng(&conf, rng_get, &rng); in main()
[all …]
Dssl_client2.c785 rng_context_t rng; in main() local
847 rng_init(&rng); in main()
1644 ret = rng_seed(&rng, opt.reproducible, pers); in main()
1728 ret = mbedtls_pk_parse_keyfile(&pkey, opt.key_file, opt.key_pwd, rng_get, &rng); in main()
1733 mbedtls_test_cli_key_len, NULL, 0, rng_get, &rng); } in main()
1905 mbedtls_ssl_conf_rng(&conf, rng_get, &rng); in main()
3143 rng_free(&rng); in main()
/mbedtls-3.5.0/scripts/mbedtls_dev/
Dbignum_data.py141 rng = random.Random()
143 rng.seed(seed, version=2)
145 prime = 2*getPrime(bits-1, rng.randbytes)+1 #pylint: disable=no-member
/mbedtls-3.5.0/library/
Dpsa_crypto.c120 mbedtls_psa_random_context_t rng; member
127 &global_data.rng.drbg;
6764 static void mbedtls_psa_random_init(mbedtls_psa_random_context_t *rng) argument
6767 memset(rng, 0, sizeof(*rng));
6772 if (rng->entropy_init == NULL) {
6773 rng->entropy_init = mbedtls_entropy_init;
6775 if (rng->entropy_free == NULL) {
6776 rng->entropy_free = mbedtls_entropy_free;
6779 rng->entropy_init(&rng->entropy);
6784 mbedtls_entropy_add_source(&rng->entropy,
[all …]
/mbedtls-3.5.0/tests/suites/
Dtest_suite_ecp.data787 ECP point multiplication rng fail secp256r1
791 ECP point multiplication rng fail Curve25519