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