Force cryptographer to be threadsafe
This commit is contained in:
parent
9fef33fd17
commit
488a57d5cb
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ pub use packet::{Packet, StandardPacket};
|
||||||
mod ping;
|
mod ping;
|
||||||
pub use ping::Ping;
|
pub use ping::Ping;
|
||||||
|
|
||||||
pub trait Cryptographer {
|
pub trait Cryptographer: Send + Sync {
|
||||||
fn decrypt(&self, to_decrypt: Vec<u8>) -> Vec<u8>;
|
fn decrypt(&self, to_decrypt: Vec<u8>) -> Vec<u8>;
|
||||||
fn encrypt(&self, to_encrypt: Vec<u8>) -> Vec<u8>;
|
fn encrypt(&self, to_encrypt: Vec<u8>) -> Vec<u8>;
|
||||||
fn secret(&self) -> &'_ [u8];
|
fn secret(&self) -> &'_ [u8];
|
||||||
|
|
Loading…
Add table
Reference in a new issue