4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Application for Pseudorandom Number Generator Validation.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncCopyright (c) 2010, Intel Corporation. All rights reserved.<BR>
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncThis program and the accompanying materials
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncare licensed and made available under the terms and conditions of the BSD License
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncwhich accompanies this distribution. The full text of the license may be found at
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncTHE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncWITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncCONST UINT8 SeedString[] = "This is the random seed for PRNG verification.";
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncUINT8 PreviousRandomBuffer[RANDOM_NUMBER_SIZE] = { 0x0 };
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Validate UEFI-OpenSSL pseudorandom number generator interfaces.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @retval EFI_SUCCESS Validation succeeded.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @retval EFI_ABORTED Validation failed.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Status = RandomSeed (SeedString, sizeof (SeedString));
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Status = RandomBytes (RandomBuffer, RANDOM_NUMBER_SIZE);
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync if (CompareMem (PreviousRandomBuffer, RandomBuffer, RANDOM_NUMBER_SIZE) == 0) {