EFI_STATUS\r
EFIAPI\r
RdRandGetSeed128 (\r
- OUT UINT8 *SeedBuffer\r
+ OUT UINT8 *SeedBuffer\r
)\r
{\r
EFI_STATUS Status;\r
// Chose an arbitrary key and zero the feed_forward_value (FFV)\r
//\r
for (Index = 0; Index < 16; Index++) {\r
- Key[Index] = (UINT8) Index;\r
+ Key[Index] = (UINT8)Index;\r
Ffv[Index] = 0;\r
}\r
\r
EFI_STATUS\r
EFIAPI\r
RdRandGenerateEntropy (\r
- IN UINTN Length,\r
- OUT UINT8 *Entropy\r
+ IN UINTN Length,\r
+ OUT UINT8 *Entropy\r
)\r
{\r
EFI_STATUS Status;\r
if (EFI_ERROR (Status)) {\r
return Status;\r
}\r
+\r
CopyMem (Ptr, Seed, 16);\r
\r
BlockCount--;\r
if (EFI_ERROR (Status)) {\r
return Status;\r
}\r
+\r
CopyMem (Ptr, Seed, (Length % 16));\r
\r
return Status;\r