Skip to content

Commit

Permalink
Switch from Kyber to mlkem.
Browse files Browse the repository at this point in the history
Joint work with Pratish Sungum.

Signed-off-by: Loganaden Velvindron <[email protected]>
  • Loading branch information
loganaden committed Dec 18, 2024
1 parent d807a1b commit 3ff5264
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ serde = { version = "1.0.216", features = ["derive"] }
arbitrary = { version = "1.4.1", features = ["derive"] }
anyhow = { version = "1.0.94", features = ["backtrace", "std"] }
mio = { version = "1.0.3", features = ["net", "os-poll"] }
oqs-sys = { version = "0.9.1", default-features = false, features = [
oqs-sys = { version = "0.10.0", default-features = false, features = [
'classic_mceliece',
'kyber',
'ml_kem',
] }
blake2 = "0.10.6"
chacha20poly1305 = { version = "0.10.1", default-features = false, features = [
Expand Down
6 changes: 3 additions & 3 deletions ciphers/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ pub mod hash_domain;

/// This crate includes two key encapsulation mechanisms.
/// Namely ClassicMceliece460896 (also referred to as `StaticKem` sometimes) and
/// Kyber512 (also referred to as `EphemeralKem` sometimes).
/// mlkem512 (also referred to as `EphemeralKem` sometimes).
///
/// See [rosenpass_oqs::ClassicMceliece460896]
/// and [rosenpass_oqs::Kyber512] for more details on the specific KEMS.
/// and [rosenpass_oqs::MlKem512] for more details on the specific KEMS.
///
pub mod kem {
pub use rosenpass_oqs::ClassicMceliece460896 as StaticKem;
pub use rosenpass_oqs::Kyber512 as EphemeralKem;
pub use rosenpass_oqs::MlKem512 as EphemeralKem;
}
2 changes: 1 addition & 1 deletion oqs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ macro_rules! oqs_call {

#[macro_use]
mod kem_macro;
oqs_kem!(kyber_512);
oqs_kem!(ml_kem_512);
oqs_kem!(classic_mceliece_460896);
2 changes: 1 addition & 1 deletion rosenpass/src/hash_domains.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ macro_rules! hash_domain {
///
/// See the [module](self) documentation on how to use the hash domains in general
pub fn protocol() -> Result<HashDomain> {
HashDomain::zero().mix("Rosenpass v1 mceliece460896 Kyber512 ChaChaPoly1305 BLAKE2s".as_bytes())
HashDomain::zero().mix("Rosenpass v1 mceliece460896 MlKem512 ChaChaPoly1305 BLAKE2s".as_bytes())
}

hash_domain_ns!(
Expand Down

0 comments on commit 3ff5264

Please sign in to comment.