Add SHA224 and MD5 to hal_crypto

Use this forum for requesting small changes in ChibiOS. Large changes should be discussed in the development forum. This forum is NOT for support.
faisal
Posts: 374
Joined: Wed Jul 19, 2017 12:44 am
Has thanked: 44 times
Been thanked: 60 times

Add SHA224 and MD5 to hal_crypto

Postby faisal » Tue Nov 02, 2021 6:52 pm

STM32 supports these, but are not in the high level hal_crypto.h file, nor does the LLD implementation have them.

User avatar
Giovanni
Site Admin
Posts: 14444
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1074 times
Been thanked: 921 times
Contact:

Re: Add SHA224 and MD5 to hal_crypto

Postby Giovanni » Tue Nov 02, 2021 7:20 pm

Hi,

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

Giovanni

faisal
Posts: 374
Joined: Wed Jul 19, 2017 12:44 am
Has thanked: 44 times
Been thanked: 60 times

Re: Add SHA224 and MD5 to hal_crypto

Postby faisal » Thu Nov 04, 2021 7:07 am

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.


Return to “Small Change Requests”

Who is online

Users browsing this forum: No registered users and 16 guests