mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-13 10:18:30 +12:00
Add initial ntag and nfc implementation
This commit is contained in:
parent
84e78088fb
commit
1c6b209692
21 changed files with 2927 additions and 47 deletions
31
src/Cafe/IOSU/ccr_nfc/iosu_ccr_nfc.h
Normal file
31
src/Cafe/IOSU/ccr_nfc/iosu_ccr_nfc.h
Normal file
|
@ -0,0 +1,31 @@
|
|||
#pragma once
|
||||
#include "Cafe/IOSU/iosu_types_common.h"
|
||||
|
||||
#define CCR_NFC_ERROR (-0x2F001E)
|
||||
#define CCR_NFC_INVALID_LOCKED_SECRET (-0x2F0029)
|
||||
#define CCR_NFC_INVALID_UNFIXED_INFOS (-0x2F002A)
|
||||
|
||||
namespace iosu
|
||||
{
|
||||
namespace ccr_nfc
|
||||
{
|
||||
struct CCRNFCCryptData
|
||||
{
|
||||
uint32 version;
|
||||
uint32 dataSize;
|
||||
uint32 seedOffset;
|
||||
uint32 keyGenSaltOffset;
|
||||
uint32 uuidOffset;
|
||||
uint32 unfixedInfosOffset;
|
||||
uint32 unfixedInfosSize;
|
||||
uint32 lockedSecretOffset;
|
||||
uint32 lockedSecretSize;
|
||||
uint32 unfixedInfosHmacOffset;
|
||||
uint32 lockedSecretHmacOffset;
|
||||
uint8 data[540];
|
||||
};
|
||||
static_assert(sizeof(CCRNFCCryptData) == 0x248);
|
||||
|
||||
IOSUModule* GetModule();
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue