+104
−56
+1
−1
+1
−1
+9
−13
Loading
The ring crate's SHA256 is slightly slower than the one from
rust-crypto, but is much cleaner to use. It also has all of the hashing
operations we need.
This crate is somewhat opinionated, e.g. will not sign messages without
also performing the signature itself. Unfortunately, this means we'll
end up computing signatures of the same data many times, and perhaps
this should be improved, since we're always using the same data.
Signed-off-by:
David Brown <david.brown@linaro.org>
CRA Git | Maintained and supported by SUSTech CRA and CCSE