Skip to content

Commit

Permalink
Merge pull request #49 from RustCrypto/ml-kem/re-export-kem-traits
Browse files Browse the repository at this point in the history
ml-kem: re-export `kem` traits and `hybrid-array`
  • Loading branch information
bifurcation authored Aug 16, 2024
2 parents d6b6d7e + 6aeeabe commit 1675868
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ml-kem/src/kem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ use crate::pke::{DecryptionKey, EncryptionKey};
use crate::util::B32;
use crate::{Encoded, EncodedSizeUser};

// Re-export traits from the `kem` crate
pub use ::kem::{Decapsulate, Encapsulate};

/// A shared key resulting from an ML-KEM transaction
pub(crate) type SharedKey = B32;

Expand Down
2 changes: 2 additions & 0 deletions ml-kem/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ use hybrid_array::{
};
use rand_core::CryptoRngCore;

pub use hybrid_array as array;

#[cfg(feature = "deterministic")]
pub use util::B32;

Expand Down

0 comments on commit 1675868

Please sign in to comment.