// Generate random string of length IV_LEN
Generate random string of length IV_LEN
Generate random string of length IV_LEN
pub fn generate_initialization_vector() -> [u8; IV_LEN] {
    let mut rng = rand::thread_rng();
    // generate random string
    let mut derivation_value: [u8; IV_LEN] = [0; IV_LEN];
    rng.fill_bytes(&mut derivation_value);
    derivation_value
}
pub fn generate_initialization_vector ( ) -> [ u8 ; IV_LEN ] { let mut rng = rand :: thread_rng ( ) ; // generate random string let mut derivation_value : [ u8 ; IV_LEN ] = [ 0 ; IV_LEN ] ; rng . fill_bytes ( & mut derivation_value ) ; derivation_value }
Generate random string of length IV_LEN
Generate random string of length IV_LEN