]> git.proxmox.com Git - mirror_edk2.git/blame - CryptoPkg/Library/BaseCryptLibNull/Hmac/CryptHmacMd5Null.c
CryptoPkg/OpensslLib: Remove the Aes Ecb file in the OpensslLib
[mirror_edk2.git] / CryptoPkg / Library / BaseCryptLibNull / Hmac / CryptHmacMd5Null.c
CommitLineData
d95de082
SB
1/** @file\r
2 HMAC-MD5 Wrapper Implementation which does not provide real capabilities.\r
3\r
9a1f14ad 4Copyright (c) 2012 - 2020, Intel Corporation. All rights reserved.<BR>\r
d95de082
SB
5SPDX-License-Identifier: BSD-2-Clause-Patent\r
6\r
7**/\r
8\r
9#include "InternalCryptLib.h"\r
10\r
d95de082
SB
11/**\r
12 Allocates and initializes one HMAC_CTX context for subsequent HMAC-MD5 use.\r
13\r
14 Return NULL to indicate this interface is not supported.\r
15\r
16 @retval NULL This interface is not supported.\r
17\r
18**/\r
19VOID *\r
20EFIAPI\r
21HmacMd5New (\r
22 VOID\r
23 )\r
24{\r
25 ASSERT (FALSE);\r
26 return NULL;\r
27}\r
28\r
29/**\r
30 Release the specified HMAC_CTX context.\r
31\r
32 This function will do nothing.\r
33\r
34 @param[in] HmacMd5Ctx Pointer to the HMAC_CTX context to be released.\r
35\r
36**/\r
37VOID\r
38EFIAPI\r
39HmacMd5Free (\r
40 IN VOID *HmacMd5Ctx\r
41 )\r
42{\r
43 ASSERT (FALSE);\r
44 return;\r
45}\r
46\r
47/**\r
a23fdff6
JW
48 Set user-supplied key for subsequent use. It must be done before any\r
49 calling to HmacMd5Update().\r
d95de082
SB
50\r
51 Return FALSE to indicate this interface is not supported.\r
52\r
a23fdff6 53 @param[out] HmacMd5Context Pointer to HMAC-MD5 context.\r
d95de082
SB
54 @param[in] Key Pointer to the user-supplied key.\r
55 @param[in] KeySize Key size in bytes.\r
56\r
57 @retval FALSE This interface is not supported.\r
58\r
59**/\r
60BOOLEAN\r
61EFIAPI\r
a23fdff6 62HmacMd5SetKey (\r
d95de082
SB
63 OUT VOID *HmacMd5Context,\r
64 IN CONST UINT8 *Key,\r
65 IN UINTN KeySize\r
66 )\r
67{\r
68 ASSERT (FALSE);\r
69 return FALSE;\r
70}\r
71\r
72/**\r
73 Makes a copy of an existing HMAC-MD5 context.\r
74\r
75 Return FALSE to indicate this interface is not supported.\r
76\r
77 @param[in] HmacMd5Context Pointer to HMAC-MD5 context being copied.\r
78 @param[out] NewHmacMd5Context Pointer to new HMAC-MD5 context.\r
79\r
80 @retval FALSE This interface is not supported.\r
81\r
82**/\r
83BOOLEAN\r
84EFIAPI\r
85HmacMd5Duplicate (\r
86 IN CONST VOID *HmacMd5Context,\r
87 OUT VOID *NewHmacMd5Context\r
88 )\r
89{\r
90 ASSERT (FALSE);\r
91 return FALSE;\r
92}\r
93\r
94/**\r
95 Digests the input data and updates HMAC-MD5 context.\r
96\r
97 Return FALSE to indicate this interface is not supported.\r
98\r
99 @param[in, out] HmacMd5Context Pointer to the HMAC-MD5 context.\r
100 @param[in] Data Pointer to the buffer containing the data to be digested.\r
101 @param[in] DataSize Size of Data buffer in bytes.\r
102\r
103 @retval FALSE This interface is not supported.\r
104\r
105**/\r
106BOOLEAN\r
107EFIAPI\r
108HmacMd5Update (\r
109 IN OUT VOID *HmacMd5Context,\r
110 IN CONST VOID *Data,\r
111 IN UINTN DataSize\r
112 )\r
113{\r
114 ASSERT (FALSE);\r
115 return FALSE;\r
116}\r
117\r
118/**\r
119 Completes computation of the HMAC-MD5 digest value.\r
120\r
121 Return FALSE to indicate this interface is not supported.\r
122\r
123 @param[in, out] HmacMd5Context Pointer to the HMAC-MD5 context.\r
124 @param[out] HmacValue Pointer to a buffer that receives the HMAC-MD5 digest\r
125 value (16 bytes).\r
126\r
127 @retval FALSE This interface is not supported.\r
128\r
129**/\r
130BOOLEAN\r
131EFIAPI\r
132HmacMd5Final (\r
133 IN OUT VOID *HmacMd5Context,\r
134 OUT UINT8 *HmacValue\r
135 )\r
136{\r
137 ASSERT (FALSE);\r
138 return FALSE;\r
139}\r