cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H563 DA obk password calculation

_EFrie
Senior

I'm trying to understand how the HDPL1 is calculated based on an OBK file.

I have dumped the contents of HDPL1 / 0x0BDF0100 and can see that for a 16 length password, I have 96 bytes written, as follows

0x0BFD0100 to 0x0BFD0120, unknown calc, how is this calculated?

0x0BFD0120 to 0x0BFD0140 SHA-256 of password

0x0BFD0140 to 0x0BFD0160 zeros

1 ACCEPTED SOLUTION

Accepted Solutions
Jocelyn RICARD
ST Employee

Hello @_EFrie ,

The first 32 bytes contain the SHA-256 of the payload

Payload is the SHA-256 of password + remaining bytes

You can find this information in the RM0481 rev 4 Table 715 Definition of data to provision

Best regards

Jocelyn

View solution in original post

2 REPLIES 2
Jocelyn RICARD
ST Employee

Hello @_EFrie ,

The first 32 bytes contain the SHA-256 of the payload

Payload is the SHA-256 of password + remaining bytes

You can find this information in the RM0481 rev 4 Table 715 Definition of data to provision

Best regards

Jocelyn

_EFrie
Senior

Thank you.