Home
last modified time | relevance | path

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

/OK3568_Linux_fs/external/security/rk_tee_user/v2/host/xtest/
H A Dsdp_basic.c381 static size_t rand_idx = 0; in get_random_bytes() local
413 if ((rand_idx + t_len) > RANDOM_BUFFER_SIZE) { in get_random_bytes()
414 int sz_end = RANDOM_BUFFER_SIZE - rand_idx; in get_random_bytes()
417 memcpy(out, rand_buf + rand_idx, sz_end); in get_random_bytes()
419 rand_idx = sz_beg; in get_random_bytes()
421 memcpy(out, rand_buf + rand_idx, t_len); in get_random_bytes()
422 rand_idx += t_len; in get_random_bytes()