Home
last modified time | relevance | path

Searched refs:myrand (Results 1 – 3 of 3) sorted by relevance

/net-tools-latest/mbedtls-2.4.0/programs/test/
Dbenchmark.c192 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()
[all …]
/net-tools-latest/mbedtls-2.4.0/yotta/data/example-benchmark/
Dmain.cpp294 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()
[all …]
/net-tools-latest/mbedtls-2.4.0/library/
Drsa.c1587 static int myrand( void *rng_state, unsigned char *output, size_t len ) in myrand() function
1653 if( mbedtls_rsa_pkcs1_encrypt( &rsa, myrand, NULL, MBEDTLS_RSA_PUBLIC, PT_LEN, in mbedtls_rsa_self_test()
1665 if( mbedtls_rsa_pkcs1_decrypt( &rsa, myrand, NULL, MBEDTLS_RSA_PRIVATE, &len, in mbedtls_rsa_self_test()
1692 if( mbedtls_rsa_pkcs1_sign( &rsa, myrand, NULL, MBEDTLS_RSA_PRIVATE, MBEDTLS_MD_SHA1, 0, in mbedtls_rsa_self_test()