Crates.io | aes-keywrap |
lib.rs | aes-keywrap |
version | 0.2.6 |
source | src |
created_at | 2020-10-13 11:31:43.207433 |
updated_at | 2024-12-09 11:51:12.236794 |
description | AES Key Wrap construction (AES-KW, RFC 3394 / RFC 5649) |
homepage | https://github.com/jedisct1/rust-aes-keywrap |
repository | https://github.com/jedisct1/rust-aes-keywrap |
max_upload_size | |
id | 299203 |
size | 14,634 |
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.