Skip to content

Commit

Permalink
Merge pull request #35 from cryspen/jonas/mainline-sync
Browse files Browse the repository at this point in the history
Sync with mainline `libcrux`
  • Loading branch information
jschneider-bensch authored Jan 14, 2025
2 parents f2cff84 + 2199f21 commit 26eab9d
Show file tree
Hide file tree
Showing 136 changed files with 14,473 additions and 11,165 deletions.
2 changes: 1 addition & 1 deletion libcrux-nrf52810/src/bin/mldsa_sign.rs
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ fn main() -> ! {
use libcrux_ml_dsa::MLDSASigningKey;
let signing_randomness = [4u8; 32];
let message = [5u8; 2];
let _signature = mldsa::sign(&MLDSASigningKey(SK), &message, b"", signing_randomness).unwrap();
let _signature = mldsa::sign(&MLDSASigningKey::new(SK), &message, b"", signing_randomness).unwrap();

board::exit()
}
4 changes: 2 additions & 2 deletions libcrux-nrf52810/src/bin/mldsa_verify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -367,10 +367,10 @@ fn main() -> ! {
use libcrux_ml_dsa::{MLDSASignature, MLDSAVerificationKey};
let message = [5u8; 2];
let _ = mldsa::verify(
&MLDSAVerificationKey(VK),
&MLDSAVerificationKey::new(VK),
&message,
b"",
&MLDSASignature(SIGNATURE),
&MLDSASignature::new(SIGNATURE),
)
.unwrap();

Expand Down
1 change: 1 addition & 0 deletions libcrux-testbench/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ libcrux-ml-kem = { path = "../libcrux/libcrux-ml-kem", default-features = false,
libcrux-iot-testutil = { path = "../libcrux-iot-testutil" }

[features]
default = ["mldsa87", "mlkem1024"]
mldsa44 = []
mldsa65 = []
mldsa87 = []
Expand Down
1 change: 1 addition & 0 deletions libcrux/libcrux-intrinsics/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ description = "Libcrux-IoT intrinsics crate"
exclude = ["/proofs"]

[dependencies]
hax-lib = { version = "0.1.0-alpha.1", git = "https://github.com/hacspec/hax/" }

[features]
simd128 = []
Expand Down
Loading

0 comments on commit 26eab9d

Please sign in to comment.