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