/*-1* SPDX-License-Identifier: BSD-2-Clause2*3* Copyright 2006 - 2016 Unified EFI, Inc.<BR>4* Copyright (c) 2013 - 2016, Intel Corporation. All rights reserved.<BR>5* This program and the accompanying materials6* are licensed and made available under the terms and conditions of the BSD License7* which accompanies this distribution. The full text of the license may be found at8* http://opensource.org/licenses/bsd-license.php9*10* THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,11* WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.12*13*/1415#ifndef _EFIRNG_H16#define _EFIRNG_H1718#define EFI_RNG_PROTOCOL_GUID \19{ 0x3152bca5, 0xeade, 0x433d, {0x86, 0x2e, 0xc0, 0x1c, 0xdc, 0x29, 0x1f, 0x44} }2021INTERFACE_DECL(_EFI_RNG_PROTOCOL);2223typedef EFI_GUID EFI_RNG_ALGORITHM;2425typedef26EFI_STATUS27(EFIAPI *EFI_RNG_GET_INFO) (28IN struct _EFI_RNG_PROTOCOL *This,29IN OUT UINTN *RNGAlgorithmListSize,30OUT EFI_RNG_ALGORITHM *RNGAlgorithmList31);3233typedef34EFI_STATUS35(EFIAPI *EFI_RNG_GET_RNG) (36IN struct _EFI_RNG_PROTOCOL *This,37IN EFI_RNG_ALGORITHM *RNGAlgorithm, OPTIONAL38IN UINTN RNGValueLength,39OUT UINT8 *RNGValue40);4142typedef struct _EFI_RNG_PROTOCOL {43EFI_RNG_GET_INFO GetInfo;44EFI_RNG_GET_RNG GetRNG;45} EFI_RNG_PROTOCOL;4647static EFI_GUID rng_guid = EFI_RNG_PROTOCOL_GUID;4849#endif /* _EFIRNG_H */505152