RIOT-OS / RIOT

RIOT - The friendly OS for IoT
https://riot-os.org
GNU Lesser General Public License v2.1
4.94k stars 1.99k forks source link

sys/hashes: SHA-384, SHA-512/224 and SHA-512/256 support #20127

Closed mguetschow closed 5 months ago

mguetschow commented 11 months ago

As a follow-up for #19969, implement the three FIPS specified truncated versions of SHA-512 in sys/hashes. For unified access, add frontend support for the PSA Crypto API, too.

Teufelchen1 commented 7 months ago

Could you give a short status update? The soft feature freeze is on the 25th ;)

mguetschow commented 7 months ago

Sure, I have an almost finished implementation at https://github.com/mguetschow/RIOT/tree/hashes-sha512-truncated including the necessary PSA Crypto glue code. Still outstanding:

If you wanted, I could split this in two PRs, one that adds truncated SHA512 support to sys/hashes and a second one that adds support for it to PSA crypto. The first one would be ready to be merged, while the second one would require some more work.

Teufelchen1 commented 7 months ago

If you wanted, ..

I think that's up to you!

I could split this in two PRs

The linked branch has 4 commits with around ~1800 edits. Could be enough to justify the overhead of splitting it in two PRs.

one that adds truncated SHA512 support to sys/hashes and a second one that adds support for it to PSA crypto

Both are probably minor enough to still get them in during soft-freeze :>

mguetschow commented 7 months ago

see #20484 for the implementation in sys/hashes

Teufelchen1 commented 6 months ago

Everything is checked off! :tada:

Can this issue be closed?

mguetschow commented 6 months ago

I would keep it open until #20598 is merged, which is currently hold back by #20545. The former should close the issue automatically as soon as it is merged.