From 0597fe887a19502d5495cc8444b1a8f3322a6396 Mon Sep 17 00:00:00 2001 From: Mat M Date: Thu, 22 Feb 2018 21:03:22 -0500 Subject: [PATCH] package2: Correct variable name for new device key source (#19) Identifiers can't begin with a number --- exosphere/package2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exosphere/package2.c b/exosphere/package2.c index 751b70120..5223b3a9d 100644 --- a/exosphere/package2.c +++ b/exosphere/package2.c @@ -58,8 +58,8 @@ void setup_se(void) { /* Setup new device key, if necessary. */ if (mkey_get_revision() >= MASTERKEY_REVISION_400_CURRENT) { - const uint8_t 4x_new_devicekey_source[0x10] = {0x8B, 0x4E, 0x1C, 0x22, 0x42, 0x07, 0xC8, 0x73, 0x56, 0x94, 0x08, 0x8B, 0xCC, 0x47, 0x0F, 0x5D}; - se_aes_ecb_decrypt_block(KEYSLOT_SWITCH_4XNEWDEVICEKEYGENKEY, work_buffer, 0x10, 4x_new_devicekey_source, 0x10); + const uint8_t new_devicekey_source_4x[0x10] = {0x8B, 0x4E, 0x1C, 0x22, 0x42, 0x07, 0xC8, 0x73, 0x56, 0x94, 0x08, 0x8B, 0xCC, 0x47, 0x0F, 0x5D}; + se_aes_ecb_decrypt_block(KEYSLOT_SWITCH_4XNEWDEVICEKEYGENKEY, work_buffer, 0x10, new_devicekey_source_4x, 0x10); decrypt_data_into_keyslot(KEYSLOT_SWITCH_DEVICEKEY, KEYSLOT_SWITCH_4XNEWCONSOLEKEYGENKEY, work_buffer, 0x10); clear_aes_keyslot(KEYSLOT_SWITCH_4XNEWCONSOLEKEYGENKEY); set_aes_keyslot_flags(KEYSLOT_SWITCH_DEVICEKEY, 0xFF);