rigel-0.2.2 has been yanked.
rigel
About
rigel is a minimal implementation of HMAC with SHA512, which is optimized for use
with embedded devices. rigel minimizes the amount of allocations made, while
still upholding performance speed.
You can read more about these optimizations here.
Rust nightly
rigel requires Rust nightly.
Security
This library has at no point received any formal cryptographic/security audit. It should be used at own risk.
Example
One-shot API:
extern crate rigel;
let mac = hmac_sha512;
assert!;
Streaming API:
extern crate rigel;
let mut mac = init;
mac.update;
let res = mac.finalize;
assert!;
let mut mac_out = ;
mac.reset;
mac.update;
mac.finalize_with_dst;
Performance
test RustCrypto ... bench: 2,185 ns/iter
test orion ... bench: 2,350 ns/iter
test rigel_one_shot ... bench: 2,070 ns/iter
test rigel_stream ... bench: 2,122 ns/iter
test ring ... bench: 3,357 ns/iter
This was benchmarked on a MacBook Air 1,6 GHz Intel Core i5, 4GB.
License
rigel is licensed under the MIT license. See the LICENSE file for more information.