Lines Matching defs:key
16 pub key: Vec<u8>,
20 /// Derives a key and an IV from various parameters.
24 /// If the total key and IV length is less than 16 bytes and MD5 is used then
25 /// the algorithm is compatible with the key derivation algorithm from PKCS#5
29 /// `pbkdf2_hmac` or another more modern key derivation algorithm.
68 let mut key = vec![0; len as usize];
81 key.as_mut_ptr(),
85 Ok(KeyIvPair { key, iv })
89 /// Derives a key from a password and salt using the PBKDF2-HMAC algorithm with a digest function.
96 key: &mut [u8],
107 key.len().try_into().unwrap(),
108 key.as_mut_ptr(),
114 /// Derives a key from a password and salt using the scrypt algorithm.
127 key: &mut [u8],
140 key.as_mut_ptr() as *mut _,
141 key.len(),
282 key: expected_key,