Initial import and port from C++ code.

This commit is contained in:
2025-12-28 13:45:13 -07:00
commit ddf44d7e33
13 changed files with 1165 additions and 0 deletions

15
README.md Normal file
View File

@@ -0,0 +1,15 @@
# emsha: embedded secure hashing
This library is an HMAC-SHA-256 Rust library designed for embedded
systems. It is built following the JPL [Power of
Ten](http://spinroot.com/gerard/pdf/P10.pdf) rules. It was written in
response to a need for a standalone HMAC-SHA-256 package that could run
on several platforms, including several memory- constrained embedded
platforms. It works without using the Rust standard environment.
I had previously written a [C++ version](https://git.wntrmute.dev/sc/emsha);
porting it to Rust seemed a natural way to keep trying to learn the
language.
Note: it requires the 2024 edition of Rust due to its use of
`core::error::Error`.