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 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) 2012 - 2018, 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 97 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 69 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.