TianoCore EDK2 master
Loading...
Searching...
No Matches
MockHash2.h
Go to the documentation of this file.
1
8#ifndef MOCK_HASH2_H_
9#define MOCK_HASH2_H_
10
13
14extern "C" {
15 #include <Uefi.h>
16 #include <Protocol/Hash2.h>
17}
18
19struct MockHash2 {
20 MOCK_INTERFACE_DECLARATION (MockHash2);
21
22 MOCK_FUNCTION_DECLARATION (
24 GetHashSize,
26 IN CONST EFI_GUID *HashAlgorithm,
27 OUT UINTN *HashSize)
28 );
29
30 MOCK_FUNCTION_DECLARATION (
32 Hash,
34 IN CONST EFI_GUID *HashAlgorithm,
35 IN CONST UINT8 *Message,
36 IN UINTN MessageSize,
38 );
39
40 MOCK_FUNCTION_DECLARATION (
42 HashInit,
44 IN CONST EFI_GUID *HashAlgorithm)
45 );
46
47 MOCK_FUNCTION_DECLARATION (
51 IN CONST UINT8 *Message,
52 IN UINTN MessageSize)
53 );
54
55 MOCK_FUNCTION_DECLARATION (
57 HashFinal,
60 );
61};
62
63extern "C" {
64 extern EFI_HASH2_PROTOCOL *gHash2Protocol;
65}
66
67#endif // MOCK_HASH2_H_
UINT64 UINTN
EFI_STATUS EFIAPI HashUpdate(IN HASH_HANDLE HashHandle, IN VOID *DataToHash, IN UINTN DataToHashLen)
Definition: HashLibTdx.c:69
#define CONST
Definition: Base.h:259
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
Definition: Base.h:213