mirror of
https://github.com/switchbrew/libnx.git
synced 2025-07-04 10:32:15 +02:00
Added more cal structs
This commit is contained in:
parent
e34c650103
commit
acb6d7fc7d
@ -263,32 +263,64 @@ typedef struct {
|
|||||||
} SetSysHomeMenuScheme;
|
} SetSysHomeMenuScheme;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
u32 size; ///< Size of the data.
|
u8 offset[0x6];
|
||||||
} SetCalContainer;
|
} SetCalAccelerometerOffset;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
SetCalContainer container; ///< \ref SetCalContainer.
|
u8 scale[0x6];
|
||||||
u8 key[0x130];
|
} SetCalAccelerometerScale;
|
||||||
} SetCalSslKey;
|
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
u32 offset; ///< Relative to current position.
|
u8 cert[0x70];
|
||||||
u8 cert[0x800];
|
} SetCalAmiiboEcdsaCertificate;
|
||||||
} SetCalSslCertificate;
|
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
SetCalContainer container; ///< \ref SetCalContainer.
|
u8 cert[0x20];
|
||||||
u8 key[0x130];
|
} SetCalAmiiboEcqvBlsCertificate;
|
||||||
} SetCalGameCardKey;
|
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
u8 cert[0x400];
|
u8 key[0x44];
|
||||||
} SetCalGameCardCertificate;
|
} SetCalAmiiboEcqvBlsKey;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
u8 key[0x50];
|
u8 cert[0x90];
|
||||||
u32 pad; ///< Used on fw 5.0.0+
|
} SetCalAmiiboEcqvBlsRootCertificate;
|
||||||
} SetCalEccB233DeviceKey;
|
|
||||||
|
typedef struct {
|
||||||
|
u8 cert[0x14];
|
||||||
|
} SetCalAmiiboEcqvCertificate;
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
u8 key[0x54];
|
||||||
|
} SetCalAmiiboKey;
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
u8 calibration[0x9];
|
||||||
|
} SetCalAnalogStickFactoryCalibration;
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
u8 parameter[0x12];
|
||||||
|
} SetCalAnalogStickModelParameter;
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
u8 battery_lot[0x18];
|
||||||
|
} SetCalBatteryLot;
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
u8 bd_addr[0x6];
|
||||||
|
} SetCalBdAddress;
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
u8 cfgId1[0x1E];
|
||||||
|
} SetCalConfigurationId1;
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
u8 offset[0x6];
|
||||||
|
} SetCalConsoleSixAxisSensorHorizontalOffset;
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
u32 code[0x4];
|
||||||
|
} SetCalCountryCode;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
u32 offset; ///< Relative to current position.
|
u32 offset; ///< Relative to current position.
|
||||||
@ -296,15 +328,61 @@ typedef struct {
|
|||||||
} SetCalEccB233DeviceCertificate;
|
} SetCalEccB233DeviceCertificate;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
SetCalContainer container; ///< \ref SetCalContainer.
|
u8 key[0x58];
|
||||||
u8 key[0x240];
|
} SetCalEccB233DeviceKey;
|
||||||
} SetCalRsa2048DeviceKey;
|
|
||||||
|
typedef struct {
|
||||||
|
u8 cert[0x400];
|
||||||
|
} SetCalGameCardCertificate;
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
u32 size; ///< Size of the entire key.
|
||||||
|
u8 key[0x130];
|
||||||
|
} SetCalGameCardKey;
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
u8 offset[0x6];
|
||||||
|
} SetCalGyroscopeOffset;
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
u8 scale[0x6];
|
||||||
|
} SetCalGyroscopeScale;
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
u8 addr[0x6];
|
||||||
|
} SetCalMacAddress;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
u32 offset; ///< Relative to current position.
|
u32 offset; ///< Relative to current position.
|
||||||
u8 cert[0x23C];
|
u8 cert[0x23C];
|
||||||
} SetCalRsa2048DeviceCertificate;
|
} SetCalRsa2048DeviceCertificate;
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
size_t size; ///< Size of the entire key.
|
||||||
|
u8 key[0x240];
|
||||||
|
} SetCalRsa2048DeviceKey;
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
u8 number[0x18];
|
||||||
|
} SetCalSerialNumber;
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
u8 parameter[0x5A];
|
||||||
|
} SetCalSpeakerParameter;
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
u32 size; ///< Size of the certificate data.
|
||||||
|
u8 cert[0x800];
|
||||||
|
} SetCalSslCertificate;
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
size_t size; ///< Size of the entire key.
|
||||||
|
u8 key[0x130];
|
||||||
|
} SetCalSslKey;
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
u32 code;
|
||||||
|
} SetCalRegionCode;
|
||||||
|
|
||||||
/// Initialize set.
|
/// Initialize set.
|
||||||
Result setInitialize(void);
|
Result setInitialize(void);
|
||||||
@ -954,7 +1032,7 @@ Result setcalGetSslCertificate(SetCalSslCertificate *out);
|
|||||||
/// Gets GameCardKey of size 0x134.
|
/// Gets GameCardKey of size 0x134.
|
||||||
Result setcalGetGameCardKey(SetCalGameCardKey *out);
|
Result setcalGetGameCardKey(SetCalGameCardKey *out);
|
||||||
|
|
||||||
/// Gets GameCardCertificate of size 0x404.
|
/// Gets GameCardCertificate of size 0x400.
|
||||||
Result setcalGetGameCardCertificate(SetCalGameCardCertificate *out);
|
Result setcalGetGameCardCertificate(SetCalGameCardCertificate *out);
|
||||||
|
|
||||||
/// Gets EticketDeviceKey of size 0x244.
|
/// Gets EticketDeviceKey of size 0x244.
|
||||||
|
Loading…
Reference in New Issue
Block a user