nstool/lib/libhac/include/nn/hac/ContentArchiveUtils.h

17 lines
523 B
C
Raw Permalink Normal View History

2018-10-27 07:06:33 +00:00
#pragma once
#include <nn/hac/define/nca.h>
namespace nn
{
namespace hac
{
class ContentArchiveUtils
{
public:
static inline size_t sectorToOffset(size_t sector_index) { return sector_index * nn::hac::nca::kSectorSize; }
static void decryptContentArchiveHeader(const byte_t* src, byte_t* dst, const fnd::aes::sAesXts128Key& key);
static byte_t getMasterKeyRevisionFromKeyGeneration(byte_t key_generation);
static void getNcaPartitionAesCtr(const nn::hac::sNcaFsHeader* hdr, byte_t* ctr);
};
}
2018-04-15 02:40:22 +00:00
}