Function derive_key_into

Source
pub fn derive_key_into<D>(
    secret: &[u8],
    other_info: &[u8],
    key: &mut [u8],
) -> Result<(), Error>
Expand description

Derives key in-place from secret and other_info.

let mut key = [0u8; 42];
concat_kdf::derive_key_into::<sha2::Sha256>(b"top-secret", b"info", &mut key).unwrap();