8 releases
new 0.2.6 | Dec 9, 2024 |
---|---|
0.2.5 | Feb 8, 2023 |
0.2.4 | Feb 11, 2022 |
0.2.3 | May 27, 2021 |
0.1.0 | Oct 13, 2020 |
#1857 in Cryptography
515 downloads per month
14KB
281 lines
AES Key Wrap for Rust
AES Key Wrap is a construction to encrypt secret keys using a master key.
This is an AES-KWP (NIST SP800-38F) implementation for Rust.
It is essentially a 5 round Feistel network using AES as the core function. One half of each AES block is used to encrypt the key, and the second half of the last permutation is used to compute a 64-bit MAC.
It doesn't require nonces, but still allows key reuse.
This is a NIST-blessed construction. Other than that, AES Key Wrap is inefficient and is generally not very useful.
Dependencies
~710KB
~16K SLoC