diff --git a/src/lib.rs b/src/lib.rs index 229c89d..0cd1876 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -138,7 +138,9 @@ use reference::*; #[cfg(any(not(target_arch = "x86_64"), not(feature = "avx2")))] #[cfg(feature = "hazmat")] -pub use reference::indcpa; +pub use reference::indcpa::{ + self, KYBER_INDCPA_BYTES, KYBER_INDCPA_PUBLICKEYBYTES, KYBER_INDCPA_SECRETKEYBYTES, +}; #[cfg(feature = "wasm")] mod wasm; diff --git a/src/reference/indcpa.rs b/src/reference/indcpa.rs index d9a436c..f8de37a 100644 --- a/src/reference/indcpa.rs +++ b/src/reference/indcpa.rs @@ -1,6 +1,11 @@ use crate::rng::randombytes; use crate::{params::*, poly::*, polyvec::*, symmetric::*, CryptoRng, KyberError, RngCore}; +#[cfg(feature = "hazmat")] +pub use crate::params::{ + KYBER_INDCPA_BYTES, KYBER_INDCPA_PUBLICKEYBYTES, KYBER_INDCPA_SECRETKEYBYTES, +}; + /// Name: pack_pk /// /// Description: Serialize the public key as concatenation of the