Skip to content

Commit

Permalink
Expose INDCPA parameters publicly
Browse files Browse the repository at this point in the history
  • Loading branch information
ThibsG committed Feb 12, 2024
1 parent 476e22c commit 6f5586c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
5 changes: 5 additions & 0 deletions src/reference/indcpa.rs
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 6f5586c

Please sign in to comment.