UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
SecureHash.h File Reference
#include "Containers/Array.h"
#include "Containers/Map.h"
#include "Containers/StringConv.h"
#include "Containers/StringFwd.h"
#include "Containers/StringView.h"
#include "Containers/UnrealString.h"
#include "CoreTypes.h"
#include "HAL/PlatformCrt.h"
#include "HAL/PreprocessorHelpers.h"
#include "HAL/UnrealMemory.h"
#include "Misc/AssertionMacros.h"
#include "Misc/CString.h"
#include "Misc/Guid.h"
#include "Serialization/Archive.h"
#include "Serialization/BufferReader.h"
#include "Serialization/MemoryLayout.h"
#include "Stats/Stats.h"
#include "String/BytesToHex.h"
#include "String/HexToBytes.h"
#include "Templates/UnrealTemplate.h"

Go to the source code of this file.

Classes

class  FMD5
 !it would be cool if these were implemented as subclasses of More...
 
struct  FMD5Hash
 
class  FSHAHash
 
class  FSHA1
 
class  FAsyncSHAVerify
 
class  FBufferReaderWithSHA
 

Namespaces

namespace  Freeze
 

Functions

CORE_API void Freeze::IntrinsicToString (const FSHAHash &Object, const FTypeLayoutDesc &TypeDesc, const FPlatformTypeLayoutParameters &LayoutParams, FMemoryToStringContext &OutContext)
 

MD5 functions

#define HASHES_SHA_DIVIDER   "+++"
 
FGuid MD5HashToGuid (const FMD5Hash &Hash)
 
 DECLARE_INTRINSIC_TYPE_LAYOUT (FSHAHash)
 
CORE_API void appOnFailSHAVerification (const TCHAR *FailedPathname, bool bFailedDueToMissingHash)
 

Macro Definition Documentation

◆ HASHES_SHA_DIVIDER

#define HASHES_SHA_DIVIDER   "+++"

This divider string is beween full file hashes and script hashes

Function Documentation

◆ appOnFailSHAVerification()

CORE_API void appOnFailSHAVerification ( const TCHAR FailedPathname,
bool  bFailedDueToMissingHash 
)

Callback that is called if the asynchronous SHA verification fails This will be called from a pooled thread.

NOTE: Each platform is expected to implement this!

Parameters
FailedPathnamePathname of file that failed to verify
bFailedDueToMissingHashtrue if the reason for the failure was that the hash was missing, and that was set as being an error condition

◆ DECLARE_INTRINSIC_TYPE_LAYOUT()

DECLARE_INTRINSIC_TYPE_LAYOUT ( FSHAHash  )

◆ MD5HashToGuid()

FGuid MD5HashToGuid ( const FMD5Hash Hash)
inline

Construct a FGuid from a MD5Hash. This means that calling ToString on the resulting FGuid will not result in the expected MD5 hash string, due to how FGuid outputs the string; LexToString should be used in that case.