]>
git.proxmox.com Git - mirror_edk2.git/blob - CryptoPkg/Library/BaseCryptLib/Cipher/CryptTdesNull.c
2 TDES 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 TDES 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 TDES context for subsequent use.
38 Return FALSE to indicate this interface is not supported.
40 @param[out] TdesContext Pointer to TDES context being initialized.
41 @param[in] Key Pointer to the user-supplied TDES key.
42 @param[in] KeyLength Length of TDES key in bits.
44 @retval FALSE This interface is not supported.
50 OUT VOID
*TdesContext
,
60 Performs TDES 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] TdesContext Pointer to the TDES 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 TDES encryption output.
69 @retval FALSE This interface is not supported.
76 IN CONST UINT8
*Input
,
86 Performs TDES 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] TdesContext Pointer to the TDES 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 TDES decryption output.
95 @retval FALSE This interface is not supported.
101 IN VOID
*TdesContext
,
102 IN CONST UINT8
*Input
,
112 Performs TDES 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] TdesContext Pointer to the TDES 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 TDES encryption output.
122 @retval FALSE This interface is not supported.
128 IN VOID
*TdesContext
,
129 IN CONST UINT8
*Input
,
131 IN CONST UINT8
*Ivec
,
140 Performs TDES 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] TdesContext Pointer to the TDES 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 TDES encryption output.
150 @retval FALSE This interface is not supported.
156 IN VOID
*TdesContext
,
157 IN CONST UINT8
*Input
,
159 IN CONST UINT8
*Ivec
,