mirror of
https://github.com/jakcron/nstool.git
synced 2024-12-23 19:25:28 +00:00
13 lines
325 B
C++
13 lines
325 B
C++
#pragma once
|
|
#include <nx/xci.h>
|
|
|
|
namespace nx
|
|
{
|
|
class XciUtils
|
|
{
|
|
public:
|
|
static inline uint64_t blockToAddr(uint32_t block) { return ((uint64_t)block) << 9; }
|
|
static void getXciHeaderAesIv(const nx::sXciHeader* hdr, byte_t* iv);
|
|
static void decryptXciHeader(const byte_t* src, byte_t* dst, const byte_t* key);
|
|
};
|
|
} |