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


Functions

BOOLEAN EFIAPI RdRand16Step (OUT UINT16 *Rand)
BOOLEAN EFIAPI RdRand32Step (OUT UINT32 *Rand)
BOOLEAN EFIAPI RdRand64Step (OUT UINT64 *Rand)

Detailed Description

RDRAND Support Routines for GCC environment.

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

BOOLEAN EFIAPI RdRand16Step ( OUT UINT16 *  Rand  ) 

Generates a 16-bit random number through RDRAND instruction.

Parameters:
[out] Rand Buffer pointer to store the random result.
Return values:
TRUE RDRAND call was successful.
FALSE Failed attempts to call RDRAND.

References BOOLEAN().

BOOLEAN EFIAPI RdRand32Step ( OUT UINT32 *  Rand  ) 

Generates a 32-bit random number through RDRAND instruction.

Parameters:
[out] Rand Buffer pointer to store the random result.
Return values:
TRUE RDRAND call was successful.
FALSE Failed attempts to call RDRAND.

References BOOLEAN().

BOOLEAN EFIAPI RdRand64Step ( OUT UINT64 *  Rand  ) 

Generates a 64-bit random number through RDRAND instruction.

Parameters:
[out] Rand Buffer pointer to store the random result.
Return values:
TRUE RDRAND call was successful.
FALSE Failed attempts to call RDRAND.

References BOOLEAN().


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