Page 1 of 1

Add SHA224 and MD5 to hal_crypto

Posted: Tue Nov 02, 2021 6:52 pm
by faisal
STM32 supports these, but are not in the high level hal_crypto.h file, nor does the LLD implementation have them.

Re: Add SHA224 and MD5 to hal_crypto

Posted: Tue Nov 02, 2021 7:20 pm
by Giovanni
Hi,

MD5 was left out on purpose, it is unsafe and should not be used.

Giovanni

Re: Add SHA224 and MD5 to hal_crypto

Posted: Thu Nov 04, 2021 7:07 am
by faisal
Giovanni wrote:Hi,

MD5 was left out on purpose, it is unsafe and should not be used.

Giovanni


MD5 is still widely used, and you may not have a choice if working with an external system. Also, depending on your threat model, it's not completely terrible to use. Makes sense to support it if the hardware does IMHO.