]> git.proxmox.com Git - mirror_edk2.git/blob - MdeModulePkg/Universal/iScsi/Md5.h
ee06fd7e1b65d9c816de7e2a089377d8ed52c61d
[mirror_edk2.git] / MdeModulePkg / Universal / iScsi / Md5.h
1 /*++
2
3 Copyright (c) 2007 Intel Corporation. All rights reserved
4 This software and associated documentation (if any) is furnished
5 under a license and may only be used or copied in accordance
6 with the terms of the license. Except as permitted by such
7 license, no part of this software or documentation may be
8 reproduced, stored in a retrieval system, or transmitted in any
9 form or by any means without the express written consent of
10 Intel Corporation.
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