SecurityPkg/RandomNumberGenerator/RngDxe/X64/RdRandWord.c File Reference


Functions

EFI_STATUS EFIAPI RdRandWord (OUT UINTN *Rand, IN BOOLEAN NeedRetry)
EFI_STATUS EFIAPI RdRandGetWords (IN UINTN Length, OUT UINTN *RandBuffer)

Detailed Description

RDRAND Support Routines.

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.


Function Documentation

EFI_STATUS EFIAPI RdRandGetWords ( IN UINTN  Length,
OUT UINTN *  RandBuffer 
)

Calls RDRAND to request multiple word-length random numbers.

Parameters:
[in] Length Size of the buffer, in words, to fill with.
[out] RandBuffer Pointer to the buffer to store the random result.
Return values:
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.

Parameters:
[out] Rand Buffer pointer to store the random number.
[in] NeedRetry Determine whether or not to loop retry.
Return values:
EFI_SUCCESS Random word generation succeeded.
EFI_NOT_READY Failed to request random word.

References RdRand64().


Generated on Thu Sep 24 23:44:24 2015 for SecurityPkg[ALL] by  doxygen 1.5.7.1