Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add real CI for ML-KEM #5

Merged
merged 11 commits into from
Mar 3, 2024
Merged
4 changes: 1 addition & 3 deletions ml-kem/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@ default = []
deterministic = [] # Expose deterministic generation and encapsulation functions

[dependencies]
const-default = "1.0.0"
crypto-common = { version = "0.1.6", features = ["getrandom"] }
generic-array = { version = "1.0.0", features = ["const-default"] }
hybrid-array = { version = "0.2.0-rc.6" }
rand_core = "0.6.4"
sha3 = "0.10.8"
tarcieri marked this conversation as resolved.
Show resolved Hide resolved

[dev-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion ml-kem/src/crypto.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#![allow(dead_code)]

use crypto_common::rand_core::CryptoRngCore;
use hybrid_array::{Array, ArraySize};
use rand_core::CryptoRngCore;
use sha3::{
digest::{ExtendableOutput, Update, XofReader},
Digest, Sha3_256, Sha3_512, Shake128, Shake256,
Expand Down
2 changes: 1 addition & 1 deletion ml-kem/src/kem.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use core::marker::PhantomData;
use crypto_common::rand_core::CryptoRngCore;
use hybrid_array::typenum::U32;
use rand_core::CryptoRngCore;

use crate::crypto::{rand, G, H, J};
use crate::param::{DecapsulationKeySize, EncapsulationKeySize, EncodedCiphertext, KemParams};
Expand Down
2 changes: 1 addition & 1 deletion ml-kem/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ pub mod kem;
mod param;

use core::fmt::Debug;
use crypto_common::rand_core::CryptoRngCore;
use hybrid_array::{
typenum::{U10, U11, U2, U3, U4, U5},
Array,
};
use rand_core::CryptoRngCore;

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