[INFO] fetching crate qudag-crypto 0.5.1... [INFO] testing qudag-crypto-0.5.1 against try#8de4c7234dd9b97c9d76b58671343fdbbc9a433e+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_with_libc_patch_0 [INFO] extracting crate qudag-crypto 0.5.1 into /workspace/builds/worker-2-tc1/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-2-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate qudag-crypto 0.5.1 on toolchain 8de4c7234dd9b97c9d76b58671343fdbbc9a433e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "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" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded pqcrypto-internals v0.2.10 [INFO] [stderr] Downloaded pqcrypto-kyber v0.5.0 [INFO] [stderr] Downloaded pqcrypto-dilithium v0.5.0 [INFO] [stderr] Downloaded pqcrypto-hqc v0.2.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1caff61bfd806628bd545fb5789631e0a9bc0cec04f6713a2b70c3a3d586539e [INFO] running `Command { std: "docker" "start" "-a" "1caff61bfd806628bd545fb5789631e0a9bc0cec04f6713a2b70c3a3d586539e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1caff61bfd806628bd545fb5789631e0a9bc0cec04f6713a2b70c3a3d586539e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1caff61bfd806628bd545fb5789631e0a9bc0cec04f6713a2b70c3a3d586539e", kill_on_drop: false }` [INFO] [stdout] 1caff61bfd806628bd545fb5789631e0a9bc0cec04f6713a2b70c3a3d586539e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] d73d79917e482c93375a70efe6d64cfd269c8b8397bf42e60e0a3a380de64413 [INFO] running `Command { std: "docker" "start" "-a" "d73d79917e482c93375a70efe6d64cfd269c8b8397bf42e60e0a3a380de64413", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Compiling cfg-if v1.0.1 [INFO] [stderr] Compiling typenum v1.18.0 [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Compiling cpufeatures v0.2.17 [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 opaque-debug v0.3.1 [INFO] [stderr] Compiling pqcrypto-traits v0.3.5 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Compiling jobserver v0.1.33 [INFO] [stderr] Compiling base64ct v1.8.0 [INFO] [stderr] Compiling signature v2.2.0 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling arrayref v0.3.9 [INFO] [stderr] Compiling constant_time_eq v0.3.1 [INFO] [stderr] Compiling ed25519 v2.2.3 [INFO] [stderr] Compiling tracing-core v0.1.34 [INFO] [stderr] Compiling pin-project-lite v0.2.16 [INFO] [stderr] Compiling cc v1.2.27 [INFO] [stderr] Compiling keccak v0.1.5 [INFO] [stderr] Compiling arrayvec v0.7.6 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling rustc_version v0.4.1 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling curve25519-dalek v4.1.3 [INFO] [stderr] Compiling password-hash v0.5.0 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling inout v0.1.4 [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 hmac v0.12.1 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling blake2 v0.10.6 [INFO] [stderr] Compiling sha3 v0.10.8 [INFO] [stderr] Compiling ghash v0.5.1 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Compiling pqcrypto-internals v0.2.10 [INFO] [stderr] Compiling blake3 v1.8.2 [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 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 zeroize_derive v1.4.2 [INFO] [stderr] Compiling curve25519-dalek-derive v0.1.1 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling serde_derive v1.0.219 [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 chacha20poly1305 v0.10.1 [INFO] [stderr] Compiling aes-gcm v0.10.3 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling ed25519-dalek v2.1.1 [INFO] [stderr] Compiling x25519-dalek v2.0.1 [INFO] [stderr] Compiling qudag-crypto v0.5.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 24.70s [INFO] running `Command { std: "docker" "inspect" "d73d79917e482c93375a70efe6d64cfd269c8b8397bf42e60e0a3a380de64413", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d73d79917e482c93375a70efe6d64cfd269c8b8397bf42e60e0a3a380de64413", kill_on_drop: false }` [INFO] [stdout] d73d79917e482c93375a70efe6d64cfd269c8b8397bf42e60e0a3a380de64413 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--no-run" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] c7d7220661f1a649d55521330afb690a9fa73ca05d3ede0b34fbf1a7ae031602 [INFO] running `Command { std: "docker" "start" "-a" "c7d7220661f1a649d55521330afb690a9fa73ca05d3ede0b34fbf1a7ae031602", kill_on_drop: false }` [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling rustix v1.0.7 [INFO] [stderr] Compiling linux-raw-sys v0.9.4 [INFO] [stderr] Compiling bitflags v2.9.1 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling fastrand v2.3.0 [INFO] [stderr] Compiling wait-timeout v0.2.1 [INFO] [stderr] Compiling rand_chacha v0.3.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 bit-set v0.8.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling rand_core v0.9.3 [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[E0433]: failed to resolve: use of unresolved module or unlinked crate `rayon` [INFO] [stdout] --> tests/concurrent_tests.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use rayon::prelude::*; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `rayon` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rayon`, use `cargo add rayon` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> tests/concurrent_tests.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use tokio::sync::{Barrier, Semaphore}; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tokio`, use `cargo add tokio` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `tokio::sync::Barrier`, `tokio::sync::Semaphore` [INFO] [stdout] --> tests/concurrent_tests.rs:20:19 [INFO] [stdout] | [INFO] [stdout] 20 | use tokio::sync::{Barrier, Semaphore}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> tests/concurrent_tests.rs:23:3 [INFO] [stdout] | [INFO] [stdout] 23 | #[tokio::test] [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> tests/concurrent_tests.rs:111:3 [INFO] [stdout] | [INFO] [stdout] 111 | #[tokio::test] [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> tests/concurrent_tests.rs:193:3 [INFO] [stdout] | [INFO] [stdout] 193 | #[tokio::test] [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> tests/concurrent_tests.rs:275:3 [INFO] [stdout] | [INFO] [stdout] 275 | #[tokio::test] [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> tests/concurrent_tests.rs:368:3 [INFO] [stdout] | [INFO] [stdout] 368 | #[tokio::test] [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> tests/concurrent_tests.rs:491:3 [INFO] [stdout] | [INFO] [stdout] 491 | #[tokio::test] [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FingerprintError` [INFO] [stdout] --> tests/fingerprint_tests.rs:1:46 [INFO] [stdout] | [INFO] [stdout] 1 | use qudag_crypto::fingerprint::{Fingerprint, FingerprintError}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid format string: expected `}`, found `l` [INFO] [stdout] --> tests/prop_tests.rs:255:13 [INFO] [stdout] | [INFO] [stdout] 255 | / prop_assert!(result.is_err() || { [INFO] [stdout] 256 | | let original_ss = MlKem768::decapsulate(&keypair.secret_key, &ciphertext).unwrap(); [INFO] [stdout] 257 | | result.unwrap().as_bytes() != original_ss.as_bytes() [INFO] [stdout] 258 | | }); [INFO] [stdout] | |______________^ expected `}` in format string [INFO] [stdout] | [INFO] [stdout] = note: if you intended to print `{`, you can escape it using `{{` [INFO] [stdout] = note: this error originates in the macro `concat` which comes from the expansion of the macro `prop_assert` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [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] warning: unused doc comment [INFO] [stdout] --> tests/ml_dsa_comprehensive_tests.rs:291:1 [INFO] [stdout] | [INFO] [stdout] 291 | /// Property-based test for ML-DSA correctness [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> tests/ml_dsa_comprehensive_tests.rs:317:1 [INFO] [stdout] | [INFO] [stdout] 317 | /// Property-based test for ML-DSA signature uniqueness [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> tests/ml_dsa_comprehensive_tests.rs:345:1 [INFO] [stdout] | [INFO] [stdout] 345 | /// Property-based test for ML-DSA verification failure with wrong message [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [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] error[E0599]: no function or associated item named `generate_keypair` found for struct `MlKem768` in the current scope [INFO] [stdout] --> examples/test_ml_kem_api.rs:8:30 [INFO] [stdout] | [INFO] [stdout] 8 | let (pk, sk) = MlKem768::generate_keypair(&mut rng); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ function or associated item not found in `MlKem768` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 2 arguments were supplied [INFO] [stdout] --> examples/test_ml_kem_api.rs:14:40 [INFO] [stdout] | [INFO] [stdout] 14 | let (ciphertext, shared_secret1) = MlKem768::encapsulate(&pk, &mut rng); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ -------- unexpected argument #2 of type `&mut ThreadRng` [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/ml_kem/mod.rs:121:12 [INFO] [stdout] | [INFO] [stdout] 121 | pub fn encapsulate(pk: &PublicKey) -> Result<(Ciphertext, SharedSecret), KEMError> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 14 - let (ciphertext, shared_secret1) = MlKem768::encapsulate(&pk, &mut rng); [INFO] [stdout] 14 + let (ciphertext, shared_secret1) = MlKem768::encapsulate(&pk); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/test_ml_kem_api.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let (ciphertext, shared_secret1) = MlKem768::encapsulate(&pk, &mut rng); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ------------------------------------ this expression has type `Result<(qudag_crypto::Ciphertext, SharedSecret), KEMError>` [INFO] [stdout] | | [INFO] [stdout] | expected `Result<(Ciphertext, SharedSecret), ...>`, found `(_, _)` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result<(qudag_crypto::Ciphertext, SharedSecret), KEMError>` [INFO] [stdout] found tuple `(_, _)` [INFO] [stdout] help: try wrapping the pattern in `Ok` [INFO] [stdout] | [INFO] [stdout] 14 | let Ok((ciphertext, shared_secret1)) = MlKem768::encapsulate(&pk, &mut rng); [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)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fingerprint_ptr` [INFO] [stdout] --> tests/fingerprint_tests.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | let fingerprint_ptr = fingerprint.data().as_ptr(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_fingerprint_ptr` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0308, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [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)]` on by default [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] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `qudag-crypto` (example "test_ml_kem_api") due to 3 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [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)]` on by default [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] error: could not compile `qudag-crypto` (test "ml_kem_tests") due to 1 previous error; 3 warnings emitted [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)]` 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 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] error[E0432]: unresolved imports `qudag_crypto::hqc::HQC`, `qudag_crypto::ml_dsa::MLDsa`, `qudag_crypto::ml_dsa::SIGNATURE_LENGTH` [INFO] [stdout] --> tests/integration_tests.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | hqc::HQC, [INFO] [stdout] | ^^^^^^^^ no `HQC` in `hqc` [INFO] [stdout] 5 | ml_dsa::{MLDsa, SIGNATURE_LENGTH}, [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^ no `SIGNATURE_LENGTH` in `ml_dsa` [INFO] [stdout] | | [INFO] [stdout] | no `MLDsa` in `ml_dsa` [INFO] [stdout] | [INFO] [stdout] help: a similar name exists in the module [INFO] [stdout] | [INFO] [stdout] 4 - hqc::HQC, [INFO] [stdout] 4 + hqc::Hqc, [INFO] [stdout] | [INFO] [stdout] help: a similar name exists in the module [INFO] [stdout] | [INFO] [stdout] 5 - ml_dsa::{MLDsa, SIGNATURE_LENGTH}, [INFO] [stdout] 5 + ml_dsa::{MlDsa, SIGNATURE_LENGTH}, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0603]: trait `KeyEncapsulation` is private [INFO] [stdout] --> tests/integration_tests.rs:6:18 [INFO] [stdout] | [INFO] [stdout] 6 | ml_kem::{KeyEncapsulation, MlKem768}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ private trait [INFO] [stdout] | [INFO] [stdout] note: the trait `KeyEncapsulation` is defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/ml_kem/mod.rs:12:40 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::kem::{Ciphertext, KEMError, KeyEncapsulation, PublicKey, SecretKey, SharedSecret}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] help: import `KeyEncapsulation` directly [INFO] [stdout] | [INFO] [stdout] 6 | ml_kem::{qudag_crypto::kem::KeyEncapsulation, MlKem768}, [INFO] [stdout] | +++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `qudag_crypto::ml_dsa::MlDsa87`, `qudag_crypto::signatures` [INFO] [stdout] --> tests/prop_tests.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | ml_dsa::MlDsa87, [INFO] [stdout] | ^^^^^^^^^^^^^^^ no `MlDsa87` in `ml_dsa` [INFO] [stdout] 10 | ml_kem::{Metrics as MlKemMetrics, MlKem768}, [INFO] [stdout] 11 | signatures, [INFO] [stdout] | ^^^^^^^^^^ no `signatures` in the root [INFO] [stdout] | [INFO] [stdout] help: a similar name exists in the module [INFO] [stdout] | [INFO] [stdout] 9 - ml_dsa::MlDsa87, [INFO] [stdout] 9 + ml_dsa::MlDsa, [INFO] [stdout] | [INFO] [stdout] help: a similar name exists in the module [INFO] [stdout] | [INFO] [stdout] 11 - signatures, [INFO] [stdout] 11 + signature, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rand::rngs::SeedableRng` [INFO] [stdout] --> tests/prop_tests.rs:13:18 [INFO] [stdout] | [INFO] [stdout] 13 | use rand::rngs::{SeedableRng, StdRng}; [INFO] [stdout] | ^^^^^^^^^^^ no `SeedableRng` in `rngs` [INFO] [stdout] | [INFO] [stdout] = help: consider importing one of these traits instead: [INFO] [stdout] rand::SeedableRng [INFO] [stdout] rand_core::SeedableRng [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> tests/concurrent_tests.rs:330:17 [INFO] [stdout] | [INFO] [stdout] 330 | tokio::task::yield_now().await; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tokio`, use `cargo add tokio` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `constant_time_eq` in this scope [INFO] [stdout] --> tests/security_tests.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | assert!(constant_time_eq(&a, &b)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `constant_time_eq` in this scope [INFO] [stdout] --> tests/security_tests.rs:11:14 [INFO] [stdout] | [INFO] [stdout] 11 | assert!(!constant_time_eq(&a, &c)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> tests/concurrent_tests.rs:449:21 [INFO] [stdout] | [INFO] [stdout] 449 | tokio::task::yield_now().await; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tokio`, use `cargo add tokio` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> tests/concurrent_tests.rs:556:21 [INFO] [stdout] | [INFO] [stdout] 556 | tokio::task::yield_now().await; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tokio`, use `cargo add tokio` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Ciphertext`, `CryptoError`, `MlDsa`, and `SharedSecret` [INFO] [stdout] --> tests/concurrent_tests.rs:10:11 [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::MlKem768, [INFO] [stdout] 13 | CryptoError, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` 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] warning: unused import: `RngCore` [INFO] [stdout] --> tests/concurrent_tests.rs:15:24 [INFO] [stdout] | [INFO] [stdout] 15 | use rand::{thread_rng, RngCore}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread` [INFO] [stdout] --> tests/concurrent_tests.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use std::thread; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> tests/concurrent_tests.rs:35:22 [INFO] [stdout] | [INFO] [stdout] 35 | let handle = tokio::spawn(async move { [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tokio`, use `cargo add tokio` to add it to your `Cargo.toml` [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: `zeroize::Zeroize` [INFO] [stdout] --> tests/security_tests.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use zeroize::Zeroize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [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)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> tests/concurrent_tests.rs:126:22 [INFO] [stdout] | [INFO] [stdout] 126 | let handle = tokio::spawn(async move { [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tokio`, use `cargo add tokio` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> tests/concurrent_tests.rs:204:22 [INFO] [stdout] | [INFO] [stdout] 204 | let handle = tokio::spawn(async move { [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tokio`, use `cargo add tokio` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ct` [INFO] [stdout] --> tests/integration_tests.rs:100:18 [INFO] [stdout] | [INFO] [stdout] 100 | let (ct, ss) = MlKem768::encapsulate(&pk).expect("Failed to encapsulate"); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ct` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `secret_key_ptr` [INFO] [stdout] --> tests/ml_dsa_comprehensive_tests.rs:244:9 [INFO] [stdout] | [INFO] [stdout] 244 | let secret_key_ptr = keypair.secret_key().as_ptr(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_secret_key_ptr` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [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]: 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; 10] [INFO] [stdout] [T; 11] [INFO] [stdout] [T; 12] [INFO] [stdout] [T; 13] [INFO] [stdout] [T; 14] [INFO] [stdout] [T; 15] [INFO] [stdout] [T; 16] [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] Some errors have detailed explanations: E0432, E0603. [INFO] [stdout] [INFO] [stderr] error: could not compile `qudag-crypto` (test "security_tests") due to 2 previous errors; 1 warning emitted [INFO] [stdout] error[E0061]: this method takes 1 argument but 2 arguments were supplied [INFO] [stdout] --> tests/concurrent_tests.rs:232:35 [INFO] [stdout] | [INFO] [stdout] 232 | match fingerprint.verify(original_data, public_key) { [INFO] [stdout] | ^^^^^^ ------------- unexpected argument #1 of type `&Vec` [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/fingerprint.rs:84:12 [INFO] [stdout] | [INFO] [stdout] 84 | pub fn verify(&self, public_key: &MlDsaPublicKey) -> Result<(), FingerprintError> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 232 - match fingerprint.verify(original_data, public_key) { [INFO] [stdout] 232 + match fingerprint.verify(public_key) { [INFO] [stdout] | [INFO] [stdout] [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[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> tests/concurrent_tests.rs:295:22 [INFO] [stdout] | [INFO] [stdout] 295 | let handle = tokio::spawn(async move { [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tokio`, use `cargo add tokio` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> tests/concurrent_tests.rs:382:22 [INFO] [stdout] | [INFO] [stdout] 382 | let handle = tokio::spawn(async move { [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tokio`, use `cargo add tokio` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 1 argument but 2 arguments were supplied [INFO] [stdout] --> tests/concurrent_tests.rs:435:48 [INFO] [stdout] | [INFO] [stdout] 435 | ... if fingerprint.verify(&data, &public_key).is_ok() { [INFO] [stdout] | ^^^^^^ ----- unexpected argument #1 of type `&Vec` [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/fingerprint.rs:84:12 [INFO] [stdout] | [INFO] [stdout] 84 | pub fn verify(&self, public_key: &MlDsaPublicKey) -> Result<(), FingerprintError> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 435 - if fingerprint.verify(&data, &public_key).is_ok() { [INFO] [stdout] 435 + if fingerprint.verify(&public_key).is_ok() { [INFO] [stdout] | [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; 10] [INFO] [stdout] [T; 11] [INFO] [stdout] [T; 12] [INFO] [stdout] [T; 13] [INFO] [stdout] [T; 14] [INFO] [stdout] [T; 15] [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: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; 10] [INFO] [stdout] [T; 11] [INFO] [stdout] [T; 12] [INFO] [stdout] [T; 13] [INFO] [stdout] [T; 14] [INFO] [stdout] [T; 15] [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 "integration_tests") due to 2 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; 10] [INFO] [stdout] [T; 11] [INFO] [stdout] [T; 12] [INFO] [stdout] [T; 13] [INFO] [stdout] [T; 14] [INFO] [stdout] [T; 15] [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[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> tests/concurrent_tests.rs:502:22 [INFO] [stdout] | [INFO] [stdout] 502 | let handle = tokio::spawn(async move { [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tokio`, use `cargo add tokio` to add it to your `Cargo.toml` [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] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [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[E0425]: cannot find function `generate_keypair` in module `kem` [INFO] [stdout] --> tests/prop_tests.rs:20:14 [INFO] [stdout] | [INFO] [stdout] 20 | kem::generate_keypair(&mut rng) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in `kem` [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; 10] [INFO] [stdout] [T; 11] [INFO] [stdout] [T; 12] [INFO] [stdout] [T; 13] [INFO] [stdout] [T; 14] [INFO] [stdout] [T; 15] [INFO] [stdout] [T; 16] [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 `encapsulate` in module `kem` [INFO] [stdout] --> tests/prop_tests.rs:28:49 [INFO] [stdout] | [INFO] [stdout] 28 | let (shared_secret1, ciphertext) = kem::encapsulate(&keypair.public_key).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ not found in `kem` [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] help: if you import `encapsulate`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 28 - let (shared_secret1, ciphertext) = kem::encapsulate(&keypair.public_key).unwrap(); [INFO] [stdout] 28 + let (shared_secret1, ciphertext) = encapsulate(&keypair.public_key).unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `decapsulate` in module `kem` [INFO] [stdout] --> tests/prop_tests.rs:29:35 [INFO] [stdout] | [INFO] [stdout] 29 | let shared_secret2 = kem::decapsulate(&keypair.secret_key, &ciphertext).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ not found in `kem` [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] help: if you import `decapsulate`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 29 - let shared_secret2 = kem::decapsulate(&keypair.secret_key, &ciphertext).unwrap(); [INFO] [stdout] 29 + let shared_secret2 = decapsulate(&keypair.secret_key, &ciphertext).unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `constant_time_compare` in module `kem` [INFO] [stdout] --> tests/prop_tests.rs:31:38 [INFO] [stdout] | [INFO] [stdout] 31 | prop_assert!(bool::from(kem::constant_time_compare(&shared_secret1, &shared_secret2))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in `kem` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `encapsulate` in module `kem` [INFO] [stdout] --> tests/prop_tests.rs:47:29 [INFO] [stdout] | [INFO] [stdout] 47 | let (_, ct1) = kem::encapsulate(&keypair1.public_key).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ not found in `kem` [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] help: if you import `encapsulate`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 47 - let (_, ct1) = kem::encapsulate(&keypair1.public_key).unwrap(); [INFO] [stdout] 47 + let (_, ct1) = encapsulate(&keypair1.public_key).unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `encapsulate` in module `kem` [INFO] [stdout] --> tests/prop_tests.rs:48:29 [INFO] [stdout] | [INFO] [stdout] 48 | let (_, ct2) = kem::encapsulate(&keypair2.public_key).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ not found in `kem` [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] help: if you import `encapsulate`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 48 - let (_, ct2) = kem::encapsulate(&keypair2.public_key).unwrap(); [INFO] [stdout] 48 + let (_, ct2) = encapsulate(&keypair2.public_key).unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `decapsulate` in module `kem` [INFO] [stdout] --> tests/prop_tests.rs:50:28 [INFO] [stdout] | [INFO] [stdout] 50 | let result1 = kem::decapsulate(&keypair2.secret_key, &ct1); [INFO] [stdout] | ^^^^^^^^^^^ not found in `kem` [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] help: if you import `decapsulate`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 50 - let result1 = kem::decapsulate(&keypair2.secret_key, &ct1); [INFO] [stdout] 50 + let result1 = decapsulate(&keypair2.secret_key, &ct1); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `decapsulate` in module `kem` [INFO] [stdout] --> tests/prop_tests.rs:51:28 [INFO] [stdout] | [INFO] [stdout] 51 | let result2 = kem::decapsulate(&keypair1.secret_key, &ct2); [INFO] [stdout] | ^^^^^^^^^^^ not found in `kem` [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] help: if you import `decapsulate`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 51 - let result2 = kem::decapsulate(&keypair1.secret_key, &ct2); [INFO] [stdout] 51 + let result2 = decapsulate(&keypair1.secret_key, &ct2); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `KeyPair` in module `encryption` [INFO] [stdout] --> tests/prop_tests.rs:97:78 [INFO] [stdout] | [INFO] [stdout] 97 | fn arb_enc_keypair()(mut rng in any::<[u8; 32]>()) -> Result { [INFO] [stdout] | ^^^^^^^ not found in `encryption` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 1 + use crate::kem::KeyPair; [INFO] [stdout] | [INFO] [stdout] 1 + use qudag_crypto::KeyPair; [INFO] [stdout] | [INFO] [stdout] help: if you import `KeyPair`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 97 - fn arb_enc_keypair()(mut rng in any::<[u8; 32]>()) -> Result { [INFO] [stdout] 97 + fn arb_enc_keypair()(mut rng in any::<[u8; 32]>()) -> Result { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `generate_keypair` in module `encryption` [INFO] [stdout] --> tests/prop_tests.rs:99:21 [INFO] [stdout] | [INFO] [stdout] 99 | encryption::generate_keypair(&mut rng) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in `encryption` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 1 argument but 2 arguments were supplied [INFO] [stdout] --> tests/concurrent_tests.rs:542:49 [INFO] [stdout] | [INFO] [stdout] 542 | ... let _ = fingerprint.verify(&data, &public_key); [INFO] [stdout] | ^^^^^^ ----- unexpected argument #1 of type `&Vec` [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/fingerprint.rs:84:12 [INFO] [stdout] | [INFO] [stdout] 84 | pub fn verify(&self, public_key: &MlDsaPublicKey) -> Result<(), FingerprintError> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 542 - let _ = fingerprint.verify(&data, &public_key); [INFO] [stdout] 542 + let _ = fingerprint.verify(&public_key); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PUBLIC_KEY_SIZE` is never used [INFO] [stdout] --> tests/ml_dsa_comprehensive_tests.rs:16:15 [INFO] [stdout] | [INFO] [stdout] 16 | pub const PUBLIC_KEY_SIZE: usize = 1312; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SECRET_KEY_SIZE` is never used [INFO] [stdout] --> tests/ml_dsa_comprehensive_tests.rs:17:15 [INFO] [stdout] | [INFO] [stdout] 17 | pub const SECRET_KEY_SIZE: usize = 2560; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SIGNATURE_SIZE` is never used [INFO] [stdout] --> tests/ml_dsa_comprehensive_tests.rs:18:15 [INFO] [stdout] | [INFO] [stdout] 18 | pub const SIGNATURE_SIZE: usize = 2420; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SEED_SIZE` is never used [INFO] [stdout] --> tests/ml_dsa_comprehensive_tests.rs:19:15 [INFO] [stdout] | [INFO] [stdout] 19 | pub const SEED_SIZE: usize = 32; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SEED_SIZE` is never used [INFO] [stdout] --> tests/ml_dsa_comprehensive_tests.rs:26:15 [INFO] [stdout] | [INFO] [stdout] 26 | pub const SEED_SIZE: usize = 32; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PUBLIC_KEY_SIZE` is never used [INFO] [stdout] --> tests/ml_dsa_comprehensive_tests.rs:30:15 [INFO] [stdout] | [INFO] [stdout] 30 | pub const PUBLIC_KEY_SIZE: usize = 2592; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SECRET_KEY_SIZE` is never used [INFO] [stdout] --> tests/ml_dsa_comprehensive_tests.rs:31:15 [INFO] [stdout] | [INFO] [stdout] 31 | pub const SECRET_KEY_SIZE: usize = 4896; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SIGNATURE_SIZE` is never used [INFO] [stdout] --> tests/ml_dsa_comprehensive_tests.rs:32:15 [INFO] [stdout] | [INFO] [stdout] 32 | pub const SIGNATURE_SIZE: usize = 4627; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SEED_SIZE` is never used [INFO] [stdout] --> tests/ml_dsa_comprehensive_tests.rs:33:15 [INFO] [stdout] | [INFO] [stdout] 33 | pub const SEED_SIZE: usize = 32; [INFO] [stdout] | ^^^^^^^^^ [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; 10] [INFO] [stdout] [T; 11] [INFO] [stdout] [T; 12] [INFO] [stdout] [T; 13] [INFO] [stdout] [T; 14] [INFO] [stdout] [T; 15] [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[E0425]: cannot find function `thread_rng` in this scope [INFO] [stdout] --> tests/prop_tests.rs:110:23 [INFO] [stdout] | [INFO] [stdout] 110 | let mut rng = thread_rng(); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use rand::thread_rng; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `encrypt` in module `encryption` [INFO] [stdout] --> tests/prop_tests.rs:112:38 [INFO] [stdout] | [INFO] [stdout] 112 | let ciphertext = encryption::encrypt(&mut rng, &keypair.public_key, &message).unwrap(); [INFO] [stdout] | ^^^^^^^ not found in `encryption` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `decrypt` in module `encryption` [INFO] [stdout] --> tests/prop_tests.rs:113:37 [INFO] [stdout] | [INFO] [stdout] 113 | let decrypted = encryption::decrypt(&keypair.secret_key, &ciphertext).unwrap(); [INFO] [stdout] | ^^^^^^^ not found in `encryption` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `thread_rng` in this scope [INFO] [stdout] --> tests/prop_tests.rs:126:23 [INFO] [stdout] | [INFO] [stdout] 126 | let mut rng = thread_rng(); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use rand::thread_rng; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `encrypt` in module `encryption` [INFO] [stdout] --> tests/prop_tests.rs:128:42 [INFO] [stdout] | [INFO] [stdout] 128 | let mut ciphertext = encryption::encrypt(&mut rng, &keypair.public_key, &message).unwrap(); [INFO] [stdout] | ^^^^^^^ not found in `encryption` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `decrypt` in module `encryption` [INFO] [stdout] --> tests/prop_tests.rs:133:31 [INFO] [stdout] | [INFO] [stdout] 133 | match encryption::decrypt(&keypair.secret_key, &ciphertext) { [INFO] [stdout] | ^^^^^^^ not found in `encryption` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Metrics as MlKemMetrics`, `SecurityParameter`, and `error::CryptoError` [INFO] [stdout] --> tests/prop_tests.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | error::CryptoError, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 7 | hqc::{Hqc256, SecurityParameter}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 10 | ml_kem::{Metrics as MlKemMetrics, MlKem768}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [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; 10] [INFO] [stdout] [T; 11] [INFO] [stdout] [T; 12] [INFO] [stdout] [T; 13] [INFO] [stdout] [T; 14] [INFO] [stdout] [T; 15] [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] For more information about this error, try `rustc --explain E0425`. [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: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; 10] [INFO] [stdout] [T; 11] [INFO] [stdout] [T; 12] [INFO] [stdout] [T; 13] [INFO] [stdout] [T; 14] [INFO] [stdout] [T; 15] [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[E0599]: no function or associated item named `from_seed` found for struct `StdRng` in the current scope [INFO] [stdout] --> tests/prop_tests.rs:19:31 [INFO] [stdout] | [INFO] [stdout] 19 | let mut rng = StdRng::from_seed(rng); [INFO] [stdout] | ^^^^^^^^^ function or associated item not found in `StdRng` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `SeedableRng` which provides `from_seed` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use rand::SeedableRng; [INFO] [stdout] | [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; 10] [INFO] [stdout] [T; 11] [INFO] [stdout] [T; 12] [INFO] [stdout] [T; 13] [INFO] [stdout] [T; 14] [INFO] [stdout] [T; 15] [INFO] [stdout] [T; 16] [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[E0599]: no function or associated item named `from_seed` found for struct `StdRng` in the current scope [INFO] [stdout] --> tests/prop_tests.rs:60:31 [INFO] [stdout] | [INFO] [stdout] 60 | let mut rng = StdRng::from_seed(rng); [INFO] [stdout] | ^^^^^^^^^ function or associated item not found in `StdRng` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `SeedableRng` which provides `from_seed` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use rand::SeedableRng; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_seed` found for struct `StdRng` in the current scope [INFO] [stdout] --> tests/prop_tests.rs:98:31 [INFO] [stdout] | [INFO] [stdout] 98 | let mut rng = StdRng::from_seed(rng); [INFO] [stdout] | ^^^^^^^^^ function or associated item not found in `StdRng` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `SeedableRng` which provides `from_seed` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use rand::SeedableRng; [INFO] [stdout] | [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; 10] [INFO] [stdout] [T; 11] [INFO] [stdout] [T; 12] [INFO] [stdout] [T; 13] [INFO] [stdout] [T; 14] [INFO] [stdout] [T; 15] [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; 10] [INFO] [stdout] [T; 11] [INFO] [stdout] [T; 12] [INFO] [stdout] [T; 13] [INFO] [stdout] [T; 14] [INFO] [stdout] [T; 15] [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[E0599]: no method named `par_iter` found for struct `Vec>` in the current scope [INFO] [stdout] --> tests/concurrent_tests.rs:600:10 [INFO] [stdout] | [INFO] [stdout] 599 | let ml_kem_results: Vec<_> = test_data [INFO] [stdout] | __________________________________- [INFO] [stdout] 600 | | .par_iter() [INFO] [stdout] | |_________-^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `iter` with a similar name [INFO] [stdout] | [INFO] [stdout] 600 - .par_iter() [INFO] [stdout] 600 + .iter() [INFO] [stdout] | [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; 10] [INFO] [stdout] [T; 11] [INFO] [stdout] [T; 12] [INFO] [stdout] [T; 13] [INFO] [stdout] [T; 14] [INFO] [stdout] [T; 15] [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[E0599]: no function or associated item named `from_seed` found for struct `StdRng` in the current scope [INFO] [stdout] --> tests/prop_tests.rs:187:32 [INFO] [stdout] | [INFO] [stdout] 187 | let mut rng1 = StdRng::from_seed(seed1); [INFO] [stdout] | ^^^^^^^^^ function or associated item not found in `StdRng` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `SeedableRng` which provides `from_seed` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use rand::SeedableRng; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_seed` found for struct `StdRng` in the current scope [INFO] [stdout] --> tests/prop_tests.rs:188:32 [INFO] [stdout] | [INFO] [stdout] 188 | let mut rng2 = StdRng::from_seed(seed2); [INFO] [stdout] | ^^^^^^^^^ function or associated item not found in `StdRng` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `SeedableRng` which provides `from_seed` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use rand::SeedableRng; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `par_iter` found for struct `Vec>` in the current scope [INFO] [stdout] --> tests/concurrent_tests.rs:613:10 [INFO] [stdout] | [INFO] [stdout] 612 | let fingerprint_results: Vec<_> = test_data [INFO] [stdout] | _______________________________________- [INFO] [stdout] 613 | | .par_iter() [INFO] [stdout] | |_________-^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `iter` with a similar name [INFO] [stdout] | [INFO] [stdout] 613 - .par_iter() [INFO] [stdout] 613 + .iter() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_seed` found for struct `StdRng` in the current scope [INFO] [stdout] --> tests/prop_tests.rs:191:37 [INFO] [stdout] | [INFO] [stdout] 191 | let mut rng1_copy = StdRng::from_seed(seed1); [INFO] [stdout] | ^^^^^^^^^ function or associated item not found in `StdRng` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `SeedableRng` which provides `from_seed` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use rand::SeedableRng; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `generate_keypair` found for struct `MlKem768` in the current scope [INFO] [stdout] --> tests/prop_tests.rs:192:35 [INFO] [stdout] | [INFO] [stdout] 192 | let keypair1a = MlKem768::generate_keypair(&mut rng1).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ function or associated item not found in `MlKem768` [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[E0061]: this method takes 1 argument but 2 arguments were supplied [INFO] [stdout] --> tests/concurrent_tests.rs:617:25 [INFO] [stdout] | [INFO] [stdout] 617 | fingerprint.verify(data, &public_key).is_ok() [INFO] [stdout] | ^^^^^^ ---- unexpected argument #1 of type `&[u8]` [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/fingerprint.rs:84:12 [INFO] [stdout] | [INFO] [stdout] 84 | pub fn verify(&self, public_key: &MlDsaPublicKey) -> Result<(), FingerprintError> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 617 - fingerprint.verify(data, &public_key).is_ok() [INFO] [stdout] 617 + fingerprint.verify(&public_key).is_ok() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `generate_keypair` found for struct `MlKem768` in the current scope [INFO] [stdout] --> tests/prop_tests.rs:193:35 [INFO] [stdout] | [INFO] [stdout] 193 | let keypair1b = MlKem768::generate_keypair(&mut rng1_copy).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ function or associated item not found in `MlKem768` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `par_iter` found for struct `Vec>` in the current scope [INFO] [stdout] --> tests/concurrent_tests.rs:628:10 [INFO] [stdout] | [INFO] [stdout] 627 | let ml_dsa_results: Vec<_> = test_data [INFO] [stdout] | __________________________________- [INFO] [stdout] 628 | | .par_iter() [INFO] [stdout] | |_________-^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `iter` with a similar name [INFO] [stdout] | [INFO] [stdout] 628 - .par_iter() [INFO] [stdout] 628 + .iter() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hash::HashFunction` [INFO] [stdout] --> tests/concurrent_tests.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/concurrent_tests.rs:10:23 [INFO] [stdout] | [INFO] [stdout] 10 | kem::{Ciphertext, KeyEncapsulation, PublicKey, SecretKey, SharedSecret}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0432, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [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 function or associated item named `generate_keypair` found for struct `MlKem768` in the current scope [INFO] [stdout] --> tests/prop_tests.rs:199:34 [INFO] [stdout] | [INFO] [stdout] 199 | let keypair2 = MlKem768::generate_keypair(&mut rng2).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ function or associated item not found in `MlKem768` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 2 arguments were supplied [INFO] [stdout] --> tests/prop_tests.rs:205:26 [INFO] [stdout] | [INFO] [stdout] 205 | let (ss1, ct1) = MlKem768::encapsulate(&keypair1a.public_key, &mut rng1).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ --------- unexpected argument #2 [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/ml_kem/mod.rs:121:12 [INFO] [stdout] | [INFO] [stdout] 121 | pub fn encapsulate(pk: &PublicKey) -> Result<(Ciphertext, SharedSecret), KEMError> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 205 - let (ss1, ct1) = MlKem768::encapsulate(&keypair1a.public_key, &mut rng1).unwrap(); [INFO] [stdout] 205 + let (ss1, ct1) = MlKem768::encapsulate(&keypair1a.public_key).unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 2 arguments were supplied [INFO] [stdout] --> tests/prop_tests.rs:206:26 [INFO] [stdout] | [INFO] [stdout] 206 | let (ss2, ct2) = MlKem768::encapsulate(&keypair1a.public_key, &mut rng2).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ --------- unexpected argument #2 [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/ml_kem/mod.rs:121:12 [INFO] [stdout] | [INFO] [stdout] 121 | pub fn encapsulate(pk: &PublicKey) -> Result<(Ciphertext, SharedSecret), KEMError> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 206 - let (ss2, ct2) = MlKem768::encapsulate(&keypair1a.public_key, &mut rng2).unwrap(); [INFO] [stdout] 206 + let (ss2, ct2) = MlKem768::encapsulate(&keypair1a.public_key).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: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[E0308]: mismatched types [INFO] [stdout] --> tests/prop_tests.rs:214:74 [INFO] [stdout] | [INFO] [stdout] 214 | let recovered_ss1 = MlKem768::decapsulate(&keypair1a.secret_key, &ct1).unwrap(); [INFO] [stdout] | --------------------- ^^^^ expected `&Ciphertext`, found `&SharedSecret` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&qudag_crypto::Ciphertext` [INFO] [stdout] found reference `&SharedSecret` [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] [stderr] error: could not compile `qudag-crypto` (test "concurrent_tests") due to 25 previous errors; 5 warnings emitted [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/prop_tests.rs:215:74 [INFO] [stdout] | [INFO] [stdout] 215 | let recovered_ss2 = MlKem768::decapsulate(&keypair1a.secret_key, &ct2).unwrap(); [INFO] [stdout] | --------------------- ^^^^ expected `&Ciphertext`, found `&SharedSecret` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&qudag_crypto::Ciphertext` [INFO] [stdout] found reference `&SharedSecret` [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 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[E0599]: no function or associated item named `from_seed` found for struct `StdRng` in the current scope [INFO] [stdout] --> tests/prop_tests.rs:225:31 [INFO] [stdout] | [INFO] [stdout] 225 | let mut rng = StdRng::from_seed(seed); [INFO] [stdout] | ^^^^^^^^^ function or associated item not found in `StdRng` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `SeedableRng` which provides `from_seed` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use rand::SeedableRng; [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[E0599]: no function or associated item named `generate_keypair` found for struct `MlKem768` in the current scope [INFO] [stdout] --> tests/prop_tests.rs:226:33 [INFO] [stdout] | [INFO] [stdout] 226 | let keypair = MlKem768::generate_keypair(&mut rng).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ function or associated item not found in `MlKem768` [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] | ------------------------- ^^^^^^^^ the trait `CryptoRng` is not implemented for `DeterministicRng` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [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 1 argument but 2 arguments were supplied [INFO] [stdout] --> tests/prop_tests.rs:233:34 [INFO] [stdout] | [INFO] [stdout] 233 | let (shared_secret, _) = MlKem768::encapsulate(&keypair.public_key, &mut rng).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ -------- unexpected argument #2 [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/ml_kem/mod.rs:121:12 [INFO] [stdout] | [INFO] [stdout] 121 | pub fn encapsulate(pk: &PublicKey) -> Result<(Ciphertext, SharedSecret), KEMError> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 233 - let (shared_secret, _) = MlKem768::encapsulate(&keypair.public_key, &mut rng).unwrap(); [INFO] [stdout] 233 + let (shared_secret, _) = MlKem768::encapsulate(&keypair.public_key).unwrap(); [INFO] [stdout] | [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] | ------------------------- ^^^^^^^^ the trait `CryptoRng` is not implemented for `DeterministicRng` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [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[E0599]: no function or associated item named `from_seed` found for struct `StdRng` in the current scope [INFO] [stdout] --> tests/prop_tests.rs:243:31 [INFO] [stdout] | [INFO] [stdout] 243 | let mut rng = StdRng::from_seed(seed); [INFO] [stdout] | ^^^^^^^^^ function or associated item not found in `StdRng` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `SeedableRng` which provides `from_seed` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use rand::SeedableRng; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `generate_keypair` found for struct `MlKem768` in the current scope [INFO] [stdout] --> tests/prop_tests.rs:244:33 [INFO] [stdout] | [INFO] [stdout] 244 | let keypair = MlKem768::generate_keypair(&mut rng).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ function or associated item not found in `MlKem768` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 2 arguments were supplied [INFO] [stdout] --> tests/prop_tests.rs:245:31 [INFO] [stdout] | [INFO] [stdout] 245 | let (_, ciphertext) = MlKem768::encapsulate(&keypair.public_key, &mut rng).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ -------- unexpected argument #2 [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/ml_kem/mod.rs:121:12 [INFO] [stdout] | [INFO] [stdout] 121 | pub fn encapsulate(pk: &PublicKey) -> Result<(Ciphertext, SharedSecret), KEMError> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 245 - let (_, ciphertext) = MlKem768::encapsulate(&keypair.public_key, &mut rng).unwrap(); [INFO] [stdout] 245 + let (_, ciphertext) = MlKem768::encapsulate(&keypair.public_key).unwrap(); [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[E0599]: no method named `as_bytes_mut` found for struct `SharedSecret` in the current scope [INFO] [stdout] --> tests/prop_tests.rs:249:36 [INFO] [stdout] | [INFO] [stdout] 249 | let ct_bytes = tampered_ct.as_bytes_mut(); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `as_bytes` with a similar name [INFO] [stdout] | [INFO] [stdout] 249 - let ct_bytes = tampered_ct.as_bytes_mut(); [INFO] [stdout] 249 + let ct_bytes = tampered_ct.as_bytes(); [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[E0308]: mismatched types [INFO] [stdout] --> tests/prop_tests.rs:253:69 [INFO] [stdout] | [INFO] [stdout] 253 | let result = MlKem768::decapsulate(&keypair.secret_key, &tampered_ct); [INFO] [stdout] | --------------------- ^^^^^^^^^^^^ expected `&Ciphertext`, found `&SharedSecret` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&qudag_crypto::Ciphertext` [INFO] [stdout] found reference `&SharedSecret` [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/prop_tests.rs:256:78 [INFO] [stdout] | [INFO] [stdout] 256 | let original_ss = MlKem768::decapsulate(&keypair.secret_key, &ciphertext).unwrap(); [INFO] [stdout] | --------------------- ^^^^^^^^^^^ expected `&Ciphertext`, found `&SharedSecret` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&qudag_crypto::Ciphertext` [INFO] [stdout] found reference `&SharedSecret` [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: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[E0599]: no function or associated item named `from_seed` found for struct `StdRng` in the current scope [INFO] [stdout] --> tests/prop_tests.rs:273:31 [INFO] [stdout] | [INFO] [stdout] 273 | let mut rng = StdRng::from_seed(seed); [INFO] [stdout] | ^^^^^^^^^ function or associated item not found in `StdRng` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `SeedableRng` which provides `from_seed` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use rand::SeedableRng; [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[E0599]: no function or associated item named `from_seed` found for struct `StdRng` in the current scope [INFO] [stdout] --> tests/prop_tests.rs:306:31 [INFO] [stdout] | [INFO] [stdout] 306 | let mut rng = StdRng::from_seed(seed); [INFO] [stdout] | ^^^^^^^^^ function or associated item not found in `StdRng` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `SeedableRng` which provides `from_seed` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use rand::SeedableRng; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_seed` found for struct `StdRng` in the current scope [INFO] [stdout] --> tests/prop_tests.rs:325:31 [INFO] [stdout] | [INFO] [stdout] 325 | let mut rng = StdRng::from_seed(seed); [INFO] [stdout] | ^^^^^^^^^ function or associated item not found in `StdRng` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `SeedableRng` which provides `from_seed` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use rand::SeedableRng; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_seed` found for struct `StdRng` in the current scope [INFO] [stdout] --> tests/prop_tests.rs:352:31 [INFO] [stdout] | [INFO] [stdout] 352 | let mut rng = StdRng::from_seed(seed); [INFO] [stdout] | ^^^^^^^^^ function or associated item not found in `StdRng` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `SeedableRng` which provides `from_seed` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use rand::SeedableRng; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `generate_keypair` found for struct `qudag_crypto::Hqc256` in the current scope [INFO] [stdout] --> tests/prop_tests.rs:353:31 [INFO] [stdout] | [INFO] [stdout] 353 | let keypair = Hqc256::generate_keypair(&mut rng).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ function or associated item not found in `qudag_crypto::Hqc256` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 2 arguments but 3 arguments were supplied [INFO] [stdout] --> tests/prop_tests.rs:357:30 [INFO] [stdout] | [INFO] [stdout] 357 | let ciphertext = Hqc256::encrypt(&keypair.public_key, plaintext, &mut rng).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ -------- unexpected argument #3 [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/hqc.rs:462:12 [INFO] [stdout] | [INFO] [stdout] 462 | pub fn encrypt(pk: &PublicKey, message: &[u8]) -> Result, HqcError> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 357 - let ciphertext = Hqc256::encrypt(&keypair.public_key, plaintext, &mut rng).unwrap(); [INFO] [stdout] 357 + let ciphertext = Hqc256::encrypt(&keypair.public_key, plaintext).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)]` 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] [stdout] error[E0061]: this function takes 2 arguments but 3 arguments were supplied [INFO] [stdout] --> tests/prop_tests.rs:363:31 [INFO] [stdout] | [INFO] [stdout] 363 | let ciphertext2 = Hqc256::encrypt(&keypair.public_key, plaintext, &mut rng).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ -------- unexpected argument #3 [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/hqc.rs:462:12 [INFO] [stdout] | [INFO] [stdout] 462 | pub fn encrypt(pk: &PublicKey, message: &[u8]) -> Result, HqcError> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 363 - let ciphertext2 = Hqc256::encrypt(&keypair.public_key, plaintext, &mut rng).unwrap(); [INFO] [stdout] 363 + let ciphertext2 = Hqc256::encrypt(&keypair.public_key, plaintext).unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_bytes` found for struct `Vec` in the current scope [INFO] [stdout] --> tests/prop_tests.rs:364:40 [INFO] [stdout] | [INFO] [stdout] 364 | prop_assert_ne!(ciphertext.as_bytes(), ciphertext2.as_bytes()); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: the following traits which provide `as_bytes` are implemented but not in scope; perhaps you want to import one of them [INFO] [stdout] | [INFO] [stdout] 1 + use blake2::as_bytes::AsBytes; [INFO] [stdout] | [INFO] [stdout] 1 + use pqcrypto_traits::kem::Ciphertext; [INFO] [stdout] | [INFO] [stdout] 1 + use pqcrypto_traits::kem::PublicKey; [INFO] [stdout] | [INFO] [stdout] 1 + use pqcrypto_traits::kem::SecretKey; [INFO] [stdout] | [INFO] [stdout] and 7 other candidates [INFO] [stdout] help: there is a method `bytes` with a similar name [INFO] [stdout] | [INFO] [stdout] 364 - prop_assert_ne!(ciphertext.as_bytes(), ciphertext2.as_bytes()); [INFO] [stdout] 364 + prop_assert_ne!(ciphertext.bytes(), ciphertext2.as_bytes()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_bytes` found for struct `Vec` in the current scope [INFO] [stdout] --> tests/prop_tests.rs:364:64 [INFO] [stdout] | [INFO] [stdout] 364 | prop_assert_ne!(ciphertext.as_bytes(), ciphertext2.as_bytes()); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: the following traits which provide `as_bytes` are implemented but not in scope; perhaps you want to import one of them [INFO] [stdout] | [INFO] [stdout] 1 + use blake2::as_bytes::AsBytes; [INFO] [stdout] | [INFO] [stdout] 1 + use pqcrypto_traits::kem::Ciphertext; [INFO] [stdout] | [INFO] [stdout] 1 + use pqcrypto_traits::kem::PublicKey; [INFO] [stdout] | [INFO] [stdout] 1 + use pqcrypto_traits::kem::SecretKey; [INFO] [stdout] | [INFO] [stdout] and 7 other candidates [INFO] [stdout] help: there is a method `bytes` with a similar name [INFO] [stdout] | [INFO] [stdout] 364 - prop_assert_ne!(ciphertext.as_bytes(), ciphertext2.as_bytes()); [INFO] [stdout] 364 + prop_assert_ne!(ciphertext.as_bytes(), ciphertext2.bytes()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `qudag-crypto` (test "nist_test_vectors") due to 39 previous errors; 10 warnings emitted [INFO] [stdout] error[E0599]: no function or associated item named `from_seed` found for struct `StdRng` in the current scope [INFO] [stdout] --> tests/prop_tests.rs:374:31 [INFO] [stdout] | [INFO] [stdout] 374 | let mut rng = StdRng::from_seed(seed); [INFO] [stdout] | ^^^^^^^^^ function or associated item not found in `StdRng` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `SeedableRng` which provides `from_seed` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use rand::SeedableRng; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `generate_keypair` found for struct `qudag_crypto::Hqc256` in the current scope [INFO] [stdout] --> tests/prop_tests.rs:375:31 [INFO] [stdout] | [INFO] [stdout] 375 | let keypair = Hqc256::generate_keypair(&mut rng).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ function or associated item not found in `qudag_crypto::Hqc256` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 2 arguments but 3 arguments were supplied [INFO] [stdout] --> tests/prop_tests.rs:377:26 [INFO] [stdout] | [INFO] [stdout] 377 | let ciphertext = Hqc256::encrypt(&keypair.public_key, &plaintext, &mut rng).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ -------- unexpected argument #3 [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/hqc.rs:462:12 [INFO] [stdout] | [INFO] [stdout] 462 | pub fn encrypt(pk: &PublicKey, message: &[u8]) -> Result, HqcError> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 377 - let ciphertext = Hqc256::encrypt(&keypair.public_key, &plaintext, &mut rng).unwrap(); [INFO] [stdout] 377 + let ciphertext = Hqc256::encrypt(&keypair.public_key, &plaintext).unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_bytes_mut` found for struct `Vec` in the current scope [INFO] [stdout] --> tests/prop_tests.rs:381:37 [INFO] [stdout] | [INFO] [stdout] 381 | let ct_bytes = corrupted_ct.as_bytes_mut(); [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_mut` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use zerocopy::IntoBytes; [INFO] [stdout] | [INFO] [stdout] help: there is a method `as_mut` with a similar name [INFO] [stdout] | [INFO] [stdout] 381 - let ct_bytes = corrupted_ct.as_bytes_mut(); [INFO] [stdout] 381 + let ct_bytes = corrupted_ct.as_mut(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0782]: expected a type, found a trait [INFO] [stdout] --> tests/prop_tests.rs:415:22 [INFO] [stdout] | [INFO] [stdout] 415 | let hasher = HashFunction::blake3(); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you can add the `dyn` keyword if you want a trait object [INFO] [stdout] | [INFO] [stdout] 415 | let hasher = ::blake3(); [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0782]: expected a type, found a trait [INFO] [stdout] --> tests/prop_tests.rs:444:22 [INFO] [stdout] | [INFO] [stdout] 444 | let hasher = HashFunction::blake3(); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you can add the `dyn` keyword if you want a trait object [INFO] [stdout] | [INFO] [stdout] 444 | let hasher = ::blake3(); [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_seed` found for struct `StdRng` in the current scope [INFO] [stdout] --> tests/prop_tests.rs:472:31 [INFO] [stdout] | [INFO] [stdout] 472 | let mut rng = StdRng::from_seed(seed); [INFO] [stdout] | ^^^^^^^^^ function or associated item not found in `StdRng` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `SeedableRng` which provides `from_seed` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use rand::SeedableRng; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `generate_keypair` found for struct `MlKem768` in the current scope [INFO] [stdout] --> tests/prop_tests.rs:475:37 [INFO] [stdout] | [INFO] [stdout] 475 | let kem_keypair = MlKem768::generate_keypair(&mut rng).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ function or associated item not found in `MlKem768` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `generate_keypair` found for struct `qudag_crypto::Hqc256` in the current scope [INFO] [stdout] --> tests/prop_tests.rs:477:35 [INFO] [stdout] | [INFO] [stdout] 477 | let hqc_keypair = Hqc256::generate_keypair(&mut rng).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ function or associated item not found in `qudag_crypto::Hqc256` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0782]: expected a type, found a trait [INFO] [stdout] --> tests/prop_tests.rs:478:22 [INFO] [stdout] | [INFO] [stdout] 478 | let hasher = HashFunction::blake3(); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you can add the `dyn` keyword if you want a trait object [INFO] [stdout] | [INFO] [stdout] 478 | let hasher = ::blake3(); [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 2 arguments were supplied [INFO] [stdout] --> tests/prop_tests.rs:481:39 [INFO] [stdout] | [INFO] [stdout] 481 | let (shared_secret, kem_ct) = MlKem768::encapsulate(&kem_keypair.public_key, &mut rng).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ -------- unexpected argument #2 [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/ml_kem/mod.rs:121:12 [INFO] [stdout] | [INFO] [stdout] 121 | pub fn encapsulate(pk: &PublicKey) -> Result<(Ciphertext, SharedSecret), KEMError> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 481 - let (shared_secret, kem_ct) = MlKem768::encapsulate(&kem_keypair.public_key, &mut rng).unwrap(); [INFO] [stdout] 481 + let (shared_secret, kem_ct) = MlKem768::encapsulate(&kem_keypair.public_key).unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/prop_tests.rs:492:79 [INFO] [stdout] | [INFO] [stdout] 492 | let recovered_secret = MlKem768::decapsulate(&kem_keypair.secret_key, &kem_ct).unwrap(); [INFO] [stdout] | --------------------- ^^^^^^^ expected `&Ciphertext`, found `&SharedSecret` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&qudag_crypto::Ciphertext` [INFO] [stdout] found reference `&SharedSecret` [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] Some errors have detailed explanations: E0061, E0308, E0412, E0425, E0432, E0599, E0782. [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 "prop_tests") due to 62 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "c7d7220661f1a649d55521330afb690a9fa73ca05d3ede0b34fbf1a7ae031602", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c7d7220661f1a649d55521330afb690a9fa73ca05d3ede0b34fbf1a7ae031602", kill_on_drop: false }` [INFO] [stdout] c7d7220661f1a649d55521330afb690a9fa73ca05d3ede0b34fbf1a7ae031602