You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The SavePasswordToVariable function takes in the password, generates a salt, generates a SHA256 hash of the
password and saves the password hash to a variable. The KeyLipGenerateSalt function calls RandomSeed with
NULL as the first argument. The RandomSeed function comes from CryptRandTsc.c. When NULL is used as the
first argument, the default seed "UEFI Crypto Library default seed" is used this is concatenated with the TSC
Code snippet below
BOOLEAN
EFIAPI
RandomSeed (
IN CONST UINT8 *Seed OPTIONAL,
IN UINTN SeedSize
)
{
CHAR8 DefaultSeed[128];
…
//
// Seed the pseudorandom number generator with user-supplied value.
// NOTE: A cryptographic PRNG must be seeded with unpredictable data.
//
if (Seed != NULL) {
RAND_seed (Seed, (UINT32)SeedSize);
} else {
//
// Retrieve current time.
//
AsciiSPrint (
DefaultSeed,
sizeof (DefaultSeed),
"UEFI Crypto Library default seed (%ld)",
AsmReadTsc ()
);
RAND_seed (DefaultSeed, sizeof (DefaultSeed));
}
if (RAND_status () == 1) {
This issue was created automatically with bugzilla2github
Bugzilla Bug 4648
Date: 2024-01-17T01:57:18+00:00
From: tabassum.yasmin
To: tabassum.yasmin
CC: @lgao4
Last updated: 2024-01-30T21:46:39+00:00
The text was updated successfully, but these errors were encountered: