Searched refs:myrand (Results 1 – 2 of 2) sorted by relevance
/third_party/mbedtls/programs/test/ |
D | benchmark.c | 455 static int myrand(void *rng_state, unsigned char *output, size_t len) in myrand() function 880 if (mbedtls_ctr_drbg_seed(&ctr_drbg, myrand, NULL, NULL, 0) != 0) { in main() 888 if (mbedtls_ctr_drbg_seed(&ctr_drbg, myrand, NULL, NULL, 0) != 0) { in main() 911 if (mbedtls_hmac_drbg_seed(&hmac_drbg, md_info, myrand, NULL, NULL, 0) != 0) { in main() 917 if (mbedtls_hmac_drbg_seed(&hmac_drbg, md_info, myrand, NULL, NULL, 0) != 0) { in main() 931 if (mbedtls_hmac_drbg_seed(&hmac_drbg, md_info, myrand, NULL, NULL, 0) != 0) { in main() 937 if (mbedtls_hmac_drbg_seed(&hmac_drbg, md_info, myrand, NULL, NULL, 0) != 0) { in main() 957 mbedtls_rsa_gen_key(&rsa, myrand, NULL, keysize, 65537); in main() 965 ret = mbedtls_rsa_private(&rsa, myrand, NULL, buf, buf)); in main() 1006 mbedtls_dhm_make_public(&dhm, (int) n, buf, n, myrand, NULL); in main() [all …]
|
/third_party/mbedtls/library/ |
D | rsa.c | 2427 static int myrand(void *rng_state, unsigned char *output, size_t len) in myrand() function 2505 if (mbedtls_rsa_pkcs1_encrypt(&rsa, myrand, NULL, in mbedtls_rsa_self_test() 2520 if (mbedtls_rsa_pkcs1_decrypt(&rsa, myrand, NULL, in mbedtls_rsa_self_test() 2558 if (mbedtls_rsa_pkcs1_sign(&rsa, myrand, NULL, in mbedtls_rsa_self_test()
|