]>
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 SPDX-License-Identifier: BSD-2-Clause-Patent
9 #include "InternalCryptLib.h"
12 Retrieves the size, in bytes, of the context buffer required for ARC4 operations.
14 Return zero to indicate this interface is not supported.
16 @retval 0 This interface is not supported.
31 Initializes user-supplied memory as ARC4 context for subsequent use.
33 Return FALSE to indicate this interface is not supported.
35 @param[out] Arc4Context Pointer to ARC4 context being initialized.
36 @param[in] Key Pointer to the user-supplied ARC4 key.
37 @param[in] KeySize Size of ARC4 key in bytes.
39 @retval FALSE This interface is not supported.
45 OUT VOID
*Arc4Context
,
55 Performs ARC4 encryption on a data buffer of the specified size.
57 Return FALSE to indicate this interface is not supported.
59 @param[in, out] Arc4Context Pointer to the ARC4 context.
60 @param[in] Input Pointer to the buffer containing the data to be encrypted.
61 @param[in] InputSize Size of the Input buffer in bytes.
62 @param[out] Output Pointer to a buffer that receives the ARC4 encryption output.
64 @retval FALSE This interface is not supported.
70 IN OUT VOID
*Arc4Context
,
71 IN CONST UINT8
*Input
,
81 Performs ARC4 decryption on a data buffer of the specified size.
83 Return FALSE to indicate this interface is not supported.
85 @param[in, out] Arc4Context Pointer to the ARC4 context.
86 @param[in] Input Pointer to the buffer containing the data to be decrypted.
87 @param[in] InputSize Size of the Input buffer in bytes.
88 @param[out] Output Pointer to a buffer that receives the ARC4 decryption output.
90 @retval FALSE This interface is not supported.
96 IN OUT VOID
*Arc4Context
,
107 Resets the ARC4 context to the initial state.
109 Return FALSE to indicate this interface is not supported.
111 @param[in, out] Arc4Context Pointer to the ARC4 context.
113 @retval FALSE This interface is not supported.
119 IN OUT VOID
*Arc4Context