Lines Matching defs:myrand
452 static int myrand(void *rng_state, unsigned char *output, size_t len)
974 if (mbedtls_ctr_drbg_seed(&ctr_drbg, myrand, NULL, NULL, 0) != 0) {
982 if (mbedtls_ctr_drbg_seed(&ctr_drbg, myrand, NULL, NULL, 0) != 0) {
1005 if (mbedtls_hmac_drbg_seed(&hmac_drbg, md_info, myrand, NULL, NULL, 0) != 0) {
1011 if (mbedtls_hmac_drbg_seed(&hmac_drbg, md_info, myrand, NULL, NULL, 0) != 0) {
1025 if (mbedtls_hmac_drbg_seed(&hmac_drbg, md_info, myrand, NULL, NULL, 0) != 0) {
1031 if (mbedtls_hmac_drbg_seed(&hmac_drbg, md_info, myrand, NULL, NULL, 0) != 0) {
1052 mbedtls_rsa_gen_key(&rsa, myrand, NULL, keysize, 65537);
1060 ret = mbedtls_rsa_private(&rsa, myrand, NULL, buf, buf));
1105 mbedtls_dhm_make_public(&dhm, (int) n, buf, n, myrand, NULL);
1114 myrand, NULL);
1116 mbedtls_dhm_calc_secret(&dhm, buf, sizeof(buf), &olen, myrand, NULL));
1121 mbedtls_dhm_calc_secret(&dhm, buf, sizeof(buf), &olen, myrand, NULL));
1146 if (mbedtls_ecdsa_genkey(&ecdsa, curve_info->grp_id, myrand, NULL) != 0) {
1157 tmp, sizeof(tmp), &sig_len, myrand,
1172 if (mbedtls_ecdsa_genkey(&ecdsa, curve_info->grp_id, myrand, NULL) != 0 ||
1174 tmp, sizeof(tmp), &sig_len, myrand, NULL) != 0) {
1207 sizeof(buf_srv), myrand, NULL));
1218 sizeof(buf_cli), myrand, NULL));
1221 sizeof(buf_cli), myrand, NULL));
1240 sizeof(buf_srv), myrand, NULL));
1246 sizeof(buf_cli), myrand, NULL));
1253 sizeof(buf_cli), myrand, NULL));