mirror of
https://github.com/jakcron/nstool.git
synced 2024-12-24 11:45:28 +00:00
27 lines
485 B
C++
27 lines
485 B
C++
#pragma once
|
|
#include <fnd/types.h>
|
|
#include <crypto/sha.h>
|
|
|
|
namespace nx
|
|
{
|
|
namespace hierarchicalsha256
|
|
{
|
|
static const size_t kDefaultLayerNum = 2;
|
|
static const size_t kMaxLayerNum = 2;
|
|
}
|
|
|
|
#pragma pack(push,1)
|
|
struct sHierarchicalSha256Header
|
|
{
|
|
crypto::sha::sSha256Hash master_hash;
|
|
le_uint32_t hash_block_size;
|
|
le_uint32_t layer_num;
|
|
struct sLayer
|
|
{
|
|
le_uint64_t offset;
|
|
le_uint64_t size;
|
|
} layer[hierarchicalsha256::kMaxLayerNum];
|
|
};
|
|
#pragma pack(pop)
|
|
}
|