MCPcopy Create free account
hub / github.com/CloverHackyColor/CloverBootloader / KeyFromName

Function KeyFromName

rEFIt_UEFI/Platform/Nvram.cpp:429–436  ·  view source on GitHub ↗

Print all fakesmc variables, i.e. SMC keys

Source from the content-addressed store, hash-verified

427// Print all fakesmc variables, i.e. SMC keys
428///
429UINT32 KeyFromName(CHAR16 *Name)
430{
431 //fakesmc-key-CLKT-ui32: Size = 4, Data: 00 00 8C BE
432 UINT32 Key;
433 Key = ((Name[12] & 0xFF) << 24) + ((Name[13] & 0xFF) << 16) +
434 ((Name[14] & 0xFF) << 8) + ((Name[15] & 0xFF) << 0);
435 return Key;
436}
437
438UINT32 TypeFromName(CHAR16 *Name)
439{

Callers 1

GetSmcKeysFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected