Searched refs:rng (Results 1 – 7 of 7) sorted by relevance
/mbedtls-3.4.0/programs/ssl/ |
D | ssl_test_lib.c | 74 void rng_init( rng_context_t *rng ) in rng_init() argument 77 (void) rng; in rng_init() 82 mbedtls_ctr_drbg_init( &rng->drbg ); in rng_init() 84 mbedtls_hmac_drbg_init( &rng->drbg ); in rng_init() 89 mbedtls_entropy_init( &rng->entropy ); in rng_init() 93 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 …]
|
D | ssl_test_lib.h | 169 void rng_init( rng_context_t *rng ); 185 int rng_seed( rng_context_t *rng, int reproducible, const char *pers ); 192 void rng_free( rng_context_t *rng );
|
D | ssl_server2.c | 595 rng_context_t rng; variable 814 mbedtls_pk_parse_keyfile( new->key, key_file, "", rng_get, &rng ) != 0 ) in sni_parse() 1168 rng_get, &rng ) == 0 ) in ssl_async_start() 1570 rng_init( &rng ); in main() 2624 ret = rng_seed( &rng, opt.reproducible, pers ); in main() 2701 opt.key_pwd, rng_get, &rng ) ) != 0 ) in main() 2727 opt.key_pwd2, rng_get, &rng ) ) != 0 ) in main() 2759 rng_get, &rng ) ) != 0 ) in main() 2779 rng_get, &rng ) ) != 0 ) in main() 3028 mbedtls_ssl_conf_rng( &conf, rng_get, &rng ); in main() [all …]
|
D | ssl_client2.c | 785 rng_context_t rng; in main() local 843 rng_init( &rng ); in main() 1748 ret = rng_seed( &rng, opt.reproducible, pers ); in main() 1836 ret = mbedtls_pk_parse_keyfile( &pkey, opt.key_file, opt.key_pwd, rng_get, &rng ); in main() 1841 mbedtls_test_cli_key_len, NULL, 0, rng_get, &rng ); in main() 2023 mbedtls_ssl_conf_rng( &conf, rng_get, &rng ); in main() 3296 rng_free( &rng ); in main()
|
/mbedtls-3.4.0/scripts/mbedtls_dev/ |
D | bignum_data.py | 130 rng = random.Random() 132 rng.seed(seed, version=2) 134 prime = 2*getPrime(bits-1, rng.randbytes)+1 #pylint: disable=no-member
|
/mbedtls-3.4.0/library/ |
D | psa_crypto.c | 116 mbedtls_psa_random_context_t rng; member 123 &global_data.rng.drbg; 5940 static void mbedtls_psa_random_init( mbedtls_psa_random_context_t *rng ) in mbedtls_psa_random_init() argument 5943 memset( rng, 0, sizeof( *rng ) ); in mbedtls_psa_random_init() 5948 if( rng->entropy_init == NULL ) in mbedtls_psa_random_init() 5949 rng->entropy_init = mbedtls_entropy_init; in mbedtls_psa_random_init() 5950 if( rng->entropy_free == NULL ) in mbedtls_psa_random_init() 5951 rng->entropy_free = mbedtls_entropy_free; in mbedtls_psa_random_init() 5953 rng->entropy_init( &rng->entropy ); in mbedtls_psa_random_init() 5958 mbedtls_entropy_add_source( &rng->entropy, in mbedtls_psa_random_init() [all …]
|
/mbedtls-3.4.0/tests/suites/ |
D | test_suite_ecp.data | 747 ECP point multiplication rng fail secp256r1 751 ECP point multiplication rng fail Curve25519
|