Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
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 "Stats/Stats2.h"
#include "String/BytesToHex.h"
#include "String/HexToBytes.h"
#include "Templates/UnrealTemplate.h"
+ Include dependency graph for SecureHash.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

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

Namespaces

namespace  Freeze
 

Functions

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)
 
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

Definition at line 224 of file SecureHash.h.

Function Documentation

◆ appOnFailSHAVerification()

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.

Definition at line 205 of file SecureHash.h.

+ Here is the call graph for this function: