From a44a0257fe165061cc681bb6297f329760e9f27b Mon Sep 17 00:00:00 2001 From: jakcron Date: Wed, 21 Mar 2018 20:30:35 +0800 Subject: [PATCH] [nx] Add Production keys MasterKey[0], NCAHeaderKey, XCIHeaderKey. --- lib/libnx/include/nx/NXCrypto.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/libnx/include/nx/NXCrypto.h b/lib/libnx/include/nx/NXCrypto.h index 9269643..608831e 100644 --- a/lib/libnx/include/nx/NXCrypto.h +++ b/lib/libnx/include/nx/NXCrypto.h @@ -81,6 +81,16 @@ namespace crypto { 0x5A, 0x3E, 0xD8, 0x4F, 0xDE, 0xC0, 0xD8, 0x26, 0x31, 0xF7, 0xE2, 0x5D, 0x19, 0x7B, 0xF5, 0xD0 }, { 0x1C, 0x9B, 0x7B, 0xFA, 0xF6, 0x28, 0x18, 0x3D, 0x71, 0xF6, 0x4D, 0x73, 0xF1, 0x50, 0xB9, 0xD2 } }; + + u8 master_key_0[16] = { 0xC2, 0xCA, 0xAF, 0xF0, 0x89, 0xB9, 0xAE, 0xD5, 0x56, 0x94, 0x87, 0x60, 0x55, 0x27, 0x1C, 0x7D }; + + u8 nca_header_key[2][16] = + { + { 0xAE, 0xAA, 0xB1, 0xCA, 0x08, 0xAD, 0xF9, 0xBE, 0xF1, 0x29, 0x91, 0xF3, 0x69, 0xE3, 0xC5, 0x67 }, + { 0xD6, 0x88, 0x1E, 0x4E, 0x4A, 0x6A, 0x47, 0xA5, 0x1F, 0x6E, 0x48, 0x77, 0x06, 0x2D, 0x54, 0x2D } + }; + + u8 xci_header_key[16] = { 0x01, 0xC5, 0x8F, 0xE7, 0x00, 0x2D, 0x13, 0x5A, 0xB2, 0x9A, 0x3F, 0x69, 0x33, 0x95, 0x74, 0xB1 }; }