Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions kem/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@
#![forbid(unsafe_code)]
#![warn(missing_docs, unused_qualifications, missing_debug_implementations)]

pub use crypto_common::{Generate, KeyInit, KeySizeUser, typenum::consts};
pub use crypto_common::{Generate, KeyExport, KeySizeUser, TryKeyInit, typenum::consts};

use rand_core::TryCryptoRng;

/// Encapsulator for shared secrets.
///
/// Often, this will just be a public key. However, it can also be a bundle of public keys, or it
/// can include a sender's private key for authenticated encapsulation.
pub trait Encapsulate<EK, SS> {
pub trait Encapsulate<EK, SS>: TryKeyInit + KeyExport {
/// Encapsulation error
type Error: core::error::Error;

Expand Down