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