pub fn decrypt(self, src: &[u8], key: &[u8], iv: &[u8]) -> OsshResult<Vec<u8>> {
        let mut buf = vec![0; self.calc_buffer_len(src.len())];
        let n = self.decrypt_to(&mut buf, src, key, iv)?;
        buf.truncate(n);
        Ok(buf)
    }
/// Decrypt the data
///
/// Mostly used by the internal codes.
/// Usually you don't need to call it directly.
Decrypt the data
Mostly used by the internal codes.
Usually you don't need to call it directly.
Decrypt the data Mostly used by the internal codes . Usually you don ' t need to call it directly .
pub fn decrypt(self, src: &[u8], key: &[u8], iv: &[u8]) -> OsshResult<Vec<u8>> {
        let mut buf = vec![0; self.calc_buffer_len(src.len())];
        let n = self.decrypt_to(&mut buf, src, key, iv)?;
        buf.truncate(n);
        Ok(buf)
    }
pub fn decrypt ( self , src : & [ u8 ] , key : & [ u8 ] , iv : & [ u8 ] ) -> OsshResult < Vec < u8 > > { let mut buf = vec ! [ 0 self calc_buffer_len ( src len ( ) ) ] ; let n = self . decrypt_to ( & mut buf , src , key , iv ) ? ; buf . truncate ( n ) ; Ok ( buf ) }
Decrypt the data
Mostly used by the internal codes.
Decrypt the data Mostly used by the internal codes .
self
src
&[u8]
key
&[u8]
iv
&[u8]
self
src
&[u8]
key
&[u8]
iv
&[u8]