Lines Matching refs:len
31 size_t len) in mbedtls_test_rnd_std_rand() argument
40 for (i = 0; i < len; ++i) { in mbedtls_test_rnd_std_rand()
48 arc4random_buf(output, len); in mbedtls_test_rnd_std_rand()
56 size_t len) in mbedtls_test_rnd_zero_rand() argument
62 memset(output, 0, len); in mbedtls_test_rnd_zero_rand()
69 size_t len) in mbedtls_test_rnd_buffer_rand() argument
75 return mbedtls_test_rnd_std_rand(NULL, output, len); in mbedtls_test_rnd_buffer_rand()
78 use_len = len; in mbedtls_test_rnd_buffer_rand()
79 if (len > info->length) { in mbedtls_test_rnd_buffer_rand()
89 if (len - use_len > 0) { in mbedtls_test_rnd_buffer_rand()
93 len - use_len); in mbedtls_test_rnd_buffer_rand()
104 size_t len) in mbedtls_test_rnd_pseudo_rand() argument
112 return mbedtls_test_rnd_std_rand(NULL, output, len); in mbedtls_test_rnd_pseudo_rand()
117 while (len > 0) { in mbedtls_test_rnd_pseudo_rand()
118 size_t use_len = (len > 4) ? 4 : len; in mbedtls_test_rnd_pseudo_rand()
131 len -= use_len; in mbedtls_test_rnd_pseudo_rand()