dfadaf092c
変更内容: 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() を使用して実装可能(現状では各テスト関数でコンパイル時キーを直接使用)
49 lines
1.5 KiB
C
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 */
|