commit | 61db797c65400c095611cf09e8b88fdd543d7d42 | [log] [tgz] |
---|---|---|
author | Konrad Rzeszutek Wilk <konrad@kernel.org> | Fri Jun 18 09:37:40 2021 -0400 |
committer | Konrad Rzeszutek Wilk <konrad@kernel.org> | Fri Jun 18 09:40:28 2021 -0400 |
tree | 4162a9c07c8989f344cb84d06defda37d4b34cbd | |
parent | 78e092cbe28f4ade1f60d6cba1dfea6fd9cf76b6 [diff] |
Re-syncing from source repos. That is git@github.com:konradwilk/fibonacci.git and git@github.com:konradwilk/sha1.git both have LICENSE: Sync up all the files with the top level license They are all under the same license, but make it more explicit by having it in of the source code. And this follows the same change. Signed-off-by: Konrad Rzeszutek Wilk <konrad@kernel.org>
See a https://github.com/konradwilk/sha1 for the full git history of this code. Branch name is submission-mpw-two.
This is an implementation of [https://www.rfc-editor.org/rfc/inline-errata/rfc3174.html](RFC 3174) of SHA-1 engine.
It is not the most secure one nowadays (it is still used for git commit ids and TPM PCR values), but it looked like the easiest of the SHA engines to implement. The communication channel is via WishBone commands to provide sixteen words after which the engine starts and computes the digest in about 160 cycles. Then digest can be retrieved via the wishbone. There is a IRQ line so when it has completed it will bring it high if that is enabled.
If you want to see this more interactively, I would recommend you clone https://github.com/konradwilk/sha1 and run
make test_wb_logic
which will use the various WishBone commands to program it.