]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Universal/Network/IScsiDxe/Md5.h
Add missing file in INF file.
[mirror_edk2.git] / MdeModulePkg / Universal / Network / IScsiDxe / Md5.h
CommitLineData
6a690e23 1/*++\r
2\r
9cb8724d 3Copyright (c) 2004 - 2008, Intel Corporation\r
7a444476 4All rights reserved. This program and the accompanying materials\r
5are licensed and made available under the terms and conditions of the BSD License\r
6which accompanies this distribution. The full text of the license may be found at\r
7http://opensource.org/licenses/bsd-license.php\r
8\r
9THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
10WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
6a690e23 11\r
12Module Name:\r
13\r
14 Md5.h\r
15\r
16Abstract:\r
17\r
18 Header file for Md5\r
19\r
20--*/\r
21\r
22#ifndef _MD5_H_\r
23#define _MD5_H_\r
24\r
9cb8724d 25#include <Uefi/UefiBaseType.h>\r
6a690e23 26#include <Library/BaseLib.h>\r
27#include <Library/NetLib.h>\r
28\r
29#define MD5_HASHSIZE 16\r
30\r
31typedef struct _MD5_CTX {\r
32 EFI_STATUS Status;\r
33 UINT64 Length;\r
34 UINT32 States[MD5_HASHSIZE / sizeof (UINT32)];\r
35 UINT8 M[64];\r
36 UINTN Count;\r
37} MD5_CTX;\r
38\r
39EFI_STATUS\r
40MD5Init (\r
41 IN MD5_CTX *Md5Ctx\r
42 )\r
43/*++\r
44\r
45Routine Description:\r
46\r
47 GC_TODO: Add function description\r
48\r
49Arguments:\r
50\r
51 Md5Ctx - GC_TODO: add argument description\r
52\r
53Returns:\r
54\r
55 EFI_SUCCESS - GC_TODO: Add description for return value\r
56\r
57--*/\r
58;\r
59\r
60EFI_STATUS\r
61MD5Update (\r
62 IN MD5_CTX *Md5Ctx,\r
63 IN VOID *Data,\r
64 IN UINTN DataLen\r
65 )\r
66/*++\r
67\r
68Routine Description:\r
69\r
70 GC_TODO: Add function description\r
71\r
72Arguments:\r
73\r
74 Md5Ctx - GC_TODO: add argument description\r
75 Data - GC_TODO: add argument description\r
76 DataLen - GC_TODO: add argument description\r
77\r
78Returns:\r
79\r
80 EFI_SUCCESS - GC_TODO: Add description for return value\r
81\r
82--*/\r
83;\r
84\r
85EFI_STATUS\r
86MD5Final (\r
87 IN MD5_CTX *Md5Ctx,\r
88 OUT UINT8 *HashVal\r
89 )\r
90/*++\r
91\r
92Routine Description:\r
93\r
94 GC_TODO: Add function description\r
95\r
96Arguments:\r
97\r
98 Md5Ctx - GC_TODO: add argument description\r
99 HashVal - GC_TODO: add argument description\r
100\r
101Returns:\r
102\r
103 EFI_SUCCESS - GC_TODO: Add description for return value\r
104\r
105--*/\r
106;\r
107\r
108#endif // _MD5_H\r