TianoCore EDK2 master
Loading...
Searching...
No Matches
CryptAesNull.c File Reference
#include "InternalCryptLib.h"

Go to the source code of this file.

Functions

UINTN EFIAPI AesGetContextSize (VOID)
 
BOOLEAN EFIAPI AesInit (OUT VOID *AesContext, IN CONST UINT8 *Key, IN UINTN KeyLength)
 
BOOLEAN EFIAPI AesEcbEncrypt (IN VOID *AesContext, IN CONST UINT8 *Input, IN UINTN InputSize, OUT UINT8 *Output)
 
BOOLEAN EFIAPI AesEcbDecrypt (IN VOID *AesContext, IN CONST UINT8 *Input, IN UINTN InputSize, OUT UINT8 *Output)
 
BOOLEAN EFIAPI AesCbcEncrypt (IN VOID *AesContext, IN CONST UINT8 *Input, IN UINTN InputSize, IN CONST UINT8 *Ivec, OUT UINT8 *Output)
 
BOOLEAN EFIAPI AesCbcDecrypt (IN VOID *AesContext, IN CONST UINT8 *Input, IN UINTN InputSize, IN CONST UINT8 *Ivec, OUT UINT8 *Output)
 

Detailed Description

AES Wrapper Implementation which does not provide real capabilities.

Copyright (c) 2023, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file CryptAesNull.c.

Function Documentation

◆ AesCbcDecrypt()

BOOLEAN EFIAPI AesCbcDecrypt ( IN VOID *  AesContext,
IN CONST UINT8 *  Input,
IN UINTN  InputSize,
IN CONST UINT8 *  Ivec,
OUT UINT8 *  Output 
)

Performs AES decryption on a data buffer of the specified size in CBC mode.

Return FALSE to indicate this interface is not supported.

Parameters
[in]AesContextPointer to the AES context.
[in]InputPointer to the buffer containing the data to be encrypted.
[in]InputSizeSize of the Input buffer in bytes.
[in]IvecPointer to initialization vector.
[out]OutputPointer to a buffer that receives the AES encryption output.
Return values
FALSEThis interface is not supported.

Definition at line 149 of file CryptAesNull.c.

◆ AesCbcEncrypt()

BOOLEAN EFIAPI AesCbcEncrypt ( IN VOID *  AesContext,
IN CONST UINT8 *  Input,
IN UINTN  InputSize,
IN CONST UINT8 *  Ivec,
OUT UINT8 *  Output 
)

Performs AES encryption on a data buffer of the specified size in CBC mode.

Return FALSE to indicate this interface is not supported.

Parameters
[in]AesContextPointer to the AES context.
[in]InputPointer to the buffer containing the data to be encrypted.
[in]InputSizeSize of the Input buffer in bytes.
[in]IvecPointer to initialization vector.
[out]OutputPointer to a buffer that receives the AES encryption output.
Return values
FALSEThis interface is not supported.

Definition at line 121 of file CryptAesNull.c.

◆ AesEcbDecrypt()

BOOLEAN EFIAPI AesEcbDecrypt ( IN VOID *  AesContext,
IN CONST UINT8 *  Input,
IN UINTN  InputSize,
OUT UINT8 *  Output 
)

Performs AES decryption on a data buffer of the specified size in ECB mode.

Return FALSE to indicate this interface is not supported.

Parameters
[in]AesContextPointer to the AES context.
[in]InputPointer to the buffer containing the data to be decrypted.
[in]InputSizeSize of the Input buffer in bytes.
[out]OutputPointer to a buffer that receives the AES decryption output.
Return values
FALSEThis interface is not supported.

Definition at line 94 of file CryptAesNull.c.

◆ AesEcbEncrypt()

BOOLEAN EFIAPI AesEcbEncrypt ( IN VOID *  AesContext,
IN CONST UINT8 *  Input,
IN UINTN  InputSize,
OUT UINT8 *  Output 
)

Performs AES encryption on a data buffer of the specified size in ECB mode.

Return FALSE to indicate this interface is not supported.

Parameters
[in]AesContextPointer to the AES context.
[in]InputPointer to the buffer containing the data to be encrypted.
[in]InputSizeSize of the Input buffer in bytes.
[out]OutputPointer to a buffer that receives the AES encryption output.
Return values
FALSEThis interface is not supported.

Definition at line 68 of file CryptAesNull.c.

◆ AesGetContextSize()

UINTN EFIAPI AesGetContextSize ( VOID  )

Retrieves the size, in bytes, of the context buffer required for AES operations.

Return zero to indicate this interface is not supported.

Return values
0This interface is not supported.

Definition at line 21 of file CryptAesNull.c.

◆ AesInit()

BOOLEAN EFIAPI AesInit ( OUT VOID *  AesContext,
IN CONST UINT8 *  Key,
IN UINTN  KeyLength 
)

Initializes user-supplied memory as AES context for subsequent use.

Return FALSE to indicate this interface is not supported.

Parameters
[out]AesContextPointer to AES context being initialized.
[in]KeyPointer to the user-supplied AES key.
[in]KeyLengthLength of AES key in bits.
Return values
FALSEThis interface is not supported.

Definition at line 43 of file CryptAesNull.c.