LeviLamina
Loading...
Searching...
No Matches
HMAC.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/crypto/hash/HashType.h"
7
8// auto generated forward declare list
9// clang-format off
10namespace Crypto::Hash { class IHash; }
11// clang-format on
12
13namespace Crypto::Hash {
14
15class HMAC {
16public:
17 // member variables
18 // NOLINTBEGIN
19 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::Crypto::Hash::IHash>> mHash;
20 ::ll::TypedStorage<8, 32, ::std::string> mKey;
21 ::ll::TypedStorage<4, 4, int> mResultSize;
22 // NOLINTEND
23
24public:
25 // prevent constructor by default
26 HMAC();
27
28public:
29 // member functions
30 // NOLINTBEGIN
31 MCAPI HMAC(::Crypto::Hash::HashType type, ::std::string const& key, int resultSize);
32
33 MCAPI void signAndAppend(::std::string const& data, ::std::string& out, uint64 counter);
34 // NOLINTEND
35
36public:
37 // constructor thunks
38 // NOLINTBEGIN
39 MCAPI void* $ctor(::Crypto::Hash::HashType type, ::std::string const& key, int resultSize);
40 // NOLINTEND
41};
42
43} // namespace Crypto::Hash
Definition HMAC.h:15