Home
last modified time | relevance | path

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

/device/google/cuttlefish/host/commands/secure_env/
Dtpm_random_source.cpp29 uint8_t* random, size_t requested_length) const { in GenerateRandom()
30 if (requested_length == 0) { in GenerateRandom()
35 while (requested_length > sizeof(generated->buffer)) { in GenerateRandom()
47 requested_length -= sizeof(generated->buffer); in GenerateRandom()
52 ESYS_TR_NONE, requested_length, &generated); in GenerateRandom()
59 memcpy(random, generated->buffer, requested_length); in GenerateRandom()
Dsoft_gatekeeper.h80 virtual void GetRandom(void* random, uint32_t requested_length) const { in GetRandom() argument
82 RAND_pseudo_bytes((uint8_t*)random, requested_length); in GetRandom()