TianoCore EDK2 master
Loading...
Searching...
No Matches
PeiCryptLib.c File Reference
#include <PiPei.h>
#include <Library/BaseLib.h>
#include <Library/DebugLib.h>
#include <Library/PeiServicesLib.h>
#include <Ppi/Crypto.h>

Go to the source code of this file.

Functions

VOID * GetCryptoServices (VOID)
 

Detailed Description

Implements the GetCryptoServices() API that retuns a pointer to the EDK II Crypto PPI.

Copyright (C) Microsoft Corporation. All rights reserved. SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file PeiCryptLib.c.

Function Documentation

◆ GetCryptoServices()

VOID * GetCryptoServices ( VOID  )

Internal worker function that returns the pointer to an EDK II Crypto Protocol/PPI. The layout of the PPI, DXE Protocol, and SMM Protocol are identical which allows the implementation of the BaseCryptLib functions that call through a Protocol/PPI to be shared for the PEI, DXE, and SMM implementations.

This PEI implementation looks up the EDK II Crypto PPI and verifies the version each time a crypto service is called, so it is compatible with XIP PEIMs.

Definition at line 27 of file PeiCryptLib.c.