Files
se050-wireguard/include/se050_scp03_keys.h
T
km 7034b67c04 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 のみサポート)
2026-03-26 14:40:23 +09:00

49 lines
1.5 KiB
C

/**
* @file se050_scp03_keys.h
* @brief SE050 Platform SCP03 Keys
*
* Platform SCP03 keys for each SE050 chip type.
* Keys should be obtained from NXP documentation or secure provisioning.
*
* License: MIT (Clean-room implementation)
*/
#ifndef SE050_SCP03_KEYS_H
#define SE050_SCP03_KEYS_H
#include <stdint.h>
/* ============================================================================
* SE050C0 Platform SCP03 Keys
* ============================================================================ */
extern const uint8_t SE050C0_ENC_KEY[16];
extern const uint8_t SE050C0_MAC_KEY[16];
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
* ============================================================================ */
extern const uint8_t SE050E2_ENC_KEY[16];
extern const uint8_t SE050E2_MAC_KEY[16];
extern const uint8_t SE050E2_DEK_KEY[16];
#endif /* SE050_SCP03_KEYS_H */