Lines Matching refs:rng
22 EFI_RNG_PROTOCOL *rng; in acquire_rng() local
29 err = LibLocateProtocol((EFI_GUID*) EFI_RNG_GUID, (void**) &rng); in acquire_rng()
32 if (!rng) in acquire_rng()
37 err = rng->GetRNG(rng, NULL, size, data); in acquire_rng()
47 const void *rng, in hash_once() argument
71 if (rng) in hash_once()
72 sha256_process_bytes(rng, size, &hash); in hash_once()
81 const void *rng, in hash_many() argument
101 hash_once(old_seed, rng, size, in hash_many()
112 const void *rng, in mangle_random_seed() argument
137 err = hash_many(old_seed, rng, size, system_token, system_token_size, 0, n, &new_seed); in mangle_random_seed()
142 err = hash_many(old_seed, rng, size, system_token, system_token_size, n, n, &for_kernel); in mangle_random_seed()
227 …_cleanup_freepool_ void *seed = NULL, *new_seed = NULL, *rng = NULL, *for_kernel = NULL, *system_t… in process_random_seed() local
286 (void) acquire_rng(size, &rng); /* It's fine if this fails */ in process_random_seed()
289 …err = mangle_random_seed(seed, rng, size, system_token, system_token_size, &new_seed, &for_kernel); in process_random_seed()