]> git.proxmox.com Git - mirror_edk2.git/blame - CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/Cipher/CryptArc4Null.c
CryptoPkg: Clean up source files
[mirror_edk2.git] / CryptoPkg / Library / BaseCryptLibRuntimeCryptProtocol / Cipher / CryptArc4Null.c
CommitLineData
630f67dd 1/** @file\r
532616bb 2 ARC4 Wrapper Implementation which does not provide real capabilities.\r
3\r
630f67dd 4Copyright (c) 2012 - 2018, Intel Corporation. All rights reserved.<BR>\r
532616bb 5This program and the accompanying materials\r
6are licensed and made available under the terms and conditions of the BSD License\r
7which accompanies this distribution. The full text of the license may be found at\r
8http://opensource.org/licenses/bsd-license.php\r
9\r
10THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12\r
13**/\r
14\r
15#include "InternalCryptLib.h"\r
16\r
17/**\r
18 Retrieves the size, in bytes, of the context buffer required for ARC4 operations.\r
19\r
20 Return zero to indicate this interface is not supported.\r
21\r
22 @retval 0 This interface is not supported.\r
23\r
24\r
25**/\r
26UINTN\r
27EFIAPI\r
28Arc4GetContextSize (\r
29 VOID\r
30 )\r
31{\r
32 ASSERT (FALSE);\r
33 return 0;\r
34}\r
35\r
36/**\r
37 Initializes user-supplied memory as ARC4 context for subsequent use.\r
38\r
39 Return FALSE to indicate this interface is not supported.\r
40\r
41 @param[out] Arc4Context Pointer to ARC4 context being initialized.\r
42 @param[in] Key Pointer to the user-supplied ARC4 key.\r
43 @param[in] KeySize Size of ARC4 key in bytes.\r
44\r
45 @retval FALSE This interface is not supported.\r
46\r
47**/\r
48BOOLEAN\r
49EFIAPI\r
50Arc4Init (\r
51 OUT VOID *Arc4Context,\r
52 IN CONST UINT8 *Key,\r
53 IN UINTN KeySize\r
54 )\r
55{\r
56 ASSERT (FALSE);\r
57 return FALSE;\r
58}\r
59\r
60/**\r
61 Performs ARC4 encryption on a data buffer of the specified size.\r
62\r
63 Return FALSE to indicate this interface is not supported.\r
64\r
65 @param[in, out] Arc4Context Pointer to the ARC4 context.\r
66 @param[in] Input Pointer to the buffer containing the data to be encrypted.\r
67 @param[in] InputSize Size of the Input buffer in bytes.\r
68 @param[out] Output Pointer to a buffer that receives the ARC4 encryption output.\r
69\r
70 @retval FALSE This interface is not supported.\r
71\r
72**/\r
73BOOLEAN\r
74EFIAPI\r
75Arc4Encrypt (\r
76 IN OUT VOID *Arc4Context,\r
77 IN CONST UINT8 *Input,\r
78 IN UINTN InputSize,\r
79 OUT UINT8 *Output\r
80 )\r
630f67dd 81{\r
532616bb 82 ASSERT (FALSE);\r
83 return FALSE;\r
84}\r
85\r
86/**\r
87 Performs ARC4 decryption on a data buffer of the specified size.\r
88\r
89 Return FALSE to indicate this interface is not supported.\r
90\r
91 @param[in, out] Arc4Context Pointer to the ARC4 context.\r
92 @param[in] Input Pointer to the buffer containing the data to be decrypted.\r
93 @param[in] InputSize Size of the Input buffer in bytes.\r
94 @param[out] Output Pointer to a buffer that receives the ARC4 decryption output.\r
95\r
96 @retval FALSE This interface is not supported.\r
97\r
98**/\r
99BOOLEAN\r
100EFIAPI\r
101Arc4Decrypt (\r
102 IN OUT VOID *Arc4Context,\r
103 IN UINT8 *Input,\r
104 IN UINTN InputSize,\r
105 OUT UINT8 *Output\r
106 )\r
107{\r
108 ASSERT (FALSE);\r
109 return FALSE;\r
110}\r
111\r
112/**\r
113 Resets the ARC4 context to the initial state.\r
114\r
115 Return FALSE to indicate this interface is not supported.\r
116\r
117 @param[in, out] Arc4Context Pointer to the ARC4 context.\r
118\r
119 @retval FALSE This interface is not supported.\r
120\r
121**/\r
122BOOLEAN\r
123EFIAPI\r
124Arc4Reset (\r
125 IN OUT VOID *Arc4Context\r
126 )\r
127{\r
128 ASSERT (FALSE);\r
129 return FALSE;\r
130}\r