OpenCore  1.0.4
OpenCore Bootloader
Loading...
Searching...
No Matches
OcRngLib.h File Reference
#include <Library/RngLib.h>

Go to the source code of this file.

Functions

UINT16 EFIAPI GetPseudoRandomNumber16 (VOID)
 
UINT32 EFIAPI GetPseudoRandomNumber32 (VOID)
 
UINT64 EFIAPI GetPseudoRandomNumber64 (VOID)
 

Detailed Description

Copyright (C) 2019, vit9696. All rights reserved.

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.

Definition in file OcRngLib.h.

Function Documentation

◆ GetPseudoRandomNumber16()

UINT16 EFIAPI GetPseudoRandomNumber16 ( VOID )

Generates a 16-bit pseudo random number. This generator is still guaranteed to be cryptographically secure by the use of CPRNG with entropy.

Return values
16-bitpseudo random number.

Generates a 16-bit pseudo random number.

Return values
16-bitpseudo random number.

Definition at line 372 of file OcRngLib.c.

◆ GetPseudoRandomNumber32()

UINT32 EFIAPI GetPseudoRandomNumber32 ( VOID )

Generates a 32-bit pseudo random number. This generator is still guaranteed to be cryptographically secure by the use of CPRNG with entropy.

Return values
32-bitpseudo random number.

Generates a 32-bit pseudo random number.

Return values
32-bitpseudo random number.

Definition at line 390 of file OcRngLib.c.

◆ GetPseudoRandomNumber64()

UINT64 EFIAPI GetPseudoRandomNumber64 ( VOID )

Generates a 64-bit pseudo random number. This generator is still guaranteed to be cryptographically secure by the use of CPRNG with entropy.

Return values
64-bitpseudo random number.

Generates a 64-bit pseudo random number.

Return values
64-bitpseudo random number.

Definition at line 408 of file OcRngLib.c.