use num_bigint::BigUint;
use crate::error::Error;
pub trait Codec {
fn encode(&mut self, chunk: &[u8]) -> Result<BigUint, Error>;
fn decode(&self, chunk: &BigUint) -> Result<Vec<u8>, Error>;
}
pub trait RsaKey {
fn crypt(&self, message: &BigUint) -> Result<BigUint, Error>;
}