Crate bake_kdf

Source
Expand description

§RustCrypto: bake-kdf

crate Docs Build Status Apache2/MIT licensed Rust Version Project Chat

Pure Rust implementation of the bake-kdf function.

§Examples

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"));

Functions§

bake_kdf
bake-kdf key derivation algorithm described in STB 34.101.66-2014 8.1.4.
belt_keyexpand
belt-keyexpand key expansion algorithm described in STB 34.101.34-2020 8.1.2.
belt_keyrep
belt-keyrep key repetition algorithm described in STB 34.101.34-2020 8.1.3.