CryptoPkg/TlsLib: rewrite TlsSetCipherList()
[mirror_edk2.git] / CryptoPkg / Library / BaseCryptLibRuntimeCryptProtocol / Hash / CryptMd4Null.c
CommitLineData
532616bb 1/** @file\r
2 MD4 Digest Wrapper Implementation which does not provide real capabilities.\r
3\r
4Copyright (c) 2012, Intel Corporation. All rights reserved.<BR>\r
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 MD4 hash\r
19 operations.\r
20\r
21 Return zero to indicate this interface is not supported.\r
22\r
23 @retval 0 This interface is not supported.\r
24\r
25**/\r
26UINTN\r
27EFIAPI\r
28Md4GetContextSize (\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 pointed by Md4Context as MD4 hash context for\r
38 subsequent use.\r
39\r
40 Return FALSE to indicate this interface is not supported.\r
41\r
42 @param[out] Md4Context Pointer to MD4 context being initialized.\r
43\r
44 @retval FALSE This interface is not supported.\r
45\r
46**/\r
47BOOLEAN\r
48EFIAPI\r
49Md4Init (\r
50 OUT VOID *Md4Context\r
51 )\r
52{\r
53 ASSERT (FALSE);\r
54 return FALSE;\r
55}\r
56\r
57/**\r
58 Makes a copy of an existing MD4 context.\r
59\r
60 Return FALSE to indicate this interface is not supported.\r
61\r
62 @param[in] Md4Context Pointer to MD4 context being copied.\r
63 @param[out] NewMd4Context Pointer to new MD4 context.\r
64\r
65 @retval FALSE This interface is not supported.\r
66\r
67**/\r
68BOOLEAN\r
69EFIAPI\r
70Md4Duplicate (\r
71 IN CONST VOID *Md4Context,\r
72 OUT VOID *NewMd4Context\r
73 )\r
74{\r
75 ASSERT (FALSE);\r
76 return FALSE;\r
77}\r
78\r
79/**\r
80 Digests the input data and updates MD4 context.\r
81\r
82 Return FALSE to indicate this interface is not supported.\r
83\r
84 @param[in, out] Md4Context Pointer to the MD4 context.\r
85 @param[in] Data Pointer to the buffer containing the data to be hashed.\r
86 @param[in] DataSize Size of Data buffer in bytes.\r
87\r
88 @retval FALSE This interface is not supported.\r
89\r
90**/\r
91BOOLEAN\r
92EFIAPI\r
93Md4Update (\r
94 IN OUT VOID *Md4Context,\r
95 IN CONST VOID *Data,\r
96 IN UINTN DataSize\r
97 )\r
98{\r
99 ASSERT (FALSE);\r
100 return FALSE;\r
101}\r
102\r
103/**\r
104 Completes computation of the MD4 digest value.\r
105\r
106 Return FALSE to indicate this interface is not supported. \r
107\r
108 @param[in, out] Md4Context Pointer to the MD4 context.\r
109 @param[out] HashValue Pointer to a buffer that receives the MD4 digest\r
110 value (16 bytes).\r
111\r
112 @retval FALSE This interface is not supported.\r
113\r
114**/\r
115BOOLEAN\r
116EFIAPI\r
117Md4Final (\r
118 IN OUT VOID *Md4Context,\r
119 OUT UINT8 *HashValue\r
120 )\r
121{\r
122 ASSERT (FALSE);\r
123 return FALSE;\r
124}\r