#include <SecureHash.h>
|
static void | HashBuffer (const void *Data, uint64 DataSize, uint8 *OutHash) |
|
static FSHAHash | HashBuffer (const void *Data, uint64 DataSize) |
|
static void | HMACBuffer (const void *Key, uint32 KeySize, const void *Data, uint64 DataSize, uint8 *OutHash) |
|
static void | InitializeFileHashesFromBuffer (uint8 *Buffer, uint64 BufferSize, bool bDuplicateKeyMemory=false) |
|
static bool | GetFileSHAHash (const TCHAR *Pathname, uint8 Hash[20], bool bIsFullPackageHash=true) |
|
Definition at line 308 of file SecureHash.h.
◆ anonymous enum
◆ FSHA1()
◆ ~FSHA1()
◆ Final()
◆ Finalize()
◆ GetFileSHAHash()
Gets the stored SHA hash from the platform, if it exists. This function must be able to be called from any thread.
- Parameters
-
Pathname | Pathname to the file to get the SHA for |
Hash | 20 byte array that receives the hash |
bIsFullPackageHash | true if we are looking for a full package hash, instead of a script code only hash |
- Returns
- true if the hash was found, false otherwise
◆ GetHash()
◆ HashBuffer() [1/2]
Calculate the hash on a single block and return it
- Parameters
-
Data | Input data to hash |
DataSize | Size of the Data block |
- Returns
- Resulting digest
Definition at line 363 of file SecureHash.h.
◆ HashBuffer() [2/2]
Calculate the hash on a single block and return it
- Parameters
-
Data | Input data to hash |
DataSize | Size of the Data block |
OutHash | Resulting hash value (20 byte buffer) |
◆ HMACBuffer()
◆ InitializeFileHashesFromBuffer()
Shared hashes.sha reading code (each platform gets a buffer to the data, then passes it to this function for processing)
- Parameters
-
Buffer | Contents of hashes.sha (probably loaded from an a section in the executable) |
BufferSize | Size of Buffer |
bDuplicateKeyMemory | If Buffer is not always loaded, pass true so that the 20 byte hashes are duplicated |
◆ Reset()
◆ Transform()
◆ Update()
◆ UpdateWithString()
◆ __reserved1
◆ __reserved2
◆ FullFileSHAHashMap
Global map of filename to hash value, filled out in InitializeFileHashesFromBuffer
Definition at line 409 of file SecureHash.h.
◆ m_buffer
uint8 FSHA1::m_buffer[64] |
◆ m_count
◆ m_digest
uint8 FSHA1::m_digest[20] |
◆ m_state
◆ ScriptSHAHashMap
Global map of filename to hash value, but for script-only SHA hashes
Definition at line 412 of file SecureHash.h.
The documentation for this class was generated from the following file:
- C:/Users/lachl/Downloads/ArkServerAPI_NEW/ASA/AsaApi/AsaApi/Core/Public/API/UE/Misc/SecureHash.h