Lines Matching refs:CipherError
30 pub struct CipherError; struct
46 fn apply_keystream(&mut self, buffer: &mut [u8]) -> Result<(), CipherError>; in apply_keystream() argument
66 fn encrypt_padded(self, buffer: &[u8]) -> Result<Vec<u8>, CipherError>; in encrypt_padded() argument
70 fn decrypt_padded(self, buffer: &[u8]) -> Result<Vec<u8>, CipherError>; in decrypt_padded() argument
184 fn apply_keystream_in_place(&mut self, buffer: &mut [u8]) -> Result<(), CipherError> { in apply_keystream_in_place() argument
195 let buff_len_int = c_int::try_from(cslice_buf_mut.len()).map_err(|_| CipherError)?; in apply_keystream_in_place()
212 Err(CipherError) in apply_keystream_in_place()
217 fn encrypt(self, buffer: &[u8]) -> Result<Vec<u8>, CipherError> { in encrypt() argument
235 let in_buff_len_int = c_int::try_from(cslice_in_buf.len()).map_err(|_| CipherError)?; in encrypt()
251 return Err(CipherError); in encrypt()
278 return Err(CipherError); in encrypt()
285 fn decrypt(self, in_buffer: &[u8]) -> Result<Vec<u8>, CipherError> { in decrypt() argument
304 let in_buff_len_int = c_int::try_from(cslice_in_buf.len()).map_err(|_| CipherError)?; in decrypt()
320 return Err(CipherError); in decrypt()
347 return Err(CipherError); in decrypt()