mirror of
https://github.com/jakcron/nstool
synced 2024-11-23 05:59:29 +00:00
16 lines
No EOL
362 B
C++
16 lines
No EOL
362 B
C++
#pragma once
|
|
#include <nn/hac/define/gc.h>
|
|
|
|
namespace nn
|
|
{
|
|
namespace hac
|
|
{
|
|
class GameCardUtils
|
|
{
|
|
public:
|
|
static inline uint64_t blockToAddr(uint32_t block) { return ((uint64_t)block) << 9; }
|
|
static void getXciHeaderAesIv(const nn::hac::sGcHeader* hdr, byte_t* iv);
|
|
static void decryptXciHeader(const byte_t* src, byte_t* dst, const byte_t* key);
|
|
};
|
|
}
|
|
} |