From 6aeeabef6a616a922633bf9aeacacbf1bf45b958 Mon Sep 17 00:00:00 2001 From: Tony Arcieri Date: Fri, 16 Aug 2024 14:11:51 -0600 Subject: [PATCH] ml-kem: re-export `kem` traits and `hybrid-array` - Re-exports `kem::{Decapsulate, Encapsulate}` under `kem` module - Re-exports `hybrid-array` as `array` Closes #36 --- ml-kem/src/kem.rs | 3 +++ ml-kem/src/lib.rs | 2 ++ 2 files changed, 5 insertions(+) diff --git a/ml-kem/src/kem.rs b/ml-kem/src/kem.rs index 8485d64..573f9f2 100644 --- a/ml-kem/src/kem.rs +++ b/ml-kem/src/kem.rs @@ -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; diff --git a/ml-kem/src/lib.rs b/ml-kem/src/lib.rs index 079e31d..51b98d0 100644 --- a/ml-kem/src/lib.rs +++ b/ml-kem/src/lib.rs @@ -73,6 +73,8 @@ use hybrid_array::{ }; use rand_core::CryptoRngCore; +pub use hybrid_array as array; + #[cfg(feature = "deterministic")] pub use util::B32;