Skip to content

Commit

Permalink
Fix hax extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
jschneider-bensch committed Jun 27, 2024
1 parent 7f349f1 commit 19040cd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions libcrux-ml-kem/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ libcrux-intrinsics = { version = "0.0.2-pre.2", path = "../libcrux-intrinsics" }
# The hax config is set by the hax toolchain.
[target.'cfg(hax)'.dependencies]
hax-lib = { version = "0.1.0-pre.1", git = "https://github.com/hacspec/hax/" }
hax-lib-macros = { version = "0.1.0-pre.1", git = "https://github.com/hacspec/hax/" }

[features]
default = ["std", "mlkem512", "mlkem768", "mlkem1024"]
Expand Down
2 changes: 2 additions & 0 deletions libcrux-ml-kem/src/kem/kyber/ntt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ use super::{
},
constants::COEFFICIENTS_IN_RING_ELEMENT,
};
#[cfg(hax)]
use crate::kem::kyber::constants::FIELD_MODULUS;

const ZETAS_TIMES_MONTGOMERY_R: [FieldElementTimesMontgomeryR; 128] = [
-1044, -758, -359, -1517, 1493, 1422, 287, 202, -171, 622, 1577, 182, 962, -1202, -1474, 1468,
Expand Down

0 comments on commit 19040cd

Please sign in to comment.