Navigation
API > API/Runtime > API/Runtime/Core
| Name | FSHA1 |
| Type | class |
| Header File | /Engine/Source/Runtime/Core/Public/Misc/SecureHash.h |
| Include Path | #include "Misc/SecureHash.h" |
Syntax
class FSHA1
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FSHA1() |
Constructor and Destructor. | Misc/SecureHash.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~FSHA1() |
Misc/SecureHash.h |
Enums
Public
| Name | Remarks |
|---|---|
| FSHA1 |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FullFileSHAHashMap | TMap< FString, uint8 * > | Global map of filename to hash value, filled out in InitializeFileHashesFromBuffer | Misc/SecureHash.h |
| ScriptSHAHashMap | TMap< FString, uint8 * > | Global map of filename to hash value, but for script-only SHA hashes | Misc/SecureHash.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| __reserved1 | uint32 | Misc/SecureHash.h | ||
| __reserved2 | uint32 | Misc/SecureHash.h | ||
| m_buffer | uint8 | Misc/SecureHash.h | ||
| m_count | uint64 | Misc/SecureHash.h | ||
| m_digest | uint8 | Misc/SecureHash.h | ||
| m_state | uint32 | Misc/SecureHash.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Final() |
Finalize hash and report. | Misc/SecureHash.h | |
FSHAHash Finalize() |
Finalize hash and return it. | Misc/SecureHash.h | |
void GetHash
(
uint8* puDest |
Report functions: as pre-formatted and raw data. | Misc/SecureHash.h | |
void Reset() |
Misc/SecureHash.h | ||
void Update
(
const Type& InData |
Update with POD data. | Misc/SecureHash.h | |
void Update
(
const uint8* data, |
Update the hash value. | Misc/SecureHash.h | |
void UpdateWithString
(
const TCHAR* data, |
Update the hash value with string. | Misc/SecureHash.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static bool GetFileSHAHash
(
const TCHAR* Pathname, |
Gets the stored SHA hash from the platform, if it exists. | Misc/SecureHash.h | |
static FSHAHash HashBuffer
(
const void* Data, |
Calculate the hash on a single block and return it | Misc/SecureHash.h | |
static void HashBuffer
(
const void* Data, |
Calculate the hash on a single block and return it | Misc/SecureHash.h | |
static void HMACBuffer
(
const void* Key, |
Generate the HMAC (Hash-based Message Authentication Code) for a block of data. | Misc/SecureHash.h | |
static void InitializeFileHashesFromBuffer
(
uint8* Buffer, |
Shared hashes.sha reading code (each platform gets a buffer to the data, then passes it to this function for processing) | Misc/SecureHash.h |