Lines Matching refs:myrand
192 static int myrand( void *rng_state, unsigned char *output, size_t len ) in myrand() function
573 if( mbedtls_ctr_drbg_seed( &ctr_drbg, myrand, NULL, NULL, 0 ) != 0 ) in main()
579 if( mbedtls_ctr_drbg_seed( &ctr_drbg, myrand, NULL, NULL, 0 ) != 0 ) in main()
601 if( mbedtls_hmac_drbg_seed( &hmac_drbg, md_info, myrand, NULL, NULL, 0 ) != 0 ) in main()
608 if( mbedtls_hmac_drbg_seed( &hmac_drbg, md_info, myrand, NULL, NULL, 0 ) != 0 ) in main()
622 if( mbedtls_hmac_drbg_seed( &hmac_drbg, md_info, myrand, NULL, NULL, 0 ) != 0 ) in main()
629 if( mbedtls_hmac_drbg_seed( &hmac_drbg, md_info, myrand, NULL, NULL, 0 ) != 0 ) in main()
651 mbedtls_rsa_gen_key( &rsa, myrand, NULL, keysize, 65537 ); in main()
659 ret = mbedtls_rsa_private( &rsa, myrand, NULL, buf, buf ) ); in main()
692 mbedtls_dhm_make_public( &dhm, (int) dhm.len, buf, dhm.len, myrand, NULL ); in main()
699 myrand, NULL ); in main()
700 … ret |= mbedtls_dhm_calc_secret( &dhm, buf, sizeof( buf ), &olen, myrand, NULL ) ); in main()
704 … ret |= mbedtls_dhm_calc_secret( &dhm, buf, sizeof( buf ), &olen, myrand, NULL ) ); in main()
726 if( mbedtls_ecdsa_genkey( &ecdsa, curve_info->grp_id, myrand, NULL ) != 0 ) in main()
734 tmp, &sig_len, myrand, NULL ) ); in main()
745 if( mbedtls_ecdsa_genkey( &ecdsa, curve_info->grp_id, myrand, NULL ) != 0 || in main()
747 tmp, &sig_len, myrand, NULL ) != 0 ) in main()
782 myrand, NULL ) != 0 || in main()
793 myrand, NULL ); in main()
795 myrand, NULL ) ); in main()
805 mbedtls_ecdh_gen_public( &ecdh.grp, &ecdh.d, &ecdh.Qp, myrand, NULL ) != 0 ) in main()
812 myrand, NULL ); in main()
814 myrand, NULL ) ); in main()
828 myrand, NULL ) != 0 || in main()
831 myrand, NULL ) != 0 ) in main()
841 myrand, NULL ) ); in main()
852 myrand, NULL ) != 0 || in main()
853 mbedtls_ecdh_gen_public( &ecdh.grp, &ecdh.d, &ecdh.Q, myrand, NULL ) != 0 ) in main()
860 myrand, NULL ) ); in main()