SE050C2 サポート追加とキー管理の明確化

変更内容:
1. SE050C2 のサポート追加
   - se050_scp03_keys.h: SE050C2 は SE050C1 と同じキーを使用
   - test_scp03_se050.c: SE050C2 チップ選択追加
   - Makefile: SE050C2 の CHIP_ID=2, SE050E2=3 に更新

2. キー管理の明確化
   - test_scp03_se050.c に詳細コメント追加
   - キーは実行時置き換えではなく、コンパイル時選択を明記
   - 異なるキーでテストするには再コンパイルが必要と説明

3. 使い方の明確化
   make SE050_CHIP=SE050C0 test_se050  # SE050C0 キー
   make SE050_CHIP=SE050C1 test_se050  # SE050C1 キー
   make SE050_CHIP=SE050C2 test_se050  # SE050C2 キー (SE050C1 と同じ)
   make SE050_CHIP=SE050E2 test_se050  # SE050E2 キー

注記:
- 実行時キー置換機能は未実装
- 動的キー切り替えが必要な場合は、se050_session_scp03_set_keys()
  を使用して実装可能(現状では各テスト関数でコンパイル時キーを直接使用)
This commit is contained in:
km
2026-03-26 14:13:28 +09:00
parent ff32a1052f
commit dfadaf092c
3 changed files with 32 additions and 4 deletions
+8
View File
@@ -23,12 +23,20 @@ extern const uint8_t SE050C0_DEK_KEY[16];
/* ============================================================================
* SE050C1 Platform SCP03 Keys
*
* Note: SE050C2 uses the same PlatformSCP03 keys as SE050C1.
* See AN12436 for details.
* ============================================================================ */
extern const uint8_t SE050C1_ENC_KEY[16];
extern const uint8_t SE050C1_MAC_KEY[16];
extern const uint8_t SE050C1_DEK_KEY[16];
/* SE050C2 uses same keys as SE050C1 */
#define SE050C2_ENC_KEY SE050C1_ENC_KEY
#define SE050C2_MAC_KEY SE050C1_MAC_KEY
#define SE050C2_DEK_KEY SE050C1_DEK_KEY
/* ============================================================================
* SE050E2 Platform SCP03 Keys
* ============================================================================ */