FSHA1

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Misc/SecureHash.h

Include

#include "Misc/SecureHash.h"

Syntax

class FSHA1

Variables

Name Description

Public variable

uint32[1]

 

__reserved1

Public variable

uint32[3]

 

__reserved2

Public variable

uint8[64]

 

m_buffer

Public variable

uint32[2]

 

m_count

Public variable

uint8[20]

 

m_digest

Public variable

uint32[5]

 

m_state

Constructors

Name Description

Public function

FSHA1()

Constructor and Destructor.

Destructors

Name Description

Public function

~FSHA1()

Functions

Name Description

Public function

void

 

Final()

Finalize hash and report.

Public function Static

bool

 

GetFileSHAHash

(
    const TCHAR* Pathname,
    uint8 Hash,
    bool bIsFullPackageHash
)

Gets the stored SHA hash from the platform, if it exists.

Public function

void

 

GetHash

(
    uint8* puDest
)

Report functions: as pre-formatted and raw data.

Public function Static

void

 

HashBuffer

(
    const void* Data,
    uint64 DataSize,
    uint8* OutHash
)

Calculate the hash on a single block and return it

Public function Static

void

 

HMACBuffer

(
    const void* Key,
    uint32 KeySize,
    const void* Data,
    uint64 DataSize,
    uint8* OutHash
)

Generate the HMAC (Hash-based Message Authentication Code) for a block of data.

Public function Static

void

 

InitializeFileHashesFromBuffer

(
    uint8* Buffer,
    uint64 BufferSize,
    bool bDuplicateKeyMemory
)

Shared hashes.sha reading code (each platform gets a buffer to the data, then passes it to this function for processing)

Public function

void

 

Reset()

Public function

void

 

Update

(
    const uint8* data,
    uint64 len
)

Update the hash value.

Public function

void

 

UpdateWithString

(
    const TCHAR* data,
    uint32 len
)

Update the hash value with string.

Constants

Name

Description

DigestSize

FullFileSHAHashMap

Global map of filename to hash value, filled out in InitializeFileHashesFromBuffer

ScriptSHAHashMap

Global map of filename to hash value, but for script-only SHA hashes

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss