AnsweredAssumed Answered

T4240 OTPMKRn and SRKHRn Bit Numbering and Programming

Question asked by Arlen Baker on Sep 1, 2016
Latest reply on Sep 1, 2016 by ufedor

I wanted to make sure that I have the correcting ordering of the bits for the OTPMK and SRKH.

 

Using Linux SDK v1.7, if I generate an OTPMK using the command for the Trust 2 Architecture
    gen_otpmk 2
I receive:

NAME     | BITS     | VALUE
_________|__________|____________
OTPMKR 0 | 31- 0    | 9fb271c1
OTPMKR 1 | 63- 32   | f2f24698
OTPMKR 2 | 95- 64   | fbaaaddb
OTPMKR 3 | 127- 96  | 4241eced
OTPMKR 4 | 159-128  | 19fd8d72
OTPMKR 5 | 191-160  | fc05be54
OTPMKR 6 | 223-192  | 52255d2b
OTPMKR 7 | 255-224  | ef0f928b

 

The output is confusing as the above NAME field and the BITS field are not aligned to the note in in section 6.2.4.10 of the T4240 Reference Manual, Rev 2, 06/2015

 

I wanted to confirm that the programming of the SFP_OTPMKRn is then:


Register | Value
---------|-------
OTPMKR 0 | 9fb271c1
OTPMKR 1 | f2f24698
OTPMKR 2 | fbaaaddb
OTPMKR 3 | 4241eced
OTPMKR 4 | 19fd8d72
OTPMKR 5 | fc05be54
OTPMKR 6 | 52255d2b
OTPMKR 7 | ef0f928b


The same applies for the SRKHRn programming.

The output of the command
    uni_sign --hash ./input_uboot_nor_secure

is:

    0c1918040ec72247d5f8da1d0d809ca4eb7ecdf5a25dc3673f04184059f883fa

 

Does that align to:

Register | Value
---------|----------
SRKHR 0  | 0c191804
SRKHR 1  | 0ec72247
SRKHR 2  | d5f8da1d
SRKHR 3  | 0d809ca4
SRKHR 4  | eb7ecdf5
SRKHR 5  | a25dc367
SRKHR 6  | 3f041840
SRKHR 7  | 59f883fa

 

??

 

Thank you.

Outcomes