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.cpp26 uint8_t* random, size_t requested_length) const { in GenerateRandom()
27 if (requested_length == 0) { in GenerateRandom()
32 while (requested_length > sizeof(generated->buffer)) { in GenerateRandom()
44 requested_length -= sizeof(generated->buffer); in GenerateRandom()
48 ESYS_TR_NONE, requested_length, &generated); in GenerateRandom()
55 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()