mirror of
https://github.com/jakcron/nstool
synced 2024-11-23 05:59:29 +00:00
13 lines
No EOL
370 B
C++
13 lines
No EOL
370 B
C++
#pragma once
|
|
#include <nx/nca.h>
|
|
|
|
namespace nx
|
|
{
|
|
class NcaUtils
|
|
{
|
|
public:
|
|
static inline size_t sectorToOffset(size_t sector_index) { return sector_index * nx::nca::kSectorSize; }
|
|
static void decryptNcaHeader(const byte_t* src, byte_t* dst, const crypto::aes::sAesXts128Key& key);
|
|
static byte_t getMasterKeyRevisionFromKeyGeneration(byte_t key_generation);
|
|
};
|
|
} |