]> git.proxmox.com Git - mirror_edk2.git/blame - CryptoPkg/Library/BaseCryptLib/Hash/CryptMd4Null.c
CryptoPkg/CryptoDxe: Add function to indicate the deprecated algorithm
[mirror_edk2.git] / CryptoPkg / Library / BaseCryptLib / Hash / CryptMd4Null.c
CommitLineData
532616bb 1/** @file\r
2 MD4 Digest Wrapper Implementation which does not provide real capabilities.\r
3\r
630f67dd 4Copyright (c) 2012 - 2018, Intel Corporation. All rights reserved.<BR>\r
2009f6b4 5SPDX-License-Identifier: BSD-2-Clause-Patent\r
532616bb 6\r
7**/\r
8\r
9#include "InternalCryptLib.h"\r
10\r
11/**\r
12 Retrieves the size, in bytes, of the context buffer required for MD4 hash\r
13 operations.\r
14\r
15 Return zero to indicate this interface is not supported.\r
16\r
17 @retval 0 This interface is not supported.\r
18\r
19**/\r
20UINTN\r
21EFIAPI\r
22Md4GetContextSize (\r
23 VOID\r
24 )\r
25{\r
26 ASSERT (FALSE);\r
27 return 0;\r
28}\r
29\r
30/**\r
31 Initializes user-supplied memory pointed by Md4Context as MD4 hash context for\r
32 subsequent use.\r
33\r
34 Return FALSE to indicate this interface is not supported.\r
35\r
36 @param[out] Md4Context Pointer to MD4 context being initialized.\r
37\r
38 @retval FALSE This interface is not supported.\r
39\r
40**/\r
41BOOLEAN\r
42EFIAPI\r
43Md4Init (\r
44 OUT VOID *Md4Context\r
45 )\r
46{\r
47 ASSERT (FALSE);\r
48 return FALSE;\r
49}\r
50\r
51/**\r
52 Makes a copy of an existing MD4 context.\r
53\r
54 Return FALSE to indicate this interface is not supported.\r
55\r
56 @param[in] Md4Context Pointer to MD4 context being copied.\r
57 @param[out] NewMd4Context Pointer to new MD4 context.\r
58\r
59 @retval FALSE This interface is not supported.\r
60\r
61**/\r
62BOOLEAN\r
63EFIAPI\r
64Md4Duplicate (\r
65 IN CONST VOID *Md4Context,\r
66 OUT VOID *NewMd4Context\r
67 )\r
68{\r
69 ASSERT (FALSE);\r
70 return FALSE;\r
71}\r
72\r
73/**\r
74 Digests the input data and updates MD4 context.\r
75\r
76 Return FALSE to indicate this interface is not supported.\r
77\r
78 @param[in, out] Md4Context Pointer to the MD4 context.\r
79 @param[in] Data Pointer to the buffer containing the data to be hashed.\r
80 @param[in] DataSize Size of Data buffer in bytes.\r
81\r
82 @retval FALSE This interface is not supported.\r
83\r
84**/\r
85BOOLEAN\r
86EFIAPI\r
87Md4Update (\r
88 IN OUT VOID *Md4Context,\r
89 IN CONST VOID *Data,\r
90 IN UINTN DataSize\r
91 )\r
92{\r
93 ASSERT (FALSE);\r
94 return FALSE;\r
95}\r
96\r
97/**\r
98 Completes computation of the MD4 digest value.\r
99\r
630f67dd 100 Return FALSE to indicate this interface is not supported.\r
532616bb 101\r
102 @param[in, out] Md4Context Pointer to the MD4 context.\r
103 @param[out] HashValue Pointer to a buffer that receives the MD4 digest\r
104 value (16 bytes).\r
105\r
106 @retval FALSE This interface is not supported.\r
107\r
108**/\r
109BOOLEAN\r
110EFIAPI\r
111Md4Final (\r
112 IN OUT VOID *Md4Context,\r
113 OUT UINT8 *HashValue\r
114 )\r
115{\r
116 ASSERT (FALSE);\r
117 return FALSE;\r
118}\r
b7d1ba0a
QL
119\r
120/**\r
121 Computes the MD4 message digest of a input data buffer.\r
122\r
123 Return FALSE to indicate this interface is not supported.\r
124\r
125 @param[in] Data Pointer to the buffer containing the data to be hashed.\r
126 @param[in] DataSize Size of Data buffer in bytes.\r
127 @param[out] HashValue Pointer to a buffer that receives the MD4 digest\r
128 value (16 bytes).\r
129\r
130 @retval FALSE This interface is not supported.\r
131\r
132**/\r
133BOOLEAN\r
134EFIAPI\r
135Md4HashAll (\r
136 IN CONST VOID *Data,\r
137 IN UINTN DataSize,\r
138 OUT UINT8 *HashValue\r
139 )\r
140{\r
141 ASSERT (FALSE);\r
142 return FALSE;\r
143}\r