[INFO] fetching crate qudag-crypto 0.5.1... [INFO] checking qudag-crypto-0.5.1 against master#350d0ef0ec0493e6d21cfb265cb8211a0e74d766 for pr-145342-1 [INFO] extracting crate qudag-crypto 0.5.1 into /workspace/builds/worker-1-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-1-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate qudag-crypto 0.5.1 on toolchain 350d0ef0ec0493e6d21cfb265cb8211a0e74d766 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded pqcrypto-traits v0.3.5 [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-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] baf7a8ce09cbc4dee2518e717676810b364cce10e14f49ff0f14dbe1f03aae38 [INFO] running `Command { std: "docker" "start" "-a" "baf7a8ce09cbc4dee2518e717676810b364cce10e14f49ff0f14dbe1f03aae38", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "baf7a8ce09cbc4dee2518e717676810b364cce10e14f49ff0f14dbe1f03aae38", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "baf7a8ce09cbc4dee2518e717676810b364cce10e14f49ff0f14dbe1f03aae38", kill_on_drop: false }` [INFO] [stdout] baf7a8ce09cbc4dee2518e717676810b364cce10e14f49ff0f14dbe1f03aae38 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 144673c3d8cdf68a9a0902eea74bc19359b1b029200b97a0feefa8e61edc8179 [INFO] running `Command { std: "docker" "start" "-a" "144673c3d8cdf68a9a0902eea74bc19359b1b029200b97a0feefa8e61edc8179", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Checking cfg-if v1.0.1 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling typenum v1.18.0 [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Checking subtle v2.6.1 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Checking cpufeatures v0.2.17 [INFO] [stderr] Compiling glob v0.3.2 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling semver v1.0.26 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling zerocopy v0.8.26 [INFO] [stderr] Compiling dunce v1.0.5 [INFO] [stderr] Checking once_cell v1.21.3 [INFO] [stderr] Checking opaque-debug v0.3.1 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling rustix v1.0.7 [INFO] [stderr] Compiling rustc_version v0.4.1 [INFO] [stderr] Compiling autocfg v1.5.0 [INFO] [stderr] Checking linux-raw-sys v0.9.4 [INFO] [stderr] Checking bitflags v2.9.1 [INFO] [stderr] Compiling curve25519-dalek v4.1.3 [INFO] [stderr] Checking pqcrypto-traits v0.3.5 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Compiling jobserver v0.1.33 [INFO] [stderr] Checking rand_core v0.9.3 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking inout v0.1.4 [INFO] [stderr] Checking base64ct v1.8.0 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Compiling cc v1.2.27 [INFO] [stderr] Checking fastrand v2.3.0 [INFO] [stderr] Checking signature v2.2.0 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking universal-hash v0.5.1 [INFO] [stderr] Checking aead v0.5.2 [INFO] [stderr] Checking ed25519 v2.2.3 [INFO] [stderr] Checking polyval v0.6.2 [INFO] [stderr] Checking poly1305 v0.8.0 [INFO] [stderr] Checking sha2 v0.10.9 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking ghash v0.5.1 [INFO] [stderr] Checking blake2 v0.10.6 [INFO] [stderr] Checking password-hash v0.5.0 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking wait-timeout v0.2.1 [INFO] [stderr] Checking tracing-core v0.1.34 [INFO] [stderr] Checking constant_time_eq v0.3.1 [INFO] [stderr] Checking arrayref v0.3.9 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking quick-error v1.2.3 [INFO] [stderr] Checking pin-project-lite v0.2.16 [INFO] [stderr] Checking bit-vec v0.8.0 [INFO] [stderr] Checking keccak v0.1.5 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking arrayvec v0.7.6 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Checking bit-set v0.8.0 [INFO] [stderr] Checking argon2 v0.5.3 [INFO] [stderr] Checking sha3 v0.10.8 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking hkdf v0.12.4 [INFO] [stderr] Checking rand_xorshift v0.4.0 [INFO] [stderr] Checking rand v0.9.1 [INFO] [stderr] Checking unarray v0.1.4 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Checking regex-syntax v0.8.5 [INFO] [stderr] Checking tempfile v3.20.0 [INFO] [stderr] Checking rusty-fork v0.3.0 [INFO] [stderr] Compiling pqcrypto-internals v0.2.10 [INFO] [stderr] Compiling pqcrypto-hqc v0.2.1 [INFO] [stderr] Compiling pqcrypto-dilithium v0.5.0 [INFO] [stderr] Compiling pqcrypto-kyber v0.5.0 [INFO] [stderr] Compiling blake3 v1.8.2 [INFO] [stderr] Checking proptest v1.7.0 [INFO] [stderr] Compiling zeroize_derive v1.4.2 [INFO] [stderr] Compiling curve25519-dalek-derive v0.1.1 [INFO] [stderr] Checking zeroize v1.8.1 [INFO] [stderr] Checking cipher v0.4.4 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Checking chacha20 v0.9.1 [INFO] [stderr] Checking ctr v0.9.2 [INFO] [stderr] Checking aes v0.8.4 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Checking aes-gcm v0.10.3 [INFO] [stderr] Checking chacha20poly1305 v0.10.1 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking ed25519-dalek v2.1.1 [INFO] [stderr] Checking x25519-dalek v2.0.1 [INFO] [stderr] Checking qudag-crypto v0.5.1 (/opt/rustwide/workdir) [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 `criterion` [INFO] [stdout] --> benches/crypto_optimized.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use criterion::{black_box, criterion_group, criterion_main, BenchmarkId, Criterion, Throughput}; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `criterion` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `criterion`, use `cargo add criterion` to add it to your `Cargo.toml` [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] warning: unused imports: `AtomicU64` and `Ordering` [INFO] [stdout] --> benches/crypto_optimized.rs:3:25 [INFO] [stdout] | [INFO] [stdout] 3 | use std::sync::atomic::{AtomicU64, Ordering}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::hint::black_box as compiler_fence` [INFO] [stdout] --> benches/crypto_optimized.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use std::hint::black_box as compiler_fence; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `encapsulate` in this scope [INFO] [stdout] --> tests/timing_tests.rs:47:45 [INFO] [stdout] | [INFO] [stdout] 47 | let (_, duration) = measure_time(|| encapsulate(&keypair.public_key)); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 1 + use pqcrypto_hqc::hqc128::encapsulate; [INFO] [stdout] | [INFO] [stdout] 1 + use pqcrypto_hqc::hqc192::encapsulate; [INFO] [stdout] | [INFO] [stdout] 1 + use pqcrypto_hqc::hqc256::encapsulate; [INFO] [stdout] | [INFO] [stdout] 1 + use pqcrypto_kyber::kyber1024::encapsulate; [INFO] [stdout] | [INFO] [stdout] = and 2 other candidates [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `encapsulate` in this scope [INFO] [stdout] --> tests/timing_tests.rs:65:19 [INFO] [stdout] | [INFO] [stdout] 65 | let (_, ct) = encapsulate(&keypair.public_key).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 1 + use pqcrypto_hqc::hqc128::encapsulate; [INFO] [stdout] | [INFO] [stdout] 1 + use pqcrypto_hqc::hqc192::encapsulate; [INFO] [stdout] | [INFO] [stdout] 1 + use pqcrypto_hqc::hqc256::encapsulate; [INFO] [stdout] | [INFO] [stdout] 1 + use pqcrypto_kyber::kyber1024::encapsulate; [INFO] [stdout] | [INFO] [stdout] = and 2 other candidates [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `decapsulate` in this scope [INFO] [stdout] --> tests/timing_tests.rs:72:45 [INFO] [stdout] | [INFO] [stdout] 72 | let (_, duration) = measure_time(|| decapsulate(&keypair.secret_key, &ct)); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 1 + use pqcrypto_hqc::hqc128::decapsulate; [INFO] [stdout] | [INFO] [stdout] 1 + use pqcrypto_hqc::hqc192::decapsulate; [INFO] [stdout] | [INFO] [stdout] 1 + use pqcrypto_hqc::hqc256::decapsulate; [INFO] [stdout] | [INFO] [stdout] 1 + use pqcrypto_kyber::kyber1024::decapsulate; [INFO] [stdout] | [INFO] [stdout] = and 2 other candidates [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `decapsulate` in this scope [INFO] [stdout] --> tests/timing_tests.rs:80:45 [INFO] [stdout] | [INFO] [stdout] 80 | let (_, duration) = measure_time(|| decapsulate(&keypair.secret_key, &invalid_ct)); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 1 + use pqcrypto_hqc::hqc128::decapsulate; [INFO] [stdout] | [INFO] [stdout] 1 + use pqcrypto_hqc::hqc192::decapsulate; [INFO] [stdout] | [INFO] [stdout] 1 + use pqcrypto_hqc::hqc256::decapsulate; [INFO] [stdout] | [INFO] [stdout] 1 + use pqcrypto_kyber::kyber1024::decapsulate; [INFO] [stdout] | [INFO] [stdout] = and 2 other candidates [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `qudag_crypto::ml_kem::*` [INFO] [stdout] --> tests/timing_tests.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use qudag_crypto::ml_kem::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `qudag_crypto::ml_dsa::MLDsa`, `qudag_crypto::ml_dsa::SIGNATURE_LENGTH` [INFO] [stdout] --> benches/mldsa_benchmarks.rs:2:28 [INFO] [stdout] | [INFO] [stdout] 2 | use qudag_crypto::ml_dsa::{MLDsa, SIGNATURE_LENGTH}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^ no `SIGNATURE_LENGTH` in `ml_dsa` [INFO] [stdout] | | [INFO] [stdout] | no `MLDsa` in `ml_dsa` [INFO] [stdout] | help: a similar name exists in the module: `MlDsa` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `criterion` [INFO] [stdout] --> benches/mldsa_benchmarks.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use criterion::{black_box, criterion_group, criterion_main, BenchmarkId, Criterion, Throughput}; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `criterion` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `criterion`, use `cargo add criterion` 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[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[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[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[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] 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] 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] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [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] 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] [stderr] error: could not compile `qudag-crypto` (bench "mldsa_benchmarks") due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stderr] error: could not compile `qudag-crypto` (test "security_tests") due to 2 previous errors; 1 warning emitted [INFO] [stdout] error[E0599]: no function or associated item named `detect_neon` found for struct `MlKem768Optimized` in the current scope [INFO] [stdout] --> benches/crypto_optimized.rs:46:29 [INFO] [stdout] | [INFO] [stdout] 20 | struct MlKem768Optimized { [INFO] [stdout] | ------------------------ function or associated item `detect_neon` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 46 | has_neon: Self::detect_neon(), [INFO] [stdout] | ^^^^^^^^^^^ function or associated item not found in `MlKem768Optimized` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `MlKem768Optimized`, consider using `MlKem768Optimized::new` which returns `MlKem768Optimized` [INFO] [stdout] --> benches/crypto_optimized.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | fn new() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `qudag-crypto` (test "timing_tests") due to 9 previous errors; 1 warning emitted [INFO] [stdout] error[E0599]: no function or associated item named `detect_neon` found for struct `Blake3HasherOptimized` in the current scope [INFO] [stdout] --> benches/crypto_optimized.rs:139:29 [INFO] [stdout] | [INFO] [stdout] 128 | struct Blake3HasherOptimized { [INFO] [stdout] | ---------------------------- function or associated item `detect_neon` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 139 | has_neon: Self::detect_neon(), [INFO] [stdout] | ^^^^^^^^^^^ function or associated item not found in `Blake3HasherOptimized` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `Blake3HasherOptimized`, consider using `Blake3HasherOptimized::new` which returns `Blake3HasherOptimized` [INFO] [stdout] --> benches/crypto_optimized.rs:135:5 [INFO] [stdout] | [INFO] [stdout] 135 | fn new() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `KeyEncapsulation` [INFO] [stdout] --> tests/ml_kem_tests.rs:4:27 [INFO] [stdout] | [INFO] [stdout] 4 | Ciphertext, KEMError, KeyEncapsulation, PublicKey, SecretKey, SharedSecret, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `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] error[E0599]: no method named `hash_neon` found for reference `&Blake3HasherOptimized` in the current scope [INFO] [stdout] --> benches/crypto_optimized.rs:166:18 [INFO] [stdout] | [INFO] [stdout] 166 | self.hash_neon(data) [INFO] [stdout] | ^^^^^^^^^ method not found in `&Blake3HasherOptimized` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ct` [INFO] [stdout] --> tests/ml_kem_tests.rs:97:13 [INFO] [stdout] | [INFO] [stdout] 97 | let ct = Ciphertext::from_bytes(&ct_bytes).unwrap_or_else(|_| panic!("Failed to create ciphertext")); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ct` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `generate_keypair` in 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[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] [stderr] error: could not compile `qudag-crypto` (bench "crypto_optimized") due to 7 previous errors; 2 warnings emitted [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[E0599]: no method named `get_performance_info` found for struct `MlKem768Optimized` in the current scope [INFO] [stdout] --> benches/crypto_optimized.rs:273:49 [INFO] [stdout] | [INFO] [stdout] 20 | struct MlKem768Optimized { [INFO] [stdout] | ------------------------ method `get_performance_info` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 273 | println!("Hardware capabilities: {}", mlkem.get_performance_info()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ method not found in `MlKem768Optimized` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `clear_caches` found for struct `MlKem768Optimized` in the current scope [INFO] [stdout] --> benches/crypto_optimized.rs:548:19 [INFO] [stdout] | [INFO] [stdout] 20 | struct MlKem768Optimized { [INFO] [stdout] | ------------------------ method `clear_caches` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 548 | mlkem.clear_caches(); [INFO] [stdout] | ^^^^^^^^^^^^ method not found in `MlKem768Optimized` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `clear_caches` found for struct `MlKem768Optimized` in the current scope [INFO] [stdout] --> benches/crypto_optimized.rs:565:19 [INFO] [stdout] | [INFO] [stdout] 20 | struct MlKem768Optimized { [INFO] [stdout] | ------------------------ method `clear_caches` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 565 | mlkem.clear_caches(); [INFO] [stdout] | ^^^^^^^^^^^^ method not found in `MlKem768Optimized` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [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] 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] [stderr] error: could not compile `qudag-crypto` (test "ml_kem_tests") due to 1 previous error; 3 warnings emitted [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[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[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[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 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[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 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[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] [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[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[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[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 `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[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/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[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[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 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 zerocopy::IntoBytes; [INFO] [stdout] | [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 zerocopy::IntoBytes; [INFO] [stdout] | [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] [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" "144673c3d8cdf68a9a0902eea74bc19359b1b029200b97a0feefa8e61edc8179", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "144673c3d8cdf68a9a0902eea74bc19359b1b029200b97a0feefa8e61edc8179", kill_on_drop: false }` [INFO] [stdout] 144673c3d8cdf68a9a0902eea74bc19359b1b029200b97a0feefa8e61edc8179