| Crates.io | bake-kdf |
| lib.rs | bake-kdf |
| version | 0.0.1 |
| created_at | 2024-11-05 17:45:38.522801+00 |
| updated_at | 2025-02-13 15:27:08.296058+00 |
| description | bake-kdf function (STB 34.101.66-2014) |
| homepage | |
| repository | https://github.com/RustCrypto/KDFs |
| max_upload_size | |
| id | 1436856 |
| size | 23,220 |
Pure Rust implementation of the bake-kdf function.
use bake_kdf::bake_kdf;
use hex_literal::hex;
let x = [0x42; 32];
let s = [0x24; 8];
let c = 0x00;
let key = bake_kdf(&x, &s, c);
assert_eq!(key, hex!("bbd7ece0080bee33c776a140f8d807a113a119a4e4d4270f9f2018fbd5e6292e"));