From eb468c1ba10f2dbd53d119e2eff5c47ec4b8cf3b Mon Sep 17 00:00:00 2001 From: km Date: Thu, 26 Mar 2026 10:29:43 +0900 Subject: [PATCH] =?UTF-8?q?NXP=20=E5=85=AC=E5=BC=8F=20Platform=20SCP03=20?= =?UTF-8?q?=E9=8D=B5=E5=80=A4=E3=81=AE=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit NXP plug-and-trust リポジトリから公式鍵値を取得: https://github.com/NXP/plug-and-trust/blob/master/sss/ex/inc/ex_sss_tp_scp03_keys.h 更新内容: - SE050C0: DEVKIT (OEF ID: 0xA1F4) 値を適用 ENC: 35 C2 56 45 89 58 A3 4F 61 36 15 5F 82 09 D6 CD MAC: AF 17 7D 5D BD F7 C0 D5 C1 0A 05 B9 F1 60 7F 78 DEK: A1 BC 84 38 BF 77 93 5B 36 1A 44 25 FE 79 FA 29 - SE050C1: (OEF ID: 0xA200) 値を適用 ENC: 85 2B 59 62 E9 CC E5 D0 BE 74 6B 83 3B CC 62 87 MAC: DB 0A A3 19 A4 08 69 6C 8E 10 7A B4 E3 C2 6B 47 DEK: 4C 2F 75 C6 A2 78 A4 AE E5 C9 AF 7C 50 EE A8 0C - SE050E2: (OEF ID: 0xA921) 値を適用 ENC: D2 DB 63 E7 A0 A5 AE D7 2A 64 60 C4 DF DC AF 64 MAC: 73 8D 5B 79 8E D2 41 B0 B2 47 68 51 4B FB A9 5B DEK: 67 02 DA C3 09 42 B2 C8 5E 7F 47 B4 2C ED 4E 7F 注:SE050C0 は公式ファイルに無いため DEVKIT 値を使用。 実際のチップ値が必要な場合は別途確認が必要。 --- src/se050_scp03_keys.c | 58 +++++++++++++++++++++++++----------------- 1 file changed, 34 insertions(+), 24 deletions(-) diff --git a/src/se050_scp03_keys.c b/src/se050_scp03_keys.c index 03d436d..237b434 100644 --- a/src/se050_scp03_keys.c +++ b/src/se050_scp03_keys.c @@ -22,65 +22,75 @@ /* ============================================================================ * SE050C0 Platform SCP03 Keys * - * TODO: Replace with actual keys from AN12436 or secure provisioning - * Reference: NXP AN12436 "SE050 configurations" - Section on PlatformSCP03 + * Note: Official NXP source (ex_sss_tp_scp03_keys.h) does not list SE050C0. + * Using SE050_DEVKIT (OEF ID: 0xA1F4) values as reference. + * For production: Use actual keys from your chip documentation or secure provisioning. + * + * Source: NXP plug-and-trust repository + * File: sss/ex/inc/ex_sss_tp_scp03_keys.h + * Reference: SSS_PFSCP_ENABLE_SE050_DEVKIT (OEF ID: 0xA1F4) + * See: https://github.com/NXP/plug-and-trust/blob/master/sss/ex/inc/ex_sss_tp_scp03_keys.h * ============================================================================ */ const uint8_t SE050C0_ENC_KEY[16] = { - 0x01, 0x23, 0x45, 0x67, 0x89, 0xAB, 0xCD, 0xEF, - 0x01, 0x23, 0x45, 0x67, 0x89, 0xAB, 0xCD, 0xEF + 0x35, 0xC2, 0x56, 0x45, 0x89, 0x58, 0xA3, 0x4F, + 0x61, 0x36, 0x15, 0x5F, 0x82, 0x09, 0xD6, 0xCD }; const uint8_t SE050C0_MAC_KEY[16] = { - 0xFE, 0xDC, 0xBA, 0x98, 0x76, 0x54, 0x32, 0x10, - 0xFE, 0xDC, 0xBA, 0x98, 0x76, 0x54, 0x32, 0x10 + 0xAF, 0x17, 0x7D, 0x5D, 0xBD, 0xF7, 0xC0, 0xD5, + 0xC1, 0x0A, 0x05, 0xB9, 0xF1, 0x60, 0x7F, 0x78 }; const uint8_t SE050C0_DEK_KEY[16] = { - 0x00, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, - 0x88, 0x99, 0xAA, 0xBB, 0xCC, 0xDD, 0xEE, 0xFF + 0xA1, 0xBC, 0x84, 0x38, 0xBF, 0x77, 0x93, 0x5B, + 0x36, 0x1A, 0x44, 0x25, 0xFE, 0x79, 0xFA, 0x29 }; /* ============================================================================ * SE050C1 Platform SCP03 Keys * - * TODO: Replace with actual keys from AN12436 or secure provisioning - * Reference: NXP AN12436 "SE050 configurations" - Section on PlatformSCP03 + * Source: NXP plug-and-trust repository + * File: sss/ex/inc/ex_sss_tp_scp03_keys.h + * Reference: SSS_PFSCP_ENABLE_SE050C1 (OEF ID: 0xA200) + * See: https://github.com/NXP/plug-and-trust/blob/master/sss/ex/inc/ex_sss_tp_scp03_keys.h * ============================================================================ */ const uint8_t SE050C1_ENC_KEY[16] = { - 0xA1, 0xB2, 0xC3, 0xD4, 0xE5, 0xF6, 0x07, 0x18, - 0x29, 0x3A, 0x4B, 0x5C, 0x6D, 0x7E, 0x8F, 0x90 + 0x85, 0x2B, 0x59, 0x62, 0xE9, 0xCC, 0xE5, 0xD0, + 0xBE, 0x74, 0x6B, 0x83, 0x3B, 0xCC, 0x62, 0x87 }; const uint8_t SE050C1_MAC_KEY[16] = { - 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88, - 0x99, 0xAA, 0xBB, 0xCC, 0xDD, 0xEE, 0xFF, 0x00 + 0xDB, 0x0A, 0xA3, 0x19, 0xA4, 0x08, 0x69, 0x6C, + 0x8E, 0x10, 0x7A, 0xB4, 0xE3, 0xC2, 0x6B, 0x47 }; const uint8_t SE050C1_DEK_KEY[16] = { - 0x98, 0x76, 0x54, 0x32, 0x10, 0xFE, 0xDC, 0xBA, - 0x98, 0x76, 0x54, 0x32, 0x10, 0xFE, 0xDC, 0xBA + 0x4C, 0x2F, 0x75, 0xC6, 0xA2, 0x78, 0xA4, 0xAE, + 0xE5, 0xC9, 0xAF, 0x7C, 0x50, 0xEE, 0xA8, 0x0C }; /* ============================================================================ * SE050E2 Platform SCP03 Keys * - * TODO: Replace with actual keys from AN12436 or secure provisioning - * Reference: NXP AN12436 "SE050 configurations" - Section on PlatformSCP03 + * Source: NXP plug-and-trust repository + * File: sss/ex/inc/ex_sss_tp_scp03_keys.h + * Reference: SSS_PFSCP_ENABLE_SE050E_0001A921 (OEF ID: 0xA921) + * See: https://github.com/NXP/plug-and-trust/blob/master/sss/ex/inc/ex_sss_tp_scp03_keys.h * ============================================================================ */ const uint8_t SE050E2_ENC_KEY[16] = { - 0x55, 0x66, 0x77, 0x88, 0x99, 0xAA, 0xBB, 0xCC, - 0xDD, 0xEE, 0xFF, 0x00, 0x11, 0x22, 0x33, 0x44 + 0xD2, 0xDB, 0x63, 0xE7, 0xA0, 0xA5, 0xAE, 0xD7, + 0x2A, 0x64, 0x60, 0xC4, 0xDF, 0xDC, 0xAF, 0x64 }; const uint8_t SE050E2_MAC_KEY[16] = { - 0x44, 0x33, 0x22, 0x11, 0x00, 0xFF, 0xEE, 0xDD, - 0xCC, 0xBB, 0xAA, 0x99, 0x88, 0x77, 0x66, 0x55 + 0x73, 0x8D, 0x5B, 0x79, 0x8E, 0xD2, 0x41, 0xB0, + 0xB2, 0x47, 0x68, 0x51, 0x4B, 0xFB, 0xA9, 0x5B }; const uint8_t SE050E2_DEK_KEY[16] = { - 0x77, 0x88, 0x99, 0xAA, 0xBB, 0xCC, 0xDD, 0xEE, - 0xFF, 0x00, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66 + 0x67, 0x02, 0xDA, 0xC3, 0x09, 0x42, 0xB2, 0xC8, + 0x5E, 0x7F, 0x47, 0xB4, 0x2C, 0xED, 0x4E, 0x7F };