Skip to content

Commit

Permalink
Merge pull request #18 from grafica/send_plus_sync
Browse files Browse the repository at this point in the history
Make some traits Send + Sync.
  • Loading branch information
franziskuskiefer authored May 19, 2021
2 parents 1603cf1 + a0685b8 commit 50be585
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/aead.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ pub enum Error {
UnknownMode,
}

pub(crate) trait AeadTrait: Debug + Sync {
pub(crate) trait AeadTrait: Debug + Send + Sync {
fn new() -> Self
where
Self: Sized;
Expand Down
2 changes: 1 addition & 1 deletion src/kdf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ pub enum Error {
UnknownMode,
}

pub(crate) trait KdfTrait: Debug + Sync {
pub(crate) trait KdfTrait: Debug + Send + Sync {
fn new() -> Self
where
Self: Sized;
Expand Down
2 changes: 1 addition & 1 deletion src/kem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ fn kdf(mode: Mode) -> kdf::Mode {
pub(crate) type PrivateKey = Vec<u8>;
pub(crate) type PublicKey = Vec<u8>;

pub(crate) trait KemTrait: std::fmt::Debug + Sync {
pub(crate) trait KemTrait: std::fmt::Debug + Send + Sync {
fn new(kdf_id: kdf::Mode) -> Self
where
Self: Sized;
Expand Down

0 comments on commit 50be585

Please sign in to comment.