lowRISC / manticore

Apache License 2.0
16 stars 13 forks source link

[crypto] Replace `crypto::sha256` with the more general `crypto::hash` #124

Closed mcy closed 3 years ago

mcy commented 3 years ago

This PR is broken into four commits: one that adds the new API, two that migrate two it, and a third that deletes the old one.

Along the way, some things that previously only supported Sha256 support all three Sha strengths for free!

Fixes #57 (mostly).