mirror of
https://github.com/jakcron/nstool
synced 2024-11-15 10:16:42 +00:00
36 lines
783 B
C++
36 lines
783 B
C++
#pragma once
|
|
#include <string>
|
|
#include <fnd/types.h>
|
|
#include <crypto/sha.h>
|
|
#include <fnd/ISerialiseableBinary.h>
|
|
#include <nx/macro.h>
|
|
|
|
namespace nx
|
|
{
|
|
// Also known to the public as IVFC
|
|
namespace hierarchicalintegrity
|
|
{
|
|
static const uint32_t kStructSig = _MAKE_STRUCT_SIGNATURE("IVFC");
|
|
static const uint32_t kRomfsTypeId = 0x20000;
|
|
static const size_t kDefaultLayerNum = 6;
|
|
static const size_t kHeaderAlignLen = 0x20;
|
|
}
|
|
|
|
#pragma pack(push,1)
|
|
struct sHierarchicalIntegrityHeader
|
|
{
|
|
le_uint32_t signature;
|
|
le_uint32_t type_id;
|
|
le_uint32_t master_hash_size;
|
|
le_uint32_t layer_num;
|
|
};
|
|
|
|
struct sHierarchicalIntegrityLayerInfo // sizeof(0x18)
|
|
{
|
|
le_uint64_t offset;
|
|
le_uint64_t size;
|
|
le_uint32_t block_size;
|
|
byte_t reserved[4];
|
|
};
|
|
#pragma pack(pop)
|
|
}
|