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.

DK-TM4C129X: MD5_hash

Part Number: DK-TM4C129X

Hi all,

I try to modify example sha_hash on folder of dk-tm4c129x  by change :

SHAMD5_ALGO_SHA1 to SHAMD5_ALGO_MD5

SHAMD5configset will become:


    ROM_SHAMD5ConfigSet(SHAMD5_BASE, SHAMD5_ALGO_MD5);

And change output result array to pui32HashResult[4];

The data input is : helloworld.

Firmware  output string: ab49d61168360b9d9f6bc67d22fb1fa

It is different when I compute online at http://www.sha1-online.com/

Online result: fc5e038d38a57032085441e7fe7010b0

Why results are different? are there specific to configure for MD5 which i forgot?

Please give me advice.

Thanks,

Huy Huynh