]>
git.proxmox.com Git - mirror_edk2.git/blob - CryptoPkg/Library/BaseCryptLibNull/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 ECB 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[out] Output Pointer to a buffer that receives the AES encryption output.
63 @retval FALSE This interface is not supported.
70 IN CONST UINT8
*Input
,
80 Performs AES decryption on a data buffer of the specified size in ECB mode.
82 Return FALSE to indicate this interface is not supported.
84 @param[in] AesContext Pointer to the AES context.
85 @param[in] Input Pointer to the buffer containing the data to be decrypted.
86 @param[in] InputSize Size of the Input buffer in bytes.
87 @param[out] Output Pointer to a buffer that receives the AES decryption output.
89 @retval FALSE This interface is not supported.
96 IN CONST UINT8
*Input
,
106 Performs AES encryption on a data buffer of the specified size in CBC mode.
108 Return FALSE to indicate this interface is not supported.
110 @param[in] AesContext Pointer to the AES context.
111 @param[in] Input Pointer to the buffer containing the data to be encrypted.
112 @param[in] InputSize Size of the Input buffer in bytes.
113 @param[in] Ivec Pointer to initialization vector.
114 @param[out] Output Pointer to a buffer that receives the AES encryption output.
116 @retval FALSE This interface is not supported.
123 IN CONST UINT8
*Input
,
125 IN CONST UINT8
*Ivec
,
134 Performs AES decryption on a data buffer of the specified size in CBC mode.
136 Return FALSE to indicate this interface is not supported.
138 @param[in] AesContext Pointer to the AES context.
139 @param[in] Input Pointer to the buffer containing the data to be encrypted.
140 @param[in] InputSize Size of the Input buffer in bytes.
141 @param[in] Ivec Pointer to initialization vector.
142 @param[out] Output Pointer to a buffer that receives the AES encryption output.
144 @retval FALSE This interface is not supported.
151 IN CONST UINT8
*Input
,
153 IN CONST UINT8
*Ivec
,