pub(crate) fn generate_key_iv<T: KeyIvInit, S: AsRef<[u8]>>(
secret: &S,
context: &str,
with_salt: Option<&[u8]>,
) -> Result<T>Expand description
Internal convenience function to generate key and IV from the given secret, that is cryptographically strong.
See generate_key for details.