[INFO] fetching crate qudag-crypto 0.5.1... [INFO] testing qudag-crypto-0.5.1 against try#2440211fe03bc45c89b6dc1a3df18382ce91e32b for pr-146098-1 [INFO] extracting crate qudag-crypto 0.5.1 into /workspace/builds/worker-6-tc2/source [INFO] started tweaking crates.io crate qudag-crypto 0.5.1 [INFO] removed 0 missing examples [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate qudag-crypto 0.5.1 [INFO] tweaked toml for crates.io crate qudag-crypto 0.5.1 written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate qudag-crypto 0.5.1 on toolchain 2440211fe03bc45c89b6dc1a3df18382ce91e32b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate qudag-crypto 0.5.1 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4304b80c6cb2ca814f21fac13cb4d5db16bf734bf7fd81cbf1eb8d28b42bcf37 [INFO] running `Command { std: "docker" "start" "-a" "4304b80c6cb2ca814f21fac13cb4d5db16bf734bf7fd81cbf1eb8d28b42bcf37", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4304b80c6cb2ca814f21fac13cb4d5db16bf734bf7fd81cbf1eb8d28b42bcf37", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4304b80c6cb2ca814f21fac13cb4d5db16bf734bf7fd81cbf1eb8d28b42bcf37", kill_on_drop: false }` [INFO] [stdout] 4304b80c6cb2ca814f21fac13cb4d5db16bf734bf7fd81cbf1eb8d28b42bcf37 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9e39dc7e1cd5214602ae69faae64bd51dbc44208c30dfa4939cf099b1ba555d6 [INFO] running `Command { std: "docker" "start" "-a" "9e39dc7e1cd5214602ae69faae64bd51dbc44208c30dfa4939cf099b1ba555d6", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Compiling glob v0.3.2 [INFO] [stderr] Compiling semver v1.0.26 [INFO] [stderr] Compiling dunce v1.0.5 [INFO] [stderr] Compiling zerocopy v0.8.26 [INFO] [stderr] Compiling pqcrypto-traits v0.3.5 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling signature v2.2.0 [INFO] [stderr] Compiling base64ct v1.8.0 [INFO] [stderr] Compiling keccak v0.1.5 [INFO] [stderr] Compiling ed25519 v2.2.3 [INFO] [stderr] Compiling rustc_version v0.4.1 [INFO] [stderr] Compiling curve25519-dalek v4.1.3 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling jobserver v0.1.33 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling cc v1.2.27 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling password-hash v0.5.0 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling universal-hash v0.5.1 [INFO] [stderr] Compiling aead v0.5.2 [INFO] [stderr] Compiling polyval v0.6.2 [INFO] [stderr] Compiling poly1305 v0.8.0 [INFO] [stderr] Compiling ghash v0.5.1 [INFO] [stderr] Compiling blake2 v0.10.6 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Compiling sha3 v0.10.8 [INFO] [stderr] Compiling argon2 v0.5.3 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling pqcrypto-internals v0.2.10 [INFO] [stderr] Compiling pqcrypto-dilithium v0.5.0 [INFO] [stderr] Compiling pqcrypto-hqc v0.2.1 [INFO] [stderr] Compiling pqcrypto-kyber v0.5.0 [INFO] [stderr] Compiling blake3 v1.8.2 [INFO] [stderr] Compiling zeroize_derive v1.4.2 [INFO] [stderr] Compiling curve25519-dalek-derive v0.1.1 [INFO] [stderr] Compiling zeroize v1.8.1 [INFO] [stderr] Compiling cipher v0.4.4 [INFO] [stderr] Compiling ctr v0.9.2 [INFO] [stderr] Compiling aes v0.8.4 [INFO] [stderr] Compiling chacha20 v0.9.1 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling chacha20poly1305 v0.10.1 [INFO] [stderr] Compiling ed25519-dalek v2.1.1 [INFO] [stderr] Compiling x25519-dalek v2.0.1 [INFO] [stderr] Compiling aes-gcm v0.10.3 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling qudag-crypto v0.5.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 08s [INFO] running `Command { std: "docker" "inspect" "9e39dc7e1cd5214602ae69faae64bd51dbc44208c30dfa4939cf099b1ba555d6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9e39dc7e1cd5214602ae69faae64bd51dbc44208c30dfa4939cf099b1ba555d6", kill_on_drop: false }` [INFO] [stdout] 9e39dc7e1cd5214602ae69faae64bd51dbc44208c30dfa4939cf099b1ba555d6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1dfae80fb6a0f761d2bf84c073b5541aba21c3b92d1e6d090e659b2d4ecdbf9a [INFO] running `Command { std: "docker" "start" "-a" "1dfae80fb6a0f761d2bf84c073b5541aba21c3b92d1e6d090e659b2d4ecdbf9a", kill_on_drop: false }` [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling rustix v1.0.7 [INFO] [stderr] Compiling bitflags v2.9.1 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling wait-timeout v0.2.1 [INFO] [stderr] Compiling quick-error v1.2.3 [INFO] [stderr] Compiling bit-vec v0.8.0 [INFO] [stderr] Compiling unarray v0.1.4 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling rand_core v0.9.3 [INFO] [stderr] Compiling bit-set v0.8.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling rand v0.9.1 [INFO] [stderr] Compiling rand_xorshift v0.4.0 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling qudag-crypto v0.5.1 (/opt/rustwide/workdir) [INFO] [stderr] Compiling tempfile v3.20.0 [INFO] [stderr] Compiling rusty-fork v0.3.0 [INFO] [stderr] Compiling proptest v1.7.0 [INFO] [stdout] error[E0432]: unresolved import `qudag_crypto::kem::ml_kem` [INFO] [stdout] --> tests/test_vectors.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | use qudag_crypto::kem::ml_kem::*; [INFO] [stdout] | ^^^^^^ could not find `ml_kem` in `kem` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `qudag-crypto` (test "test_vectors") due to 1 previous error [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0432]: unresolved import `hex_literal` [INFO] [stdout] --> tests/ml_kem_tests.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use hex_literal::hex; [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `hex_literal` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `hex_literal`, use `cargo add hex_literal` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ct_bytes` [INFO] [stdout] --> tests/hqc_tests.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | ct_bytes in prop::collection::vec(0u8..255, Hqc256::CIPHERTEXT_SIZE) [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ct_bytes` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hex` [INFO] [stdout] --> tests/nist_test_vectors.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use hex; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Metrics as MlKemMetrics`, `MlDsaKeyPair`, `MlDsaPublicKey`, `PublicKey`, `SecretKey`, and `SharedSecret` [INFO] [stdout] --> tests/nist_test_vectors.rs:10:41 [INFO] [stdout] | [INFO] [stdout] 10 | kem::{Ciphertext, KeyEncapsulation, PublicKey, SecretKey, SharedSecret}, [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] 11 | ml_dsa::{MlDsa, MlDsaKeyPair, MlDsaPublicKey}, [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] 12 | ml_kem::{Metrics as MlKemMetrics, MlKem768}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `KEMError` and `SharedSecret` [INFO] [stdout] --> tests/ml_kem_tests.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | Ciphertext, KEMError, KeyEncapsulation, PublicKey, SecretKey, SharedSecret, [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> tests/nist_test_vectors.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `KeyEncapsulation` [INFO] [stdout] --> tests/ml_kem_tests.rs:4:27 [INFO] [stdout] | [INFO] [stdout] 4 | Ciphertext, KEMError, KeyEncapsulation, PublicKey, SecretKey, SharedSecret, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ct` [INFO] [stdout] --> tests/ml_kem_tests.rs:97:13 [INFO] [stdout] | [INFO] [stdout] 97 | let ct = Ciphertext::from_bytes(&ct_bytes).unwrap_or_else(|_| panic!("Failed to create ciphertext")); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ct` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `encapsulate` in this scope [INFO] [stdout] --> tests/timing_tests.rs:47:45 [INFO] [stdout] | [INFO] [stdout] 47 | let (_, duration) = measure_time(|| encapsulate(&keypair.public_key)); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 1 + use pqcrypto_hqc::hqc128::encapsulate; [INFO] [stdout] | [INFO] [stdout] 1 + use pqcrypto_hqc::hqc192::encapsulate; [INFO] [stdout] | [INFO] [stdout] 1 + use pqcrypto_hqc::hqc256::encapsulate; [INFO] [stdout] | [INFO] [stdout] 1 + use pqcrypto_kyber::kyber1024::encapsulate; [INFO] [stdout] | [INFO] [stdout] = and 2 other candidates [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `encapsulate` in this scope [INFO] [stdout] --> tests/timing_tests.rs:65:19 [INFO] [stdout] | [INFO] [stdout] 65 | let (_, ct) = encapsulate(&keypair.public_key).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 1 + use pqcrypto_hqc::hqc128::encapsulate; [INFO] [stdout] | [INFO] [stdout] 1 + use pqcrypto_hqc::hqc192::encapsulate; [INFO] [stdout] | [INFO] [stdout] 1 + use pqcrypto_hqc::hqc256::encapsulate; [INFO] [stdout] | [INFO] [stdout] 1 + use pqcrypto_kyber::kyber1024::encapsulate; [INFO] [stdout] | [INFO] [stdout] = and 2 other candidates [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `decapsulate` in this scope [INFO] [stdout] --> tests/timing_tests.rs:72:45 [INFO] [stdout] | [INFO] [stdout] 72 | let (_, duration) = measure_time(|| decapsulate(&keypair.secret_key, &ct)); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 1 + use pqcrypto_hqc::hqc128::decapsulate; [INFO] [stdout] | [INFO] [stdout] 1 + use pqcrypto_hqc::hqc192::decapsulate; [INFO] [stdout] | [INFO] [stdout] 1 + use pqcrypto_hqc::hqc256::decapsulate; [INFO] [stdout] | [INFO] [stdout] 1 + use pqcrypto_kyber::kyber1024::decapsulate; [INFO] [stdout] | [INFO] [stdout] = and 2 other candidates [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `decapsulate` in this scope [INFO] [stdout] --> tests/timing_tests.rs:80:45 [INFO] [stdout] | [INFO] [stdout] 80 | let (_, duration) = measure_time(|| decapsulate(&keypair.secret_key, &invalid_ct)); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 1 + use pqcrypto_hqc::hqc128::decapsulate; [INFO] [stdout] | [INFO] [stdout] 1 + use pqcrypto_hqc::hqc192::decapsulate; [INFO] [stdout] | [INFO] [stdout] 1 + use pqcrypto_hqc::hqc256::decapsulate; [INFO] [stdout] | [INFO] [stdout] 1 + use pqcrypto_kyber::kyber1024::decapsulate; [INFO] [stdout] | [INFO] [stdout] = and 2 other candidates [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `qudag_crypto::ml_kem::*` [INFO] [stdout] --> tests/timing_tests.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use qudag_crypto::ml_kem::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `generate_keypair` in this scope [INFO] [stdout] --> tests/timing_tests.rs:23:45 [INFO] [stdout] | [INFO] [stdout] 23 | let (_, duration) = measure_time(|| generate_keypair(&mut rng)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `[u8; 48]: Serialize` is not satisfied [INFO] [stdout] --> tests/nist_test_vectors.rs:18:24 [INFO] [stdout] | [INFO] [stdout] 18 | #[derive(Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^ the trait `Serialize` is not implemented for `[u8; 48]` [INFO] [stdout] ... [INFO] [stdout] 21 | seed: [u8; 48], [INFO] [stdout] | -------------- required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = note: for local types consider adding `#[derive(serde::Serialize)]` to your `[u8; 48]` type [INFO] [stdout] = note: for types from other crates check whether the crate offers a `serde` feature flag [INFO] [stdout] = help: the following other types implement trait `Serialize`: [INFO] [stdout] [T; 0] [INFO] [stdout] [T] [INFO] [stdout] [T; 1] [INFO] [stdout] [T; 2] [INFO] [stdout] [T; 3] [INFO] [stdout] [T; 4] [INFO] [stdout] [T; 5] [INFO] [stdout] [T; 6] [INFO] [stdout] and 26 others [INFO] [stdout] note: required by a bound in `_::_serde::ser::SerializeStruct::serialize_field` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde-1.0.219/src/ser/mod.rs:1866:21 [INFO] [stdout] | [INFO] [stdout] 1864 | fn serialize_field(&mut self, key: &'static str, value: &T) -> Result<(), Self::Error> [INFO] [stdout] | --------------- required by a bound in this associated function [INFO] [stdout] 1865 | where [INFO] [stdout] 1866 | T: ?Sized + Serialize; [INFO] [stdout] | ^^^^^^^^^ required by this bound in `SerializeStruct::serialize_field` [INFO] [stdout] = note: this error originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `generate_keypair` in this scope [INFO] [stdout] --> tests/timing_tests.rs:42:19 [INFO] [stdout] | [INFO] [stdout] 42 | let keypair = generate_keypair(&mut rng).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `generate_keypair` in this scope [INFO] [stdout] --> tests/timing_tests.rs:64:19 [INFO] [stdout] | [INFO] [stdout] 64 | let keypair = generate_keypair(&mut rng).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `qudag-crypto` (test "ml_kem_tests") due to 1 previous error; 3 warnings emitted [INFO] [stdout] error[E0425]: cannot find function `constant_time_compare` in this scope [INFO] [stdout] --> tests/timing_tests.rs:108:45 [INFO] [stdout] | [INFO] [stdout] 108 | let (_, duration) = measure_time(|| constant_time_compare(&data1, &data2)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `constant_time_compare` in this scope [INFO] [stdout] --> tests/timing_tests.rs:115:45 [INFO] [stdout] | [INFO] [stdout] 115 | let (_, duration) = measure_time(|| constant_time_compare(&data1, &data2)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `[u8; 48]: Deserialize<'_>` is not satisfied [INFO] [stdout] --> tests/nist_test_vectors.rs:21:11 [INFO] [stdout] | [INFO] [stdout] 21 | seed: [u8; 48], [INFO] [stdout] | ^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `[u8; 48]` [INFO] [stdout] | [INFO] [stdout] = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `[u8; 48]` type [INFO] [stdout] = note: for types from other crates check whether the crate offers a `serde` feature flag [INFO] [stdout] = help: the following other types implement trait `Deserialize<'de>`: [INFO] [stdout] &[u8] [INFO] [stdout] [T; 0] [INFO] [stdout] [T; 1] [INFO] [stdout] [T; 2] [INFO] [stdout] [T; 3] [INFO] [stdout] [T; 4] [INFO] [stdout] [T; 5] [INFO] [stdout] [T; 6] [INFO] [stdout] and 26 others [INFO] [stdout] note: required by a bound in `next_element` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde-1.0.219/src/de/mod.rs:1732:12 [INFO] [stdout] | [INFO] [stdout] 1730 | fn next_element(&mut self) -> Result, Self::Error> [INFO] [stdout] | ------------ required by a bound in this associated function [INFO] [stdout] 1731 | where [INFO] [stdout] 1732 | T: Deserialize<'de>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ required by this bound in `SeqAccess::next_element` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `[u8; 48]: Deserialize<'_>` is not satisfied [INFO] [stdout] --> tests/nist_test_vectors.rs:21:11 [INFO] [stdout] | [INFO] [stdout] 21 | seed: [u8; 48], [INFO] [stdout] | ^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `[u8; 48]` [INFO] [stdout] | [INFO] [stdout] = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `[u8; 48]` type [INFO] [stdout] = note: for types from other crates check whether the crate offers a `serde` feature flag [INFO] [stdout] = help: the following other types implement trait `Deserialize<'de>`: [INFO] [stdout] &[u8] [INFO] [stdout] [T; 0] [INFO] [stdout] [T; 1] [INFO] [stdout] [T; 2] [INFO] [stdout] [T; 3] [INFO] [stdout] [T; 4] [INFO] [stdout] [T; 5] [INFO] [stdout] [T; 6] [INFO] [stdout] and 26 others [INFO] [stdout] note: required by a bound in `next_value` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde-1.0.219/src/de/mod.rs:1871:12 [INFO] [stdout] | [INFO] [stdout] 1869 | fn next_value(&mut self) -> Result [INFO] [stdout] | ---------- required by a bound in this associated function [INFO] [stdout] 1870 | where [INFO] [stdout] 1871 | V: Deserialize<'de>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ required by this bound in `MapAccess::next_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `qudag-crypto` (test "timing_tests") due to 9 previous errors; 1 warning emitted [INFO] [stdout] error[E0277]: the trait bound `[u8; 48]: Deserialize<'_>` is not satisfied [INFO] [stdout] --> tests/nist_test_vectors.rs:18:35 [INFO] [stdout] | [INFO] [stdout] 18 | #[derive(Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `[u8; 48]` [INFO] [stdout] | [INFO] [stdout] = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `[u8; 48]` type [INFO] [stdout] = note: for types from other crates check whether the crate offers a `serde` feature flag [INFO] [stdout] = help: the following other types implement trait `Deserialize<'de>`: [INFO] [stdout] &[u8] [INFO] [stdout] [T; 0] [INFO] [stdout] [T; 1] [INFO] [stdout] [T; 2] [INFO] [stdout] [T; 3] [INFO] [stdout] [T; 4] [INFO] [stdout] [T; 5] [INFO] [stdout] [T; 6] [INFO] [stdout] and 26 others [INFO] [stdout] note: required by a bound in `_::_serde::__private::de::missing_field` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde-1.0.219/src/private/de.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn missing_field<'de, V, E>(field: &'static str) -> Result [INFO] [stdout] | ------------- required by a bound in this function [INFO] [stdout] 24 | where [INFO] [stdout] 25 | V: Deserialize<'de>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ required by this bound in `missing_field` [INFO] [stdout] = note: this error originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `[u8; 48]: Serialize` is not satisfied [INFO] [stdout] --> tests/nist_test_vectors.rs:29:24 [INFO] [stdout] | [INFO] [stdout] 29 | #[derive(Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^ the trait `Serialize` is not implemented for `[u8; 48]` [INFO] [stdout] ... [INFO] [stdout] 32 | seed: [u8; 48], [INFO] [stdout] | -------------- required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = note: for local types consider adding `#[derive(serde::Serialize)]` to your `[u8; 48]` type [INFO] [stdout] = note: for types from other crates check whether the crate offers a `serde` feature flag [INFO] [stdout] = help: the following other types implement trait `Serialize`: [INFO] [stdout] [T; 0] [INFO] [stdout] [T] [INFO] [stdout] [T; 1] [INFO] [stdout] [T; 2] [INFO] [stdout] [T; 3] [INFO] [stdout] [T; 4] [INFO] [stdout] [T; 5] [INFO] [stdout] [T; 6] [INFO] [stdout] and 26 others [INFO] [stdout] note: required by a bound in `_::_serde::ser::SerializeStruct::serialize_field` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde-1.0.219/src/ser/mod.rs:1866:21 [INFO] [stdout] | [INFO] [stdout] 1864 | fn serialize_field(&mut self, key: &'static str, value: &T) -> Result<(), Self::Error> [INFO] [stdout] | --------------- required by a bound in this associated function [INFO] [stdout] 1865 | where [INFO] [stdout] 1866 | T: ?Sized + Serialize; [INFO] [stdout] | ^^^^^^^^^ required by this bound in `SerializeStruct::serialize_field` [INFO] [stdout] = note: this error originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `[u8; 48]: Deserialize<'_>` is not satisfied [INFO] [stdout] --> tests/nist_test_vectors.rs:32:11 [INFO] [stdout] | [INFO] [stdout] 32 | seed: [u8; 48], [INFO] [stdout] | ^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `[u8; 48]` [INFO] [stdout] | [INFO] [stdout] = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `[u8; 48]` type [INFO] [stdout] = note: for types from other crates check whether the crate offers a `serde` feature flag [INFO] [stdout] = help: the following other types implement trait `Deserialize<'de>`: [INFO] [stdout] &[u8] [INFO] [stdout] [T; 0] [INFO] [stdout] [T; 1] [INFO] [stdout] [T; 2] [INFO] [stdout] [T; 3] [INFO] [stdout] [T; 4] [INFO] [stdout] [T; 5] [INFO] [stdout] [T; 6] [INFO] [stdout] and 26 others [INFO] [stdout] note: required by a bound in `next_element` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde-1.0.219/src/de/mod.rs:1732:12 [INFO] [stdout] | [INFO] [stdout] 1730 | fn next_element(&mut self) -> Result, Self::Error> [INFO] [stdout] | ------------ required by a bound in this associated function [INFO] [stdout] 1731 | where [INFO] [stdout] 1732 | T: Deserialize<'de>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ required by this bound in `SeqAccess::next_element` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `[u8; 48]: Deserialize<'_>` is not satisfied [INFO] [stdout] --> tests/nist_test_vectors.rs:32:11 [INFO] [stdout] | [INFO] [stdout] 32 | seed: [u8; 48], [INFO] [stdout] | ^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `[u8; 48]` [INFO] [stdout] | [INFO] [stdout] = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `[u8; 48]` type [INFO] [stdout] = note: for types from other crates check whether the crate offers a `serde` feature flag [INFO] [stdout] = help: the following other types implement trait `Deserialize<'de>`: [INFO] [stdout] &[u8] [INFO] [stdout] [T; 0] [INFO] [stdout] [T; 1] [INFO] [stdout] [T; 2] [INFO] [stdout] [T; 3] [INFO] [stdout] [T; 4] [INFO] [stdout] [T; 5] [INFO] [stdout] [T; 6] [INFO] [stdout] and 26 others [INFO] [stdout] note: required by a bound in `next_value` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde-1.0.219/src/de/mod.rs:1871:12 [INFO] [stdout] | [INFO] [stdout] 1869 | fn next_value(&mut self) -> Result [INFO] [stdout] | ---------- required by a bound in this associated function [INFO] [stdout] 1870 | where [INFO] [stdout] 1871 | V: Deserialize<'de>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ required by this bound in `MapAccess::next_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `[u8; 48]: Deserialize<'_>` is not satisfied [INFO] [stdout] --> tests/nist_test_vectors.rs:29:35 [INFO] [stdout] | [INFO] [stdout] 29 | #[derive(Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `[u8; 48]` [INFO] [stdout] | [INFO] [stdout] = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `[u8; 48]` type [INFO] [stdout] = note: for types from other crates check whether the crate offers a `serde` feature flag [INFO] [stdout] = help: the following other types implement trait `Deserialize<'de>`: [INFO] [stdout] &[u8] [INFO] [stdout] [T; 0] [INFO] [stdout] [T; 1] [INFO] [stdout] [T; 2] [INFO] [stdout] [T; 3] [INFO] [stdout] [T; 4] [INFO] [stdout] [T; 5] [INFO] [stdout] [T; 6] [INFO] [stdout] and 26 others [INFO] [stdout] note: required by a bound in `_::_serde::__private::de::missing_field` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde-1.0.219/src/private/de.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn missing_field<'de, V, E>(field: &'static str) -> Result [INFO] [stdout] | ------------- required by a bound in this function [INFO] [stdout] 24 | where [INFO] [stdout] 25 | V: Deserialize<'de>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ required by this bound in `missing_field` [INFO] [stdout] = note: this error originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `[u8; 48]: Serialize` is not satisfied [INFO] [stdout] --> tests/nist_test_vectors.rs:41:24 [INFO] [stdout] | [INFO] [stdout] 41 | #[derive(Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^ the trait `Serialize` is not implemented for `[u8; 48]` [INFO] [stdout] ... [INFO] [stdout] 44 | seed: [u8; 48], [INFO] [stdout] | -------------- required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = note: for local types consider adding `#[derive(serde::Serialize)]` to your `[u8; 48]` type [INFO] [stdout] = note: for types from other crates check whether the crate offers a `serde` feature flag [INFO] [stdout] = help: the following other types implement trait `Serialize`: [INFO] [stdout] [T; 0] [INFO] [stdout] [T] [INFO] [stdout] [T; 1] [INFO] [stdout] [T; 2] [INFO] [stdout] [T; 3] [INFO] [stdout] [T; 4] [INFO] [stdout] [T; 5] [INFO] [stdout] [T; 6] [INFO] [stdout] and 26 others [INFO] [stdout] note: required by a bound in `_::_serde::ser::SerializeStruct::serialize_field` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde-1.0.219/src/ser/mod.rs:1866:21 [INFO] [stdout] | [INFO] [stdout] 1864 | fn serialize_field(&mut self, key: &'static str, value: &T) -> Result<(), Self::Error> [INFO] [stdout] | --------------- required by a bound in this associated function [INFO] [stdout] 1865 | where [INFO] [stdout] 1866 | T: ?Sized + Serialize; [INFO] [stdout] | ^^^^^^^^^ required by this bound in `SerializeStruct::serialize_field` [INFO] [stdout] = note: this error originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `[u8; 48]: Deserialize<'_>` is not satisfied [INFO] [stdout] --> tests/nist_test_vectors.rs:44:11 [INFO] [stdout] | [INFO] [stdout] 44 | seed: [u8; 48], [INFO] [stdout] | ^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `[u8; 48]` [INFO] [stdout] | [INFO] [stdout] = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `[u8; 48]` type [INFO] [stdout] = note: for types from other crates check whether the crate offers a `serde` feature flag [INFO] [stdout] = help: the following other types implement trait `Deserialize<'de>`: [INFO] [stdout] &[u8] [INFO] [stdout] [T; 0] [INFO] [stdout] [T; 1] [INFO] [stdout] [T; 2] [INFO] [stdout] [T; 3] [INFO] [stdout] [T; 4] [INFO] [stdout] [T; 5] [INFO] [stdout] [T; 6] [INFO] [stdout] and 26 others [INFO] [stdout] note: required by a bound in `next_element` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde-1.0.219/src/de/mod.rs:1732:12 [INFO] [stdout] | [INFO] [stdout] 1730 | fn next_element(&mut self) -> Result, Self::Error> [INFO] [stdout] | ------------ required by a bound in this associated function [INFO] [stdout] 1731 | where [INFO] [stdout] 1732 | T: Deserialize<'de>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ required by this bound in `SeqAccess::next_element` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `[u8; 48]: Deserialize<'_>` is not satisfied [INFO] [stdout] --> tests/nist_test_vectors.rs:44:11 [INFO] [stdout] | [INFO] [stdout] 44 | seed: [u8; 48], [INFO] [stdout] | ^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `[u8; 48]` [INFO] [stdout] | [INFO] [stdout] = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `[u8; 48]` type [INFO] [stdout] = note: for types from other crates check whether the crate offers a `serde` feature flag [INFO] [stdout] = help: the following other types implement trait `Deserialize<'de>`: [INFO] [stdout] &[u8] [INFO] [stdout] [T; 0] [INFO] [stdout] [T; 1] [INFO] [stdout] [T; 2] [INFO] [stdout] [T; 3] [INFO] [stdout] [T; 4] [INFO] [stdout] [T; 5] [INFO] [stdout] [T; 6] [INFO] [stdout] and 26 others [INFO] [stdout] note: required by a bound in `next_value` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde-1.0.219/src/de/mod.rs:1871:12 [INFO] [stdout] | [INFO] [stdout] 1869 | fn next_value(&mut self) -> Result [INFO] [stdout] | ---------- required by a bound in this associated function [INFO] [stdout] 1870 | where [INFO] [stdout] 1871 | V: Deserialize<'de>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ required by this bound in `MapAccess::next_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `[u8; 48]: Deserialize<'_>` is not satisfied [INFO] [stdout] --> tests/nist_test_vectors.rs:41:35 [INFO] [stdout] | [INFO] [stdout] 41 | #[derive(Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `[u8; 48]` [INFO] [stdout] | [INFO] [stdout] = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `[u8; 48]` type [INFO] [stdout] = note: for types from other crates check whether the crate offers a `serde` feature flag [INFO] [stdout] = help: the following other types implement trait `Deserialize<'de>`: [INFO] [stdout] &[u8] [INFO] [stdout] [T; 0] [INFO] [stdout] [T; 1] [INFO] [stdout] [T; 2] [INFO] [stdout] [T; 3] [INFO] [stdout] [T; 4] [INFO] [stdout] [T; 5] [INFO] [stdout] [T; 6] [INFO] [stdout] and 26 others [INFO] [stdout] note: required by a bound in `_::_serde::__private::de::missing_field` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde-1.0.219/src/private/de.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn missing_field<'de, V, E>(field: &'static str) -> Result [INFO] [stdout] | ------------- required by a bound in this function [INFO] [stdout] 24 | where [INFO] [stdout] 25 | V: Deserialize<'de>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ required by this bound in `missing_field` [INFO] [stdout] = note: this error originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 0 arguments were supplied [INFO] [stdout] --> tests/nist_test_vectors.rs:205:27 [INFO] [stdout] | [INFO] [stdout] 205 | let keypair = MlDsa::keygen().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^-- argument #1 of type `&mut _` is missing [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/ml_dsa/mod.rs:891:12 [INFO] [stdout] | [INFO] [stdout] 891 | pub fn keygen( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 205 | let keypair = MlDsa::keygen(/* rng */).unwrap(); [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_bytes` found for reference `&[u8]` in the current scope [INFO] [stdout] --> tests/nist_test_vectors.rs:209:38 [INFO] [stdout] | [INFO] [stdout] 209 | keypair.public_key().as_bytes().len(), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `IntoBytes` which provides `as_bytes` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 152 + use zerocopy::IntoBytes; [INFO] [stdout] | [INFO] [stdout] help: there is a method `bytes` with a similar name [INFO] [stdout] | [INFO] [stdout] 209 - keypair.public_key().as_bytes().len(), [INFO] [stdout] 209 + keypair.public_key().bytes().len(), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_bytes` found for reference `&[u8]` in the current scope [INFO] [stdout] --> tests/nist_test_vectors.rs:214:38 [INFO] [stdout] | [INFO] [stdout] 214 | keypair.secret_key().as_bytes().len(), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `IntoBytes` which provides `as_bytes` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 152 + use zerocopy::IntoBytes; [INFO] [stdout] | [INFO] [stdout] help: there is a method `bytes` with a similar name [INFO] [stdout] | [INFO] [stdout] 214 - keypair.secret_key().as_bytes().len(), [INFO] [stdout] 214 + keypair.secret_key().bytes().len(), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 3 arguments but 2 arguments were supplied [INFO] [stdout] --> tests/nist_test_vectors.rs:220:29 [INFO] [stdout] | [INFO] [stdout] 220 | let signature = MlDsa::sign(&vector.msg, keypair.secret_key()).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^----------------------------------- argument #3 of type `&mut _` is missing [INFO] [stdout] | [INFO] [stdout] note: expected `&MlDsaKeyPair`, found `&Vec` [INFO] [stdout] --> tests/nist_test_vectors.rs:220:41 [INFO] [stdout] | [INFO] [stdout] 220 | let signature = MlDsa::sign(&vector.msg, keypair.secret_key()).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] = note: expected reference `&MlDsaKeyPair` [INFO] [stdout] found reference `&Vec` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/ml_dsa/mod.rs:898:12 [INFO] [stdout] | [INFO] [stdout] 898 | pub fn sign( [INFO] [stdout] | ^^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 220 - let signature = MlDsa::sign(&vector.msg, keypair.secret_key()).unwrap(); [INFO] [stdout] 220 + let signature = MlDsa::sign(/* &MlDsaKeyPair */, keypair.secret_key(), /* rng */).unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/nist_test_vectors.rs:228:31 [INFO] [stdout] | [INFO] [stdout] 228 | MlDsa::verify(&vector.msg, &signature, keypair.public_key()).is_ok(), [INFO] [stdout] | ------------- ^^^^^^^^^^^ expected `&MlDsaPublicKey`, found `&Vec` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&MlDsaPublicKey` [INFO] [stdout] found reference `&Vec` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/ml_dsa/mod.rs:907:12 [INFO] [stdout] | [INFO] [stdout] 907 | pub fn verify( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/nist_test_vectors.rs:237:35 [INFO] [stdout] | [INFO] [stdout] 237 | MlDsa::verify(&modified_msg, &signature, keypair.public_key()).is_err(), [INFO] [stdout] | ------------- ^^^^^^^^^^^^^ expected `&MlDsaPublicKey`, found `&Vec` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&MlDsaPublicKey` [INFO] [stdout] found reference `&Vec` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/ml_dsa/mod.rs:907:12 [INFO] [stdout] | [INFO] [stdout] 907 | pub fn verify( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/nist_test_vectors.rs:246:31 [INFO] [stdout] | [INFO] [stdout] 246 | MlDsa::verify(&vector.msg, &modified_sig, keypair.public_key()).is_err(), [INFO] [stdout] | ------------- ^^^^^^^^^^^ expected `&MlDsaPublicKey`, found `&Vec` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&MlDsaPublicKey` [INFO] [stdout] found reference `&Vec` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/ml_dsa/mod.rs:907:12 [INFO] [stdout] | [INFO] [stdout] 907 | pub fn verify( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `DeterministicRng: CryptoRng` is not satisfied [INFO] [stdout] --> tests/nist_test_vectors.rs:258:52 [INFO] [stdout] | [INFO] [stdout] 258 | let (pk1, sk1) = MlKem768::keygen_with_rng(&mut rng).unwrap(); [INFO] [stdout] | ------------------------- ^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] help: the trait `CryptoRng` is not implemented for `DeterministicRng` [INFO] [stdout] --> tests/nist_test_vectors.rs:53:1 [INFO] [stdout] | [INFO] [stdout] 53 | pub struct DeterministicRng { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: there are multiple different versions of crate `rand_core` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.6.4/src/lib.rs:209:1 [INFO] [stdout] | [INFO] [stdout] 209 | pub trait CryptoRng {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: tests/nist_test_vectors.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use proptest::prelude::*; [INFO] [stdout] | -------- one version of crate `rand_core` used here, as a dependency of crate `rand` [INFO] [stdout] ... [INFO] [stdout] 8 | use qudag_crypto::{ [INFO] [stdout] | ------------ one version of crate `rand_core` used here, as a dependency of crate `qudag_crypto` [INFO] [stdout] ... [INFO] [stdout] 53 | pub struct DeterministicRng { [INFO] [stdout] | --------------------------- this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.3/src/block.rs:67:1 [INFO] [stdout] | [INFO] [stdout] 67 | pub trait BlockRngCore { [INFO] [stdout] | ---------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: required by a bound in `qudag_crypto::MlKem768::keygen_with_rng` [INFO] [stdout] --> /opt/rustwide/workdir/src/ml_kem/mod.rs:88:41 [INFO] [stdout] | [INFO] [stdout] 88 | pub fn keygen_with_rng( [INFO] [stdout] | ^^^^^^^^^^^^^^^ required by this bound in `MlKem768::keygen_with_rng` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `keygen_with_rng` found for struct `qudag_crypto::MlDsa` in the current scope [INFO] [stdout] --> tests/nist_test_vectors.rs:259:31 [INFO] [stdout] | [INFO] [stdout] 259 | let keypair2 = MlDsa::keygen_with_rng(&mut rng).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ function or associated item not found in `qudag_crypto::MlDsa` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `DeterministicRng: CryptoRng` is not satisfied [INFO] [stdout] --> tests/nist_test_vectors.rs:260:52 [INFO] [stdout] | [INFO] [stdout] 260 | let (pk3, sk3) = MlKem768::keygen_with_rng(&mut rng).unwrap(); [INFO] [stdout] | ------------------------- ^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] help: the trait `CryptoRng` is not implemented for `DeterministicRng` [INFO] [stdout] --> tests/nist_test_vectors.rs:53:1 [INFO] [stdout] | [INFO] [stdout] 53 | pub struct DeterministicRng { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: there are multiple different versions of crate `rand_core` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.6.4/src/lib.rs:209:1 [INFO] [stdout] | [INFO] [stdout] 209 | pub trait CryptoRng {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: tests/nist_test_vectors.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use proptest::prelude::*; [INFO] [stdout] | -------- one version of crate `rand_core` used here, as a dependency of crate `rand` [INFO] [stdout] ... [INFO] [stdout] 8 | use qudag_crypto::{ [INFO] [stdout] | ------------ one version of crate `rand_core` used here, as a dependency of crate `qudag_crypto` [INFO] [stdout] ... [INFO] [stdout] 53 | pub struct DeterministicRng { [INFO] [stdout] | --------------------------- this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.3/src/block.rs:67:1 [INFO] [stdout] | [INFO] [stdout] 67 | pub trait BlockRngCore { [INFO] [stdout] | ---------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: required by a bound in `qudag_crypto::MlKem768::keygen_with_rng` [INFO] [stdout] --> /opt/rustwide/workdir/src/ml_kem/mod.rs:88:41 [INFO] [stdout] | [INFO] [stdout] 88 | pub fn keygen_with_rng( [INFO] [stdout] | ^^^^^^^^^^^^^^^ required by this bound in `MlKem768::keygen_with_rng` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 3 arguments but 2 arguments were supplied [INFO] [stdout] --> tests/nist_test_vectors.rs:277:25 [INFO] [stdout] | [INFO] [stdout] 277 | let signature = MlDsa::sign(message, keypair2.secret_key()).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^-------------------------------- [INFO] [stdout] | || [INFO] [stdout] | |expected `&MlDsaKeyPair`, found `&[u8; 12]` [INFO] [stdout] | argument #3 of type `&mut _` is missing [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&MlDsaKeyPair` [INFO] [stdout] found reference `&[u8; 12]` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/ml_dsa/mod.rs:898:12 [INFO] [stdout] | [INFO] [stdout] 898 | pub fn sign( [INFO] [stdout] | ^^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 277 - let signature = MlDsa::sign(message, keypair2.secret_key()).unwrap(); [INFO] [stdout] 277 + let signature = MlDsa::sign(/* &MlDsaKeyPair */, keypair2.secret_key(), /* rng */).unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/nist_test_vectors.rs:284:31 [INFO] [stdout] | [INFO] [stdout] 284 | assert!(MlDsa::verify(message, &signature, keypair2.public_key()).is_ok()); [INFO] [stdout] | ------------- ^^^^^^^ expected `&MlDsaPublicKey`, found `&[u8; 12]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&MlDsaPublicKey` [INFO] [stdout] found reference `&[u8; 12]` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/ml_dsa/mod.rs:907:12 [INFO] [stdout] | [INFO] [stdout] 907 | pub fn verify( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 0 arguments were supplied [INFO] [stdout] --> tests/nist_test_vectors.rs:365:27 [INFO] [stdout] | [INFO] [stdout] 365 | let dsa_keypair = MlDsa::keygen().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^-- argument #1 of type `&mut _` is missing [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/ml_dsa/mod.rs:891:12 [INFO] [stdout] | [INFO] [stdout] 891 | pub fn keygen( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 365 | let dsa_keypair = MlDsa::keygen(/* rng */).unwrap(); [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 3 arguments but 2 arguments were supplied [INFO] [stdout] --> tests/nist_test_vectors.rs:378:25 [INFO] [stdout] | [INFO] [stdout] 378 | let signature = MlDsa::sign(&authenticated_message, dsa_keypair.secret_key()).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^-------------------------------------------------- argument #3 of type `&mut _` is missing [INFO] [stdout] | [INFO] [stdout] note: expected `&MlDsaKeyPair`, found `&Vec` [INFO] [stdout] --> tests/nist_test_vectors.rs:378:37 [INFO] [stdout] | [INFO] [stdout] 378 | let signature = MlDsa::sign(&authenticated_message, dsa_keypair.secret_key()).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: expected reference `&MlDsaKeyPair` [INFO] [stdout] found reference `&Vec` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/ml_dsa/mod.rs:898:12 [INFO] [stdout] | [INFO] [stdout] 898 | pub fn sign( [INFO] [stdout] | ^^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 378 - let signature = MlDsa::sign(&authenticated_message, dsa_keypair.secret_key()).unwrap(); [INFO] [stdout] 378 + let signature = MlDsa::sign(/* &MlDsaKeyPair */, dsa_keypair.secret_key(), /* rng */).unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/nist_test_vectors.rs:382:27 [INFO] [stdout] | [INFO] [stdout] 382 | MlDsa::verify(&authenticated_message, &signature, dsa_keypair.public_key()).is_ok() [INFO] [stdout] | ------------- ^^^^^^^^^^^^^^^^^^^^^^ expected `&MlDsaPublicKey`, found `&Vec` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&MlDsaPublicKey` [INFO] [stdout] found reference `&Vec` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/ml_dsa/mod.rs:907:12 [INFO] [stdout] | [INFO] [stdout] 907 | pub fn verify( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/nist_test_vectors.rs:388:31 [INFO] [stdout] | [INFO] [stdout] 388 | assert!(MlDsa::verify(&tampered_message, &signature, dsa_keypair.public_key()).is_err()); [INFO] [stdout] | ------------- ^^^^^^^^^^^^^^^^^ expected `&MlDsaPublicKey`, found `&Vec` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&MlDsaPublicKey` [INFO] [stdout] found reference `&Vec` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/ml_dsa/mod.rs:907:12 [INFO] [stdout] | [INFO] [stdout] 907 | pub fn verify( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 0 arguments were supplied [INFO] [stdout] --> tests/nist_test_vectors.rs:411:27 [INFO] [stdout] | [INFO] [stdout] 411 | let keypair = MlDsa::keygen().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^-- argument #1 of type `&mut _` is missing [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/ml_dsa/mod.rs:891:12 [INFO] [stdout] | [INFO] [stdout] 891 | pub fn keygen( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 411 | let keypair = MlDsa::keygen(/* rng */).unwrap(); [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 3 arguments but 2 arguments were supplied [INFO] [stdout] --> tests/nist_test_vectors.rs:413:29 [INFO] [stdout] | [INFO] [stdout] 413 | let signature = MlDsa::sign(message, keypair.secret_key()).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^------------------------------- [INFO] [stdout] | || [INFO] [stdout] | |expected `&MlDsaKeyPair`, found `&[u8; 21]` [INFO] [stdout] | argument #3 of type `&mut _` is missing [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&MlDsaKeyPair` [INFO] [stdout] found reference `&[u8; 21]` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/ml_dsa/mod.rs:898:12 [INFO] [stdout] | [INFO] [stdout] 898 | pub fn sign( [INFO] [stdout] | ^^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 413 - let signature = MlDsa::sign(message, keypair.secret_key()).unwrap(); [INFO] [stdout] 413 + let signature = MlDsa::sign(/* &MlDsaKeyPair */, keypair.secret_key(), /* rng */).unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/nist_test_vectors.rs:417:40 [INFO] [stdout] | [INFO] [stdout] 417 | prop_assert!(MlDsa::verify(message, &signature, keypair.public_key()).is_ok()); [INFO] [stdout] | ------------- ^^^^^^^ expected `&MlDsaPublicKey`, found `&[u8; 21]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&MlDsaPublicKey` [INFO] [stdout] found reference `&[u8; 21]` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/ml_dsa/mod.rs:907:12 [INFO] [stdout] | [INFO] [stdout] 907 | pub fn verify( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 0 arguments were supplied [INFO] [stdout] --> tests/nist_test_vectors.rs:439:27 [INFO] [stdout] | [INFO] [stdout] 439 | let keypair = MlDsa::keygen().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^-- argument #1 of type `&mut _` is missing [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/ml_dsa/mod.rs:891:12 [INFO] [stdout] | [INFO] [stdout] 891 | pub fn keygen( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 439 | let keypair = MlDsa::keygen(/* rng */).unwrap(); [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 3 arguments but 2 arguments were supplied [INFO] [stdout] --> tests/nist_test_vectors.rs:441:29 [INFO] [stdout] | [INFO] [stdout] 441 | let signature = MlDsa::sign(message, keypair.secret_key()) [INFO] [stdout] | ^^^^^^^^^^^------------------------------- [INFO] [stdout] | || [INFO] [stdout] | |expected `&MlDsaKeyPair`, found `&[u8]` [INFO] [stdout] | argument #3 of type `&mut _` is missing [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&MlDsaKeyPair` [INFO] [stdout] found reference `&[u8]` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/ml_dsa/mod.rs:898:12 [INFO] [stdout] | [INFO] [stdout] 898 | pub fn sign( [INFO] [stdout] | ^^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 441 - let signature = MlDsa::sign(message, keypair.secret_key()) [INFO] [stdout] 441 + let signature = MlDsa::sign(/* &MlDsaKeyPair */, keypair.secret_key(), /* rng */) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/nist_test_vectors.rs:445:31 [INFO] [stdout] | [INFO] [stdout] 445 | MlDsa::verify(message, &signature, keypair.public_key()).is_ok(), [INFO] [stdout] | ------------- ^^^^^^^ expected `&MlDsaPublicKey`, found `&[u8]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&MlDsaPublicKey` [INFO] [stdout] found reference `&[u8]` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/ml_dsa/mod.rs:907:12 [INFO] [stdout] | [INFO] [stdout] 907 | pub fn verify( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/nist_test_vectors.rs:459:49 [INFO] [stdout] | [INFO] [stdout] 459 | let result = MlKem768::decapsulate(&sk, &empty_ct); [INFO] [stdout] | --------------------- ^^^^^^^^^ expected `&Ciphertext`, found `&Result` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&qudag_crypto::Ciphertext` [INFO] [stdout] found reference `&Result` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/ml_kem/mod.rs:160:12 [INFO] [stdout] | [INFO] [stdout] 160 | pub fn decapsulate(sk: &SecretKey, ct: &Ciphertext) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/nist_test_vectors.rs:464:49 [INFO] [stdout] | [INFO] [stdout] 464 | let result = MlKem768::decapsulate(&sk, &oversized_ct); [INFO] [stdout] | --------------------- ^^^^^^^^^^^^^ expected `&Ciphertext`, found `&Result` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&qudag_crypto::Ciphertext` [INFO] [stdout] found reference `&Result` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/ml_kem/mod.rs:160:12 [INFO] [stdout] | [INFO] [stdout] 160 | pub fn decapsulate(sk: &SecretKey, ct: &Ciphertext) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 0 arguments were supplied [INFO] [stdout] --> tests/nist_test_vectors.rs:468:23 [INFO] [stdout] | [INFO] [stdout] 468 | let keypair = MlDsa::keygen().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^-- argument #1 of type `&mut _` is missing [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/ml_dsa/mod.rs:891:12 [INFO] [stdout] | [INFO] [stdout] 891 | pub fn keygen( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 468 | let keypair = MlDsa::keygen(/* rng */).unwrap(); [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 3 arguments but 2 arguments were supplied [INFO] [stdout] --> tests/nist_test_vectors.rs:472:29 [INFO] [stdout] | [INFO] [stdout] 472 | let signature = MlDsa::sign(&message, keypair.secret_key()).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^-------------------------------- argument #3 of type `&mut _` is missing [INFO] [stdout] | [INFO] [stdout] note: expected `&MlDsaKeyPair`, found `&Vec` [INFO] [stdout] --> tests/nist_test_vectors.rs:472:41 [INFO] [stdout] | [INFO] [stdout] 472 | let signature = MlDsa::sign(&message, keypair.secret_key()).unwrap(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: expected reference `&MlDsaKeyPair` [INFO] [stdout] found reference `&Vec` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/ml_dsa/mod.rs:898:12 [INFO] [stdout] | [INFO] [stdout] 898 | pub fn sign( [INFO] [stdout] | ^^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 472 - let signature = MlDsa::sign(&message, keypair.secret_key()).unwrap(); [INFO] [stdout] 472 + let signature = MlDsa::sign(/* &MlDsaKeyPair */, keypair.secret_key(), /* rng */).unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/nist_test_vectors.rs:474:31 [INFO] [stdout] | [INFO] [stdout] 474 | MlDsa::verify(&message, &signature, keypair.public_key()).is_ok(), [INFO] [stdout] | ------------- ^^^^^^^^ expected `&MlDsaPublicKey`, found `&Vec` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&MlDsaPublicKey` [INFO] [stdout] found reference `&Vec` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/ml_dsa/mod.rs:907:12 [INFO] [stdout] | [INFO] [stdout] 907 | pub fn verify( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hash::HashFunction` [INFO] [stdout] --> tests/nist_test_vectors.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | hash::HashFunction, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `KeyEncapsulation` [INFO] [stdout] --> tests/nist_test_vectors.rs:10:23 [INFO] [stdout] | [INFO] [stdout] 10 | kem::{Ciphertext, KeyEncapsulation, PublicKey, SecretKey, SharedSecret}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vector` [INFO] [stdout] --> tests/nist_test_vectors.rs:156:13 [INFO] [stdout] | [INFO] [stdout] 156 | for vector in &get_ml_kem_768_kat_vectors() { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_vector` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `seed` [INFO] [stdout] --> tests/nist_test_vectors.rs:310:13 [INFO] [stdout] | [INFO] [stdout] 310 | let seed = [0x42u8; 32]; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_seed` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pk2` [INFO] [stdout] --> tests/nist_test_vectors.rs:314:14 [INFO] [stdout] | [INFO] [stdout] 314 | let (pk2, sk2) = MlKem768::keygen().unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pk2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sk2` [INFO] [stdout] --> tests/nist_test_vectors.rs:314:19 [INFO] [stdout] | [INFO] [stdout] 314 | let (pk2, sk2) = MlKem768::keygen().unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_sk2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> tests/nist_test_vectors.rs:340:13 [INFO] [stdout] | [INFO] [stdout] 340 | let data = b"test data for hashing"; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0277, E0308, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: could not compile `qudag-crypto` (test "nist_test_vectors") due to 39 previous errors; 10 warnings emitted [INFO] running `Command { std: "docker" "inspect" "1dfae80fb6a0f761d2bf84c073b5541aba21c3b92d1e6d090e659b2d4ecdbf9a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1dfae80fb6a0f761d2bf84c073b5541aba21c3b92d1e6d090e659b2d4ecdbf9a", kill_on_drop: false }` [INFO] [stdout] 1dfae80fb6a0f761d2bf84c073b5541aba21c3b92d1e6d090e659b2d4ecdbf9a