Navigation
API > API/Runtime > API/Runtime/PakFile
Structure which describes the content of the pak .sig files
| Name | FPakSignatureFile |
| Type | struct |
| Header File | /Engine/Source/Runtime/PakFile/Public/IPlatformFilePak.h |
| Include Path | #include "IPlatformFilePak.h" |
Syntax
struct FPakSignatureFile
Enums
Public
| Name | Remarks |
|---|---|
| EVersion |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| Magic | const uint32 | Magic number that tells us we're dealing with the new format sig files. | IPlatformFilePak.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ChunkHashes | TArray< TPakChunkHash > | CRCs of each contiguous 64kb block of the pak file. | IPlatformFilePak.h | |
| DecryptedHash | FSHAHash | SHA1 hash of the chunk CRC data. Only valid after calling DecryptSignatureAndValidate. | IPlatformFilePak.h | |
| EncryptedHash | TArray< uint8 > | RSA encrypted hash. | IPlatformFilePak.h | |
| SignatureData | TArray< uint8 > | The actual array of data that was encrypted in the RSA block. Contains the chunk table hash and also other custom data related to the pak file. | IPlatformFilePak.h | |
| Version | EVersion | Sig file version. Set to Legacy if the sig file is of an old version. | IPlatformFilePak.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FSHAHash ComputeCurrentPrincipalHash() |
Helper function for computing the SHA1 hash of the current chunk CRC array | IPlatformFilePak.h | |
bool DecryptSignatureAndValidate
(
const FRSAKeyHandle InKey, |
Decrypt the chunk CRCs hash and validate that it matches the current one | IPlatformFilePak.h | |
void Serialize
(
FArchive& Ar |
Serialize/deserialize this object to/from an FArchive | IPlatformFilePak.h | |
void SetChunkHashesAndSign
(
const TArray< TPakChunkHash >& InChunkHashes, |
Initialize and hash the CRC list then use the provided private key to encrypt the hash | IPlatformFilePak.h |
Deprecated Functions
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UE_DEPRECATED
(
"5.1", |
IPlatformFilePak.h |