]>
git.proxmox.com Git - mirror_edk2.git/blob - CryptoPkg/Library/BaseCryptLib/Cipher/CryptArc4Null.c
2 ARC4 Wrapper Implementation which does not provide real capabilities.
4 Copyright (c) 2012 - 2018, 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 ARC4 operations.
20 Return zero to indicate this interface is not supported.
22 @retval 0 This interface is not supported.
37 Initializes user-supplied memory as ARC4 context for subsequent use.
39 Return FALSE to indicate this interface is not supported.
41 @param[out] Arc4Context Pointer to ARC4 context being initialized.
42 @param[in] Key Pointer to the user-supplied ARC4 key.
43 @param[in] KeySize Size of ARC4 key in bytes.
45 @retval FALSE This interface is not supported.
51 OUT VOID
*Arc4Context
,
61 Performs ARC4 encryption on a data buffer of the specified size.
63 Return FALSE to indicate this interface is not supported.
65 @param[in, out] Arc4Context Pointer to the ARC4 context.
66 @param[in] Input Pointer to the buffer containing the data to be encrypted.
67 @param[in] InputSize Size of the Input buffer in bytes.
68 @param[out] Output Pointer to a buffer that receives the ARC4 encryption output.
70 @retval FALSE This interface is not supported.
76 IN OUT VOID
*Arc4Context
,
77 IN CONST UINT8
*Input
,
87 Performs ARC4 decryption on a data buffer of the specified size.
89 Return FALSE to indicate this interface is not supported.
91 @param[in, out] Arc4Context Pointer to the ARC4 context.
92 @param[in] Input Pointer to the buffer containing the data to be decrypted.
93 @param[in] InputSize Size of the Input buffer in bytes.
94 @param[out] Output Pointer to a buffer that receives the ARC4 decryption output.
96 @retval FALSE This interface is not supported.
102 IN OUT VOID
*Arc4Context
,
113 Resets the ARC4 context to the initial state.
115 Return FALSE to indicate this interface is not supported.
117 @param[in, out] Arc4Context Pointer to the ARC4 context.
119 @retval FALSE This interface is not supported.
125 IN OUT VOID
*Arc4Context