6#include "HAL/UnrealMemory.h"
24
25
39 uint32* Words = (uint32*)
Key;
40 for (int32 Index = 0; Index <
KeySize / 4; ++Index)
42 if (Words[Index] != 0)
62
63
64
65
66
67
71
72
73
74
75
76
77 static void EncryptData(uint8* Contents, uint64 NumBytes,
const ANSICHAR* Key);
80
81
82
83
84
85
86
87 static void EncryptData(uint8* Contents, uint64 NumBytes,
const uint8* KeyBytes, uint32 NumKeyBytes);
90
91
92
93
94
95
99
100
101
102
103
104
105 static void DecryptData(uint8* Contents, uint64 NumBytes,
const ANSICHAR* Key);
108
109
110
111
112
113
114
115 static void DecryptData(uint8* Contents, uint64 NumBytes,
const uint8* KeyBytes, uint32 NumKeyBytes);
static constexpr int32 KeySize
bool operator==(const FAESKey &Other) const
static void EncryptData(uint8 *Contents, uint64 NumBytes, const uint8 *KeyBytes, uint32 NumKeyBytes)
static void EncryptData(uint8 *Contents, uint64 NumBytes, const FAESKey &Key)
static void DecryptData(uint8 *Contents, uint64 NumBytes, const uint8 *KeyBytes, uint32 NumKeyBytes)
static void DecryptData(uint8 *Contents, uint64 NumBytes, const ANSICHAR *Key)
static constexpr uint32 AESBlockSize
static void EncryptData(uint8 *Contents, uint64 NumBytes, const ANSICHAR *Key)
static void DecryptData(uint8 *Contents, uint64 NumBytes, const FAESKey &Key)
static FORCEINLINE void * Memset(void *Dest, uint8 Char, SIZE_T Count)
static FORCEINLINE int32 Memcmp(const void *Buf1, const void *Buf2, SIZE_T Count)