pub fn extract_iv_and_ciphertext(data: Vec<u8>) -> (Vec<u8>, Vec<u8>) {
    let iv = data[..IV_LENGTH].into();
    let cipher = data[IV_LENGTH..].into();

    (iv, cipher)
}
/// Breaks IV from ciphertext for later processing.
Breaks IV from ciphertext for later processing.
Breaks IV from ciphertext for later processing .
pub fn extract_iv_and_ciphertext(data: Vec<u8>) -> (Vec<u8>, Vec<u8>) {
    let iv = data[..IV_LENGTH].into();
    let cipher = data[IV_LENGTH..].into();
    (iv, cipher)
}
pub fn extract_iv_and_ciphertext ( data : Vec < u8 > ) -> ( Vec < u8 > , Vec < u8 > ) { let iv = data [ .. IV_LENGTH ] . into ( ) ; let cipher = data [ IV_LENGTH .. ] . into ( ) ; ( iv , cipher ) }
Breaks IV from ciphertext for later processing.
Breaks IV from ciphertext for later processing .
data
Vec<u8>
data
Vec<u8>