Lines Matching refs:myrand

294 static int myrand( void *rng_state, unsigned char *output, size_t len )  in myrand()  function
619 if( mbedtls_ctr_drbg_seed( &ctr_drbg, myrand, NULL, NULL, 0 ) != 0 ) in benchmark()
625 if( mbedtls_ctr_drbg_seed( &ctr_drbg, myrand, NULL, NULL, 0 ) != 0 ) in benchmark()
647 if( mbedtls_hmac_drbg_seed( &hmac_drbg, md_info, myrand, NULL, NULL, 0 ) != 0 ) in benchmark()
654 if( mbedtls_hmac_drbg_seed( &hmac_drbg, md_info, myrand, NULL, NULL, 0 ) != 0 ) in benchmark()
668 if( mbedtls_hmac_drbg_seed( &hmac_drbg, md_info, myrand, NULL, NULL, 0 ) != 0 ) in benchmark()
675 if( mbedtls_hmac_drbg_seed( &hmac_drbg, md_info, myrand, NULL, NULL, 0 ) != 0 ) in benchmark()
711 ret = mbedtls_rsa_private( rsa, myrand, NULL, buf, buf ) ); in benchmark()
744 mbedtls_dhm_make_public( &dhm, (int) dhm.len, buf, dhm.len, myrand, NULL ); in benchmark()
751 myrand, NULL ); in benchmark()
752 … ret |= mbedtls_dhm_calc_secret( &dhm, buf, sizeof( buf ), &olen, myrand, NULL ) ); in benchmark()
756 … ret |= mbedtls_dhm_calc_secret( &dhm, buf, sizeof( buf ), &olen, myrand, NULL ) ); in benchmark()
778 if( mbedtls_ecdsa_genkey( &ecdsa, curve_info->grp_id, myrand, NULL ) != 0 ) in benchmark()
786 tmp, &sig_len, myrand, NULL ) ); in benchmark()
797 if( mbedtls_ecdsa_genkey( &ecdsa, curve_info->grp_id, myrand, NULL ) != 0 || in benchmark()
799 tmp, &sig_len, myrand, NULL ) != 0 ) in benchmark()
834 myrand, NULL ) != 0 || in benchmark()
845 myrand, NULL ); in benchmark()
847 myrand, NULL ) ); in benchmark()
857 mbedtls_ecdh_gen_public( &ecdh.grp, &ecdh.d, &ecdh.Qp, myrand, NULL ) != 0 ) in benchmark()
864 myrand, NULL ); in benchmark()
866 myrand, NULL ) ); in benchmark()
880 myrand, NULL ) != 0 || in benchmark()
883 myrand, NULL ) != 0 ) in benchmark()
893 myrand, NULL ) ); in benchmark()
904 myrand, NULL ) != 0 || in benchmark()
905 mbedtls_ecdh_gen_public( &ecdh.grp, &ecdh.d, &ecdh.Q, myrand, NULL ) != 0 ) in benchmark()
912 myrand, NULL ) ); in benchmark()