nstool/lib/libhac/include/nn/hac/XciUtils.h
2018-08-07 15:17:51 +08:00

16 lines
352 B
C++

#pragma once
#include <nn/hac/xci.h>
namespace nn
{
namespace hac
{
class XciUtils
{
public:
static inline uint64_t blockToAddr(uint32_t block) { return ((uint64_t)block) << 9; }
static void getXciHeaderAesIv(const nn::hac::sXciHeader* hdr, byte_t* iv);
static void decryptXciHeader(const byte_t* src, byte_t* dst, const byte_t* key);
};
}
}