mirror of
https://github.com/rvtr/ctr_eFuse.git
synced 2025-11-02 00:11:04 -04:00
cr_generate_id:古い構造体情報を削除。
git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-09-30%20-%20paladin.7z/paladin/ctr_eFuse@235 ff987cc8-cf2f-4642-8568-d52cce064691
This commit is contained in:
parent
b16120e6d1
commit
eb3088ba9c
@ -266,7 +266,7 @@ int cr_generate_id( u32 device_id[CR_NUM_OF_DEVICEID], u8 id_buf[CR_ID_BUF_SIZE]
|
|||||||
// device_id セット
|
// device_id セット
|
||||||
//--------------------------------------------------------------
|
//--------------------------------------------------------------
|
||||||
for( i = 0 ; i < CR_NUM_OF_DEVICEID ; i++ ) {
|
for( i = 0 ; i < CR_NUM_OF_DEVICEID ; i++ ) {
|
||||||
cr_id_buf->device_id[i] = device_id[i]; /* device_id[0] => ec priv key */
|
cr_id_buf->device_id[i] = device_id[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef DEBUG_PRINT
|
#ifdef DEBUG_PRINT
|
||||||
|
|||||||
@ -177,7 +177,6 @@ typedef struct {
|
|||||||
u32 magic_number; /* 0x00 - 0x03 = 0xdeadb00f 確定!*/
|
u32 magic_number; /* 0x00 - 0x03 = 0xdeadb00f 確定!*/
|
||||||
u32 device_id[CR_NUM_OF_DEVICEID]; /* 0x04 - 0x07 32bit device ID
|
u32 device_id[CR_NUM_OF_DEVICEID]; /* 0x04 - 0x07 32bit device ID
|
||||||
(32bit。1固定カウントアップ。)
|
(32bit。1固定カウントアップ。)
|
||||||
(本ID+randomの先頭0x1C bytesを組み合わせて、デバイス秘密鍵とする。)
|
|
||||||
0x08 - 0x0F 64bit CTR番号 seed
|
0x08 - 0x0F 64bit CTR番号 seed
|
||||||
(34bitのみ使用。1~4の乱数カウントアップ)
|
(34bitのみ使用。1~4の乱数カウントアップ)
|
||||||
0x10 - 0x17 64bit 予備ID
|
0x10 - 0x17 64bit 予備ID
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user