libpso/src/crypto/mod.rs

15 lines
241 B
Rust
Raw Normal View History

2019-06-08 18:06:10 -07:00
mod pc;
#[derive(Debug)]
pub enum CipherError {
InvalidSize
}
trait PSOCipher {
fn encrypt(&mut self, data: &Vec<u8>) -> Result<Vec<u8>, CipherError>;
fn decrypt(&mut self, data: &Vec<u8>) -> Result<Vec<u8>, CipherError>;
}