struct sha256_ctx hash;
assert(old_seed);
- assert(rng);
- assert(system_token);
+ assert(system_token_size == 0 || system_token);
sha256_init_ctx(&hash);
sha256_process_bytes(old_seed, size, &hash);
_cleanup_freepool_ void *output = NULL;
assert(old_seed);
- assert(rng);
- assert(system_token);
+ assert(system_token_size == 0 || system_token);
assert(ret);
/* Hashes the specified parameters in counter mode, generating n hash values, with the counter in the
UINTN n;
assert(old_seed);
- assert(rng);
- assert(system_token);
+ assert(system_token_size == 0 || system_token);
assert(ret_new_seed);
assert(ret_for_kernel);