This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/BQ27Z561: SHA-256 Key and challenge <==> message?

Part Number: BQ27Z561
Other Parts Discussed in Thread: BQSTUDIO, SHA-256

Tool/software: Code Composer Studio

SHA-256 Key and challenge on the bqstudio Authentication View are both 256bits, but I have no idea about what is  the message input for SHA-256?

I want to make a  Authentication test.

  • Please refer to SHA-256 documentation.
  • Glad to receive your reply.

    But what is the SHA-256 message  is still a puzzle for me.

    I  combined challenge and key in the following ways to find the expected output digest. However they both do not work.

    1) SHA-256 Message =  key append challenge append 0x80, 0x00,...0x00, 0x0200(256bits key+256bits challenge= 0x200 bytes),  total 2*512 bits.

    2) SHA-256 Message =  challenge append  key append 0x80, 0x00,...0x00, 0x0200(256bits key+256bits challenge= 0x200 bytes),  total 2*512 bits.

    Note: The key and challenge are the input bytes on bqStudio Authentication View.

    Do something else? Substitute the 20 bytes calculate output for the challenge and calculate it again?

    So, beg for some hint devoutly.

  • Hi

    Have you reviewed section 8.2 of the TRM?

    www.ti.com/.../sluubo7.pdf

    thanks
    Onyx