]>
git.proxmox.com Git - mirror_edk2.git/blob - CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/Cipher/CryptAesNull.c
074b07247b452c4923d7e42201e56115b28251ea
2 AES Wrapper Implementation which does not provide real capabilities.
4 Copyright (c) 2012, Intel Corporation. All rights reserved.<BR>
5 This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
15 #include "InternalCryptLib.h"
18 Retrieves the size, in bytes, of the context buffer required for AES operations.
20 Return zero to indicate this interface is not supported.
22 @retval 0 This interface is not supported.
36 Initializes user-supplied memory as AES context for subsequent use.
38 Return FALSE to indicate this interface is not supported.
40 @param[out] AesContext Pointer to AES context being initialized.
41 @param[in] Key Pointer to the user-supplied AES key.
42 @param[in] KeyLength Length of AES key in bits.
44 @retval FALSE This interface is not supported.
60 Performs AES encryption on a data buffer of the specified size in ECB mode.
62 Return FALSE to indicate this interface is not supported.
64 @param[in] AesContext Pointer to the AES context.
65 @param[in] Input Pointer to the buffer containing the data to be encrypted.
66 @param[in] InputSize Size of the Input buffer in bytes.
67 @param[out] Output Pointer to a buffer that receives the AES encryption output.
69 @retval FALSE This interface is not supported.
76 IN CONST UINT8
*Input
,
86 Performs AES decryption on a data buffer of the specified size in ECB mode.
88 Return FALSE to indicate this interface is not supported.
90 @param[in] AesContext Pointer to the AES context.
91 @param[in] Input Pointer to the buffer containing the data to be decrypted.
92 @param[in] InputSize Size of the Input buffer in bytes.
93 @param[out] Output Pointer to a buffer that receives the AES decryption output.
95 @retval FALSE This interface is not supported.
102 IN CONST UINT8
*Input
,
112 Performs AES encryption on a data buffer of the specified size in CBC mode.
114 Return FALSE to indicate this interface is not supported.
116 @param[in] AesContext Pointer to the AES context.
117 @param[in] Input Pointer to the buffer containing the data to be encrypted.
118 @param[in] InputSize Size of the Input buffer in bytes.
119 @param[in] Ivec Pointer to initialization vector.
120 @param[out] Output Pointer to a buffer that receives the AES encryption output.
122 @retval FALSE This interface is not supported.
129 IN CONST UINT8
*Input
,
131 IN CONST UINT8
*Ivec
,
140 Performs AES decryption on a data buffer of the specified size in CBC mode.
142 Return FALSE to indicate this interface is not supported.
144 @param[in] AesContext Pointer to the AES context.
145 @param[in] Input Pointer to the buffer containing the data to be encrypted.
146 @param[in] InputSize Size of the Input buffer in bytes.
147 @param[in] Ivec Pointer to initialization vector.
148 @param[out] Output Pointer to a buffer that receives the AES encryption output.
150 @retval FALSE This interface is not supported.
157 IN CONST UINT8
*Input
,
159 IN CONST UINT8
*Ivec
,