Browse Source

psocipher.block_size

pull/3/head
Jake Probst 5 years ago
parent
commit
529690165d
  1. 3
      src/crypto/mod.rs

3
src/crypto/mod.rs

@ -13,6 +13,9 @@ pub trait PSOCipher {
fn encrypt(&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 block_size(&self) -> usize {
self.header_size()
}
}

Loading…
Cancel
Save