|
@ -13,6 +13,9 @@ pub trait PSOCipher { |
|
|
fn encrypt(&mut self, data: &Vec<u8>) -> Result<Vec<u8>, CipherError>;
|
|
|
fn encrypt(&mut self, data: &Vec<u8>) -> Result<Vec<u8>, CipherError>;
|
|
|
fn decrypt(&mut self, data: &Vec<u8>) -> Result<Vec<u8>, CipherError>;
|
|
|
fn decrypt(&mut self, data: &Vec<u8>) -> Result<Vec<u8>, CipherError>;
|
|
|
fn header_size(&self) -> usize;
|
|
|
fn header_size(&self) -> usize;
|
|
|
|
|
|
fn block_size(&self) -> usize {
|
|
|
|
|
|
self.header_size()
|
|
|
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|