]>
git.proxmox.com Git - mirror_edk2.git/blob - CryptoPkg/Library/BaseCryptLib/Cipher/CryptAesNull.c
2 AES Wrapper Implementation which does not provide real capabilities.
4 Copyright (c) 2012 - 2018, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
9 #include "InternalCryptLib.h"
12 Retrieves the size, in bytes, of the context buffer required for AES operations.
14 Return zero to indicate this interface is not supported.
16 @retval 0 This interface is not supported.
30 Initializes user-supplied memory as AES context for subsequent use.
32 Return FALSE to indicate this interface is not supported.
34 @param[out] AesContext Pointer to AES context being initialized.
35 @param[in] Key Pointer to the user-supplied AES key.
36 @param[in] KeyLength Length of AES key in bits.
38 @retval FALSE This interface is not supported.
54 Performs AES encryption on a data buffer of the specified size in CBC mode.
56 Return FALSE to indicate this interface is not supported.
58 @param[in] AesContext Pointer to the AES context.
59 @param[in] Input Pointer to the buffer containing the data to be encrypted.
60 @param[in] InputSize Size of the Input buffer in bytes.
61 @param[in] Ivec Pointer to initialization vector.
62 @param[out] Output Pointer to a buffer that receives the AES encryption output.
64 @retval FALSE This interface is not supported.
71 IN CONST UINT8
*Input
,
82 Performs AES decryption on a data buffer of the specified size in CBC mode.
84 Return FALSE to indicate this interface is not supported.
86 @param[in] AesContext Pointer to the AES context.
87 @param[in] Input Pointer to the buffer containing the data to be encrypted.
88 @param[in] InputSize Size of the Input buffer in bytes.
89 @param[in] Ivec Pointer to initialization vector.
90 @param[out] Output Pointer to a buffer that receives the AES encryption output.
92 @retval FALSE This interface is not supported.
99 IN CONST UINT8
*Input
,
101 IN CONST UINT8
*Ivec
,