Home
last modified time | relevance | path

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

/optee_os-3.20.0/ta/trusted_keys/
A Dentry.c34 uint8_t *rng_buf = NULL; in get_random() local
47 rng_buf = TEE_Malloc(params[0].memref.size, TEE_MALLOC_FILL_ZERO); in get_random()
48 if (!rng_buf) in get_random()
51 TEE_GenerateRandom(rng_buf, params[0].memref.size); in get_random()
52 memcpy(params[0].memref.buffer, rng_buf, params[0].memref.size); in get_random()
53 memzero_explicit(rng_buf, params[0].memref.size); in get_random()
55 TEE_Free(rng_buf); in get_random()

Completed in 3 milliseconds