Functions | |
EFI_STATUS EFIAPI | RdRandWord (OUT UINTN *Rand, IN BOOLEAN NeedRetry) |
EFI_STATUS EFIAPI | RdRandGetWords (IN UINTN Length, OUT UINTN *RandBuffer) |
Copyright (c) 2013, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
EFI_STATUS EFIAPI RdRandGetWords | ( | IN UINTN | Length, | |
OUT UINTN * | RandBuffer | |||
) |
Calls RDRAND to request multiple word-length random numbers.
[in] | Length | Size of the buffer, in words, to fill with. |
[out] | RandBuffer | Pointer to the buffer to store the random result. |
EFI_SUCCESS | Random words generation succeeded. | |
EFI_NOT_READY | Failed to request random words. |
References EFI_STATUS(), RdRand64(), and TRUE.
EFI_STATUS EFIAPI RdRandWord | ( | OUT UINTN * | Rand, | |
IN BOOLEAN | NeedRetry | |||
) |
Calls RDRAND to request a word-length random number.
[out] | Rand | Buffer pointer to store the random number. |
[in] | NeedRetry | Determine whether or not to loop retry. |
EFI_SUCCESS | Random word generation succeeded. | |
EFI_NOT_READY | Failed to request random word. |
References RdRand64().