Platform SCP03 キーローテーションテストスイート追加

新規テストファイル:tests/test_scp03_key_rotation.c

テストステップ:
1. デフォルトキーでセッションオープン
2. デフォルトキーで基本テスト
3. テストキーへローテーション
4. セッションクローズ・テストキーで再オープン
5. デフォルトキーへ戻す
6. セッションクローズ・デフォルトキーで再オープン
7. デフォルトキーで最終クローズ

対応チップ:
- SE050C1 (CHIP_ID=1)
- SE050C2 (CHIP_ID=2)
- SE050E2 (CHIP_ID=3)

使用方法:
make SE050_CHIP=SE050C1 test_key_rotation
./build/test_key_rotation -b /dev/i2c-1

テストキー:
- ENC: 0xAA...0x99
- MAC: 0x11...0x00
- DEK: 0x0F...0xF0

注:SE050C0 は除外(キーローテーションテストは
SE050C1/C2/E2 のみサポート)
This commit is contained in:
km
2026-03-26 14:40:23 +09:00
parent 04231683c2
commit 7034b67c04
3 changed files with 210 additions and 2 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
* ============================================================================ */