[INFO] fetching crate qasa 0.0.7... [INFO] testing qasa-0.0.7 against master#562dee4820c458d823175268e41601d4c060588a for pr-154210-2 [INFO] extracting crate qasa 0.0.7 into /workspace/builds/worker-5-tc1/source [INFO] started tweaking crates.io crate qasa 0.0.7 [INFO] removed 0 missing examples [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate qasa 0.0.7 [INFO] tweaked toml for crates.io crate qasa 0.0.7 written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate qasa 0.0.7 on toolchain 562dee4820c458d823175268e41601d4c060588a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate qasa 0.0.7 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" "+562dee4820c458d823175268e41601d4c060588a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded wasm-bindgen-shared v0.2.106 [INFO] [stderr] Downloaded uuid v1.19.0 [INFO] [stderr] Downloaded serde_arrays v0.1.0 [INFO] [stderr] Downloaded libredox v0.1.10 [INFO] [stderr] Downloaded wasm-bindgen-macro v0.2.106 [INFO] [stderr] Downloaded pyo3-macros v0.18.3 [INFO] [stderr] Downloaded memoffset v0.8.0 [INFO] [stderr] Downloaded unindent v0.1.11 [INFO] [stderr] Downloaded indoc v1.0.9 [INFO] [stderr] Downloaded argon2 v0.5.3 [INFO] [stderr] Downloaded js-sys v0.3.83 [INFO] [stderr] Downloaded build-deps v0.1.4 [INFO] [stderr] Downloaded iana-time-zone v0.1.64 [INFO] [stderr] Downloaded cc v1.2.49 [INFO] [stderr] Downloaded cryptoki v0.7.0 [INFO] [stderr] Downloaded pyo3-ffi v0.18.3 [INFO] [stderr] Downloaded rsa v0.9.9 [INFO] [stderr] Downloaded pyo3-macros-backend v0.18.3 [INFO] [stderr] Downloaded target-lexicon v0.12.16 [INFO] [stderr] Downloaded wasm-bindgen-macro-support v0.2.106 [INFO] [stderr] Downloaded blake3 v1.8.2 [INFO] [stderr] Downloaded cryptoki-sys v0.1.8 [INFO] [stderr] Downloaded proptest v1.9.0 [INFO] [stderr] Downloaded chrono v0.4.42 [INFO] [stderr] Downloaded wasm-bindgen v0.2.106 [INFO] [stderr] Downloaded cmake v0.1.56 [INFO] [stderr] Downloaded oqs v0.11.0 [INFO] [stderr] Downloaded pyo3-build-config v0.18.3 [INFO] [stderr] Downloaded pyo3 v0.18.3 [INFO] [stderr] Downloaded web-sys v0.3.83 [INFO] [stderr] Downloaded oqs-sys v0.11.0+liboqs-0.13.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2fc49f5b1eb4173d0139a4aa764c837cb8cfaf4ed786fc3b0fcf80379eb0b7b6 [INFO] running `Command { std: "docker" "start" "-a" "2fc49f5b1eb4173d0139a4aa764c837cb8cfaf4ed786fc3b0fcf80379eb0b7b6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2fc49f5b1eb4173d0139a4aa764c837cb8cfaf4ed786fc3b0fcf80379eb0b7b6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2fc49f5b1eb4173d0139a4aa764c837cb8cfaf4ed786fc3b0fcf80379eb0b7b6", kill_on_drop: false }` [INFO] [stdout] 2fc49f5b1eb4173d0139a4aa764c837cb8cfaf4ed786fc3b0fcf80379eb0b7b6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 463e25c7213a45b1af6b67debce606b1e877e97349ba79acfd57faa87b4ed972 [INFO] running `Command { std: "docker" "start" "-a" "463e25c7213a45b1af6b67debce606b1e877e97349ba79acfd57faa87b4ed972", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.178 [INFO] [stderr] Compiling proc-macro2 v1.0.103 [INFO] [stderr] Compiling quote v1.0.42 [INFO] [stderr] Compiling unicode-ident v1.0.22 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Compiling find-msvc-tools v0.1.5 [INFO] [stderr] Compiling const-oid v0.9.6 [INFO] [stderr] Compiling memchr v2.7.6 [INFO] [stderr] Compiling prettyplease v0.2.37 [INFO] [stderr] Compiling regex-syntax v0.8.8 [INFO] [stderr] Compiling clang-sys v1.8.1 [INFO] [stderr] Compiling libm v0.2.15 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling base64ct v1.8.1 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling libloading v0.8.9 [INFO] [stderr] Compiling cc v1.2.49 [INFO] [stderr] Compiling bindgen v0.71.1 [INFO] [stderr] Compiling zerocopy v0.8.31 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling inout v0.1.4 [INFO] [stderr] Compiling itertools v0.13.0 [INFO] [stderr] Compiling bitflags v2.10.0 [INFO] [stderr] Compiling rustc-hash v2.1.1 [INFO] [stderr] Compiling pem-rfc7468 v0.7.0 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling build-deps v0.1.4 [INFO] [stderr] Compiling pkg-config v0.3.32 [INFO] [stderr] Compiling curve25519-dalek v4.1.3 [INFO] [stderr] Compiling num-bigint-dig v0.8.6 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Compiling getrandom v0.3.4 [INFO] [stderr] Compiling cryptoki-sys v0.1.8 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling libloading v0.7.4 [INFO] [stderr] Compiling cty v0.2.2 [INFO] [stderr] Compiling oqs v0.11.0 [INFO] [stderr] Compiling option-ext v0.2.0 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling winapi v0.3.9 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling cstr_core v0.2.6 [INFO] [stderr] Compiling itoa v1.0.15 [INFO] [stderr] Compiling constant_time_eq v0.3.1 [INFO] [stderr] Compiling iana-time-zone v0.1.64 [INFO] [stderr] Compiling ryu v1.0.20 [INFO] [stderr] Compiling arrayvec v0.7.6 [INFO] [stderr] Compiling syn v2.0.111 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling arrayref v0.3.9 [INFO] [stderr] Compiling cmake v0.1.56 [INFO] [stderr] Compiling base64 v0.13.1 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling dirs-sys v0.4.1 [INFO] [stderr] Compiling blake3 v1.8.2 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling uuid v1.19.0 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling dirs v5.0.1 [INFO] [stderr] Compiling regex-automata v0.4.13 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling crypto-common v0.1.7 [INFO] [stderr] Compiling password-hash v0.5.0 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling universal-hash v0.5.1 [INFO] [stderr] Compiling aead v0.5.2 [INFO] [stderr] Compiling polyval v0.6.2 [INFO] [stderr] Compiling poly1305 v0.8.0 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling signature v2.2.0 [INFO] [stderr] Compiling blake2 v0.10.6 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling num-iter v0.1.45 [INFO] [stderr] Compiling ghash v0.5.1 [INFO] [stderr] Compiling cexpr v0.6.0 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Compiling sha3 v0.10.8 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling argon2 v0.5.3 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling regex v1.12.2 [INFO] [stderr] Compiling zeroize_derive v1.4.2 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling curve25519-dalek-derive v0.1.1 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling zeroize v1.8.2 [INFO] [stderr] Compiling cipher v0.4.4 [INFO] [stderr] Compiling der v0.7.10 [INFO] [stderr] Compiling secrecy v0.8.0 [INFO] [stderr] Compiling cryptoki v0.7.0 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling ctr v0.9.2 [INFO] [stderr] Compiling chacha20 v0.9.1 [INFO] [stderr] Compiling aes v0.8.4 [INFO] [stderr] Compiling chacha20poly1305 v0.10.1 [INFO] [stderr] Compiling aes-gcm v0.10.3 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling spki v0.7.3 [INFO] [stderr] Compiling pkcs8 v0.10.2 [INFO] [stderr] Compiling x25519-dalek v2.0.1 [INFO] [stderr] Compiling pkcs1 v0.7.5 [INFO] [stderr] Compiling rsa v0.9.9 [INFO] [stderr] Compiling bincode v1.3.3 [INFO] [stderr] Compiling chrono v0.4.42 [INFO] [stderr] Compiling serde_arrays v0.1.0 [INFO] [stderr] Compiling oqs-sys v0.11.0+liboqs-0.13.0 [INFO] [stderr] Compiling qasa v0.0.7 (/opt/rustwide/workdir) [INFO] [stdout] warning: variant `Kyber768_Dilithium3_AES256GCM` should have an upper camel case name [INFO] [stdout] --> src/protocols.rs:81:5 [INFO] [stdout] | [INFO] [stdout] 81 | Kyber768_Dilithium3_AES256GCM, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Kyber768Dilithium3Aes256gcm` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Kyber1024_Dilithium5_AES256GCM` should have an upper camel case name [INFO] [stdout] --> src/protocols.rs:82:5 [INFO] [stdout] | [INFO] [stdout] 82 | Kyber1024_Dilithium5_AES256GCM, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Kyber1024Dilithium5Aes256gcm` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Kyber512_Dilithium2_AES256GCM` should have an upper camel case name [INFO] [stdout] --> src/protocols.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 83 | Kyber512_Dilithium2_AES256GCM, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Kyber512Dilithium2Aes256gcm` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Hasher` [INFO] [stdout] --> src/security/formal_verification.rs:10:23 [INFO] [stdout] | [INFO] [stdout] 10 | use std::hash::{Hash, Hasher}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::hash::Hasher` [INFO] [stdout] --> src/hybrid/hybrid_kem.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::hash::Hasher; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `prefer_speed` [INFO] [stdout] --> src/bike/parameters.rs:116:9 [INFO] [stdout] | [INFO] [stdout] 116 | prefer_speed: bool, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_prefer_speed` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `variant` [INFO] [stdout] --> src/security/formal_verification.rs:160:46 [INFO] [stdout] | [INFO] [stdout] 160 | fn analyze_constant_time_symbolic(&self, variant: KyberVariant) -> CryptoResult { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_variant` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `func` [INFO] [stdout] --> src/security/formal_verification.rs:198:14 [INFO] [stdout] | [INFO] [stdout] 198 | for (func, desc) in &critical_functions { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_func` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `variant` [INFO] [stdout] --> src/security/formal_verification.rs:264:40 [INFO] [stdout] | [INFO] [stdout] 264 | fn analyze_information_flow(&self, variant: KyberVariant) -> CryptoResult { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_variant` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `is_constant_time` is never read [INFO] [stdout] --> src/security/formal_verification.rs:447:36 [INFO] [stdout] | [INFO] [stdout] 447 | let mut is_constant_time = true; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `confidence` is never read [INFO] [stdout] --> src/security/formal_verification.rs:587:30 [INFO] [stdout] | [INFO] [stdout] 587 | let mut confidence = 0.85; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `confidence` is never read [INFO] [stdout] --> src/security/formal_verification.rs:817:30 [INFO] [stdout] | [INFO] [stdout] 817 | let mut confidence = 0.82; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `kyber_variant` [INFO] [stdout] --> src/hybrid/hybrid_kem.rs:233:52 [INFO] [stdout] | [INFO] [stdout] 233 | PostQuantumKemAlgorithm::Kyber(kyber_variant) => { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_kyber_variant` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bike_variant` [INFO] [stdout] --> src/hybrid/hybrid_kem.rs:237:51 [INFO] [stdout] | [INFO] [stdout] 237 | PostQuantumKemAlgorithm::Bike(bike_variant) => { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bike_variant` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `kyber_variant` [INFO] [stdout] --> src/hybrid/hybrid_kem.rs:253:52 [INFO] [stdout] | [INFO] [stdout] 253 | PostQuantumKemAlgorithm::Kyber(kyber_variant) => { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_kyber_variant` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bike_variant` [INFO] [stdout] --> src/hybrid/hybrid_kem.rs:257:51 [INFO] [stdout] | [INFO] [stdout] 257 | PostQuantumKemAlgorithm::Bike(bike_variant) => { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bike_variant` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `kyber_variant` [INFO] [stdout] --> src/hybrid/hybrid_kem.rs:292:52 [INFO] [stdout] | [INFO] [stdout] 292 | PostQuantumKemAlgorithm::Kyber(kyber_variant) => { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_kyber_variant` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bike_variant` [INFO] [stdout] --> src/hybrid/hybrid_kem.rs:296:51 [INFO] [stdout] | [INFO] [stdout] 296 | PostQuantumKemAlgorithm::Bike(bike_variant) => { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bike_variant` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key_pair` [INFO] [stdout] --> src/hybrid/hybrid_kem.rs:358:21 [INFO] [stdout] | [INFO] [stdout] 358 | let key_pair = ring::signature::EcdsaKeyPair::from_pkcs8( [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_key_pair` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `kyber_variant` [INFO] [stdout] --> src/hybrid/hybrid_kem.rs:439:44 [INFO] [stdout] | [INFO] [stdout] 439 | PostQuantumKemAlgorithm::Kyber(kyber_variant) => { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_kyber_variant` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bike_variant` [INFO] [stdout] --> src/hybrid/hybrid_kem.rs:443:43 [INFO] [stdout] | [INFO] [stdout] 443 | PostQuantumKemAlgorithm::Bike(bike_variant) => { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bike_variant` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `kyber_variant` [INFO] [stdout] --> src/hybrid/hybrid_kem.rs:724:44 [INFO] [stdout] | [INFO] [stdout] 724 | PostQuantumKemAlgorithm::Kyber(kyber_variant) => { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_kyber_variant` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bike_variant` [INFO] [stdout] --> src/hybrid/hybrid_kem.rs:728:43 [INFO] [stdout] | [INFO] [stdout] 728 | PostQuantumKemAlgorithm::Bike(bike_variant) => { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bike_variant` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/hybrid/hybrid_encryption.rs:123:9 [INFO] [stdout] | [INFO] [stdout] 123 | _ => { [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/hybrid/hybrid_encryption.rs:123:9 [INFO] [stdout] | [INFO] [stdout] 121 | AesMode::Gcm256 | AesMode::Ctr256 => 32, // 256 bits [INFO] [stdout] | --------------------------------- matches some of the same values [INFO] [stdout] 122 | AesMode::Gcm128 | AesMode::Ctr128 => 16, // 128 bits [INFO] [stdout] | --------------------------------- matches some of the same values [INFO] [stdout] 123 | _ => { [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/hybrid/hybrid_encryption.rs:136:9 [INFO] [stdout] | [INFO] [stdout] 136 | _ => { [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/hybrid/hybrid_encryption.rs:136:9 [INFO] [stdout] | [INFO] [stdout] 134 | AesMode::Gcm256 | AesMode::Gcm128 => 12, // 96 bits for GCM [INFO] [stdout] | --------------------------------- matches some of the same values [INFO] [stdout] 135 | AesMode::Ctr256 | AesMode::Ctr128 => 16, // 128 bits for CTR [INFO] [stdout] | --------------------------------- matches some of the same values [INFO] [stdout] 136 | _ => { [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_signature_entropy` is never used [INFO] [stdout] --> src/sphincsplus/sphincsplus.rs:885:4 [INFO] [stdout] | [INFO] [stdout] 885 | fn calculate_signature_entropy(data: &[u8]) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_any_sphincs_available` is never used [INFO] [stdout] --> src/sphincsplus/sphincsplus.rs:984:8 [INFO] [stdout] | [INFO] [stdout] 984 | pub fn is_any_sphincs_available() -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SphincsParameters` is never constructed [INFO] [stdout] --> src/sphincsplus/parameters.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct SphincsParameters { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `HashFunction` is never used [INFO] [stdout] --> src/sphincsplus/parameters.rs:44:10 [INFO] [stdout] | [INFO] [stdout] 44 | pub enum HashFunction { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `OptimizationMode` is never used [INFO] [stdout] --> src/sphincsplus/parameters.rs:57:10 [INFO] [stdout] | [INFO] [stdout] 57 | pub enum OptimizationMode { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `for_variant`, `approx_signing_time_ms`, `approx_verify_time_ms`, and `for_constrained_environment` are never used [INFO] [stdout] --> src/sphincsplus/parameters.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 65 | impl SphincsParameters { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] 66 | /// Get parameters for a specific SPHINCS+ variant [INFO] [stdout] 67 | pub fn for_variant(variant: SphincsVariant) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 145 | pub fn approx_signing_time_ms(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 169 | pub fn approx_verify_time_ms(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 192 | pub fn for_constrained_environment( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BikeParameters` is never constructed [INFO] [stdout] --> src/bike/parameters.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct BikeParameters { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `HashFunction` is never used [INFO] [stdout] --> src/bike/parameters.rs:41:10 [INFO] [stdout] | [INFO] [stdout] 41 | pub enum HashFunction { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `for_variant`, `approx_encapsulation_time_us`, `approx_decapsulation_time_us`, and `for_constrained_environment` are never used [INFO] [stdout] --> src/bike/parameters.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 52 | impl BikeParameters { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 53 | /// Get parameters for a specific BIKE variant [INFO] [stdout] 54 | pub fn for_variant(variant: BikeVariant) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | pub fn approx_encapsulation_time_us(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | pub fn approx_decapsulation_time_us(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 113 | pub fn for_constrained_environment( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `key_size` is never read [INFO] [stdout] --> src/aes/aes.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct AesKey { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 36 | key_size: usize, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AesKey` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `generate` is never used [INFO] [stdout] --> src/chacha20poly1305/chacha20.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 39 | impl ChaCha20Key { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn generate() -> CryptoResult { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `generate` is never used [INFO] [stdout] --> src/chacha20poly1305/chacha20.rs:87:12 [INFO] [stdout] | [INFO] [stdout] 69 | impl ChaCha20Nonce { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 87 | pub fn generate() -> CryptoResult { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encrypt` is never used [INFO] [stdout] --> src/chacha20poly1305/chacha20.rs:226:8 [INFO] [stdout] | [INFO] [stdout] 226 | pub fn encrypt(data: &[u8], key: &ChaCha20Key, nonce: &ChaCha20Nonce, counter: u32) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decrypt` is never used [INFO] [stdout] --> src/chacha20poly1305/chacha20.rs:231:8 [INFO] [stdout] | [INFO] [stdout] 231 | pub fn decrypt(data: &[u8], key: &ChaCha20Key, nonce: &ChaCha20Nonce, counter: u32) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `poly1305_mac` is never used [INFO] [stdout] --> src/chacha20poly1305/poly1305.rs:297:8 [INFO] [stdout] | [INFO] [stdout] 297 | pub fn poly1305_mac(msg: &[u8], key: &Poly1305Key) -> [u8; POLY1305_TAG_SIZE] { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `poly1305_verify` is never used [INFO] [stdout] --> src/chacha20poly1305/poly1305.rs:304:8 [INFO] [stdout] | [INFO] [stdout] 304 | pub fn poly1305_verify(tag: &[u8], msg: &[u8], key: &Poly1305Key) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `config` and `slot` are never read [INFO] [stdout] --> src/key_management/hsm.rs:101:5 [INFO] [stdout] | [INFO] [stdout] 96 | pub struct HsmConnection { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 101 | config: HsmConfig, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 102 | slot: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `attributes` is never read [INFO] [stdout] --> src/key_management/hsm.rs:798:5 [INFO] [stdout] | [INFO] [stdout] 794 | pub struct HsmKeyHandle { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 798 | attributes: HsmKeyAttributes, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HsmKeyHandle` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `root_of_unity` is never read [INFO] [stdout] --> src/simd/x86_simd.rs:195:5 [INFO] [stdout] | [INFO] [stdout] 193 | pub struct SimdNTT { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 194 | modulus: i32, [INFO] [stdout] 195 | root_of_unity: i32, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id` and `created_at` are never read [INFO] [stdout] --> src/protocols.rs:102:5 [INFO] [stdout] | [INFO] [stdout] 101 | pub struct SessionKey { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 102 | id: SessionId, [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 105 | created_at: SystemTime, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SessionKey` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `own_display_name` is never read [INFO] [stdout] --> src/protocols.rs:511:5 [INFO] [stdout] | [INFO] [stdout] 508 | pub struct KeyRegistry { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 511 | own_display_name: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `KeyRegistry` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `kyber_keypair` is never read [INFO] [stdout] --> src/protocols.rs:639:5 [INFO] [stdout] | [INFO] [stdout] 638 | struct EphemeralKeyData { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 639 | kyber_keypair: KyberKeyPair, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `EphemeralKeyData` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_ephemeral_key` is never used [INFO] [stdout] --> src/protocols.rs:866:8 [INFO] [stdout] | [INFO] [stdout] 661 | impl SecureMessaging { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 866 | fn get_ephemeral_key(&self, contact: &ContactId) -> CryptoResult<&EphemeralKeyData> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `config` is never read [INFO] [stdout] --> src/security/formal_verification.rs:87:5 [INFO] [stdout] | [INFO] [stdout] 86 | pub struct FormalVerifier { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 87 | config: VerificationConfig, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 5m 34s [INFO] running `Command { std: "docker" "inspect" "463e25c7213a45b1af6b67debce606b1e877e97349ba79acfd57faa87b4ed972", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "463e25c7213a45b1af6b67debce606b1e877e97349ba79acfd57faa87b4ed972", kill_on_drop: false }` [INFO] [stdout] 463e25c7213a45b1af6b67debce606b1e877e97349ba79acfd57faa87b4ed972 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 411ce24268f42a8c4f1a55438f0a66824494c5e1223ab8c650a3d2c5bc66d6e8 [INFO] running `Command { std: "docker" "start" "-a" "411ce24268f42a8c4f1a55438f0a66824494c5e1223ab8c650a3d2c5bc66d6e8", kill_on_drop: false }` [INFO] [stderr] Compiling zerocopy v0.8.31 [INFO] [stderr] Compiling zerocopy-derive v0.8.31 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling getrandom v0.3.4 [INFO] [stderr] Compiling rustix v1.1.2 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Compiling bitflags v2.10.0 [INFO] [stderr] Compiling regex-syntax v0.8.8 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling linux-raw-sys v0.11.0 [INFO] [stderr] Compiling ciborium-io v0.2.2 [INFO] [stderr] Compiling anstyle v1.0.13 [INFO] [stderr] Compiling plotters-backend v0.3.7 [INFO] [stderr] Compiling clap_lex v0.7.6 [INFO] [stderr] Compiling wait-timeout v0.2.1 [INFO] [stderr] Compiling rand_core v0.9.3 [INFO] [stderr] Compiling plotters-svg v0.3.7 [INFO] [stderr] Compiling uuid v1.19.0 [INFO] [stderr] Compiling clap_builder v4.5.53 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling quick-error v1.2.3 [INFO] [stderr] Compiling cast v0.3.0 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling bit-vec v0.8.0 [INFO] [stderr] Compiling rand_xorshift v0.4.0 [INFO] [stderr] Compiling walkdir v2.5.0 [INFO] [stderr] Compiling rand v0.9.2 [INFO] [stderr] Compiling rayon v1.11.0 [INFO] [stderr] Compiling is-terminal v0.4.17 [INFO] [stderr] Compiling anes v0.1.6 [INFO] [stderr] Compiling unarray v0.1.4 [INFO] [stderr] Compiling oorandom v11.1.5 [INFO] [stderr] Compiling bit-set v0.8.0 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling plotters v0.3.7 [INFO] [stderr] Compiling num-iter v0.1.45 [INFO] [stderr] Compiling regex-automata v0.4.13 [INFO] [stderr] Compiling tempfile v3.23.0 [INFO] [stderr] Compiling criterion-plot v0.5.0 [INFO] [stderr] Compiling clap v4.5.53 [INFO] [stderr] Compiling rusty-fork v0.3.1 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling bincode v1.3.3 [INFO] [stderr] Compiling serde_arrays v0.1.0 [INFO] [stderr] Compiling chrono v0.4.42 [INFO] [stderr] Compiling regex v1.12.2 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling half v2.7.1 [INFO] [stderr] Compiling tinytemplate v1.2.1 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling ciborium-ll v0.2.2 [INFO] [stderr] Compiling proptest v1.9.0 [INFO] [stderr] Compiling ciborium v0.2.2 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling num-bigint-dig v0.8.6 [INFO] [stderr] Compiling criterion v0.5.1 [INFO] [stderr] Compiling rsa v0.9.9 [INFO] [stderr] Compiling qasa v0.0.7 (/opt/rustwide/workdir) [INFO] [stdout] warning: variant `Kyber768_Dilithium3_AES256GCM` should have an upper camel case name [INFO] [stdout] --> src/protocols.rs:81:5 [INFO] [stdout] | [INFO] [stdout] 81 | Kyber768_Dilithium3_AES256GCM, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Kyber768Dilithium3Aes256gcm` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Kyber1024_Dilithium5_AES256GCM` should have an upper camel case name [INFO] [stdout] --> src/protocols.rs:82:5 [INFO] [stdout] | [INFO] [stdout] 82 | Kyber1024_Dilithium5_AES256GCM, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Kyber1024Dilithium5Aes256gcm` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Kyber512_Dilithium2_AES256GCM` should have an upper camel case name [INFO] [stdout] --> src/protocols.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 83 | Kyber512_Dilithium2_AES256GCM, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Kyber512Dilithium2Aes256gcm` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Hasher` [INFO] [stdout] --> src/security/formal_verification.rs:10:23 [INFO] [stdout] | [INFO] [stdout] 10 | use std::hash::{Hash, Hasher}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::hash::Hasher` [INFO] [stdout] --> src/hybrid/hybrid_kem.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::hash::Hasher; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `prefer_speed` [INFO] [stdout] --> src/bike/parameters.rs:116:9 [INFO] [stdout] | [INFO] [stdout] 116 | prefer_speed: bool, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_prefer_speed` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `variant` [INFO] [stdout] --> src/security/formal_verification.rs:160:46 [INFO] [stdout] | [INFO] [stdout] 160 | fn analyze_constant_time_symbolic(&self, variant: KyberVariant) -> CryptoResult { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_variant` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `func` [INFO] [stdout] --> src/security/formal_verification.rs:198:14 [INFO] [stdout] | [INFO] [stdout] 198 | for (func, desc) in &critical_functions { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_func` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `variant` [INFO] [stdout] --> src/security/formal_verification.rs:264:40 [INFO] [stdout] | [INFO] [stdout] 264 | fn analyze_information_flow(&self, variant: KyberVariant) -> CryptoResult { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_variant` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `is_constant_time` is never read [INFO] [stdout] --> src/security/formal_verification.rs:447:36 [INFO] [stdout] | [INFO] [stdout] 447 | let mut is_constant_time = true; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `confidence` is never read [INFO] [stdout] --> src/security/formal_verification.rs:587:30 [INFO] [stdout] | [INFO] [stdout] 587 | let mut confidence = 0.85; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `confidence` is never read [INFO] [stdout] --> src/security/formal_verification.rs:817:30 [INFO] [stdout] | [INFO] [stdout] 817 | let mut confidence = 0.82; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `kyber_variant` [INFO] [stdout] --> src/hybrid/hybrid_kem.rs:233:52 [INFO] [stdout] | [INFO] [stdout] 233 | PostQuantumKemAlgorithm::Kyber(kyber_variant) => { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_kyber_variant` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bike_variant` [INFO] [stdout] --> src/hybrid/hybrid_kem.rs:237:51 [INFO] [stdout] | [INFO] [stdout] 237 | PostQuantumKemAlgorithm::Bike(bike_variant) => { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bike_variant` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `kyber_variant` [INFO] [stdout] --> src/hybrid/hybrid_kem.rs:253:52 [INFO] [stdout] | [INFO] [stdout] 253 | PostQuantumKemAlgorithm::Kyber(kyber_variant) => { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_kyber_variant` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bike_variant` [INFO] [stdout] --> src/hybrid/hybrid_kem.rs:257:51 [INFO] [stdout] | [INFO] [stdout] 257 | PostQuantumKemAlgorithm::Bike(bike_variant) => { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bike_variant` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `kyber_variant` [INFO] [stdout] --> src/hybrid/hybrid_kem.rs:292:52 [INFO] [stdout] | [INFO] [stdout] 292 | PostQuantumKemAlgorithm::Kyber(kyber_variant) => { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_kyber_variant` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bike_variant` [INFO] [stdout] --> src/hybrid/hybrid_kem.rs:296:51 [INFO] [stdout] | [INFO] [stdout] 296 | PostQuantumKemAlgorithm::Bike(bike_variant) => { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bike_variant` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key_pair` [INFO] [stdout] --> src/hybrid/hybrid_kem.rs:358:21 [INFO] [stdout] | [INFO] [stdout] 358 | let key_pair = ring::signature::EcdsaKeyPair::from_pkcs8( [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_key_pair` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `kyber_variant` [INFO] [stdout] --> src/hybrid/hybrid_kem.rs:439:44 [INFO] [stdout] | [INFO] [stdout] 439 | PostQuantumKemAlgorithm::Kyber(kyber_variant) => { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_kyber_variant` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bike_variant` [INFO] [stdout] --> src/hybrid/hybrid_kem.rs:443:43 [INFO] [stdout] | [INFO] [stdout] 443 | PostQuantumKemAlgorithm::Bike(bike_variant) => { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bike_variant` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `kyber_variant` [INFO] [stdout] --> src/hybrid/hybrid_kem.rs:724:44 [INFO] [stdout] | [INFO] [stdout] 724 | PostQuantumKemAlgorithm::Kyber(kyber_variant) => { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_kyber_variant` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bike_variant` [INFO] [stdout] --> src/hybrid/hybrid_kem.rs:728:43 [INFO] [stdout] | [INFO] [stdout] 728 | PostQuantumKemAlgorithm::Bike(bike_variant) => { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bike_variant` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/hybrid/hybrid_encryption.rs:123:9 [INFO] [stdout] | [INFO] [stdout] 123 | _ => { [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/hybrid/hybrid_encryption.rs:123:9 [INFO] [stdout] | [INFO] [stdout] 121 | AesMode::Gcm256 | AesMode::Ctr256 => 32, // 256 bits [INFO] [stdout] | --------------------------------- matches some of the same values [INFO] [stdout] 122 | AesMode::Gcm128 | AesMode::Ctr128 => 16, // 128 bits [INFO] [stdout] | --------------------------------- matches some of the same values [INFO] [stdout] 123 | _ => { [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/hybrid/hybrid_encryption.rs:136:9 [INFO] [stdout] | [INFO] [stdout] 136 | _ => { [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/hybrid/hybrid_encryption.rs:136:9 [INFO] [stdout] | [INFO] [stdout] 134 | AesMode::Gcm256 | AesMode::Gcm128 => 12, // 96 bits for GCM [INFO] [stdout] | --------------------------------- matches some of the same values [INFO] [stdout] 135 | AesMode::Ctr256 | AesMode::Ctr128 => 16, // 128 bits for CTR [INFO] [stdout] | --------------------------------- matches some of the same values [INFO] [stdout] 136 | _ => { [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_signature_entropy` is never used [INFO] [stdout] --> src/sphincsplus/sphincsplus.rs:885:4 [INFO] [stdout] | [INFO] [stdout] 885 | fn calculate_signature_entropy(data: &[u8]) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_any_sphincs_available` is never used [INFO] [stdout] --> src/sphincsplus/sphincsplus.rs:984:8 [INFO] [stdout] | [INFO] [stdout] 984 | pub fn is_any_sphincs_available() -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SphincsParameters` is never constructed [INFO] [stdout] --> src/sphincsplus/parameters.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct SphincsParameters { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `HashFunction` is never used [INFO] [stdout] --> src/sphincsplus/parameters.rs:44:10 [INFO] [stdout] | [INFO] [stdout] 44 | pub enum HashFunction { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `OptimizationMode` is never used [INFO] [stdout] --> src/sphincsplus/parameters.rs:57:10 [INFO] [stdout] | [INFO] [stdout] 57 | pub enum OptimizationMode { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `for_variant`, `approx_signing_time_ms`, `approx_verify_time_ms`, and `for_constrained_environment` are never used [INFO] [stdout] --> src/sphincsplus/parameters.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 65 | impl SphincsParameters { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] 66 | /// Get parameters for a specific SPHINCS+ variant [INFO] [stdout] 67 | pub fn for_variant(variant: SphincsVariant) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 145 | pub fn approx_signing_time_ms(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 169 | pub fn approx_verify_time_ms(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 192 | pub fn for_constrained_environment( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BikeParameters` is never constructed [INFO] [stdout] --> src/bike/parameters.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct BikeParameters { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `HashFunction` is never used [INFO] [stdout] --> src/bike/parameters.rs:41:10 [INFO] [stdout] | [INFO] [stdout] 41 | pub enum HashFunction { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `for_variant`, `approx_encapsulation_time_us`, `approx_decapsulation_time_us`, and `for_constrained_environment` are never used [INFO] [stdout] --> src/bike/parameters.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 52 | impl BikeParameters { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 53 | /// Get parameters for a specific BIKE variant [INFO] [stdout] 54 | pub fn for_variant(variant: BikeVariant) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | pub fn approx_encapsulation_time_us(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | pub fn approx_decapsulation_time_us(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 113 | pub fn for_constrained_environment( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `key_size` is never read [INFO] [stdout] --> src/aes/aes.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct AesKey { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 36 | key_size: usize, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AesKey` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `generate` is never used [INFO] [stdout] --> src/chacha20poly1305/chacha20.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 39 | impl ChaCha20Key { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn generate() -> CryptoResult { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `generate` is never used [INFO] [stdout] --> src/chacha20poly1305/chacha20.rs:87:12 [INFO] [stdout] | [INFO] [stdout] 69 | impl ChaCha20Nonce { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 87 | pub fn generate() -> CryptoResult { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encrypt` is never used [INFO] [stdout] --> src/chacha20poly1305/chacha20.rs:226:8 [INFO] [stdout] | [INFO] [stdout] 226 | pub fn encrypt(data: &[u8], key: &ChaCha20Key, nonce: &ChaCha20Nonce, counter: u32) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decrypt` is never used [INFO] [stdout] --> src/chacha20poly1305/chacha20.rs:231:8 [INFO] [stdout] | [INFO] [stdout] 231 | pub fn decrypt(data: &[u8], key: &ChaCha20Key, nonce: &ChaCha20Nonce, counter: u32) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `poly1305_mac` is never used [INFO] [stdout] --> src/chacha20poly1305/poly1305.rs:297:8 [INFO] [stdout] | [INFO] [stdout] 297 | pub fn poly1305_mac(msg: &[u8], key: &Poly1305Key) -> [u8; POLY1305_TAG_SIZE] { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `poly1305_verify` is never used [INFO] [stdout] --> src/chacha20poly1305/poly1305.rs:304:8 [INFO] [stdout] | [INFO] [stdout] 304 | pub fn poly1305_verify(tag: &[u8], msg: &[u8], key: &Poly1305Key) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `config` and `slot` are never read [INFO] [stdout] --> src/key_management/hsm.rs:101:5 [INFO] [stdout] | [INFO] [stdout] 96 | pub struct HsmConnection { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 101 | config: HsmConfig, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 102 | slot: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `attributes` is never read [INFO] [stdout] --> src/key_management/hsm.rs:798:5 [INFO] [stdout] | [INFO] [stdout] 794 | pub struct HsmKeyHandle { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 798 | attributes: HsmKeyAttributes, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HsmKeyHandle` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `root_of_unity` is never read [INFO] [stdout] --> src/simd/x86_simd.rs:195:5 [INFO] [stdout] | [INFO] [stdout] 193 | pub struct SimdNTT { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 194 | modulus: i32, [INFO] [stdout] 195 | root_of_unity: i32, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id` and `created_at` are never read [INFO] [stdout] --> src/protocols.rs:102:5 [INFO] [stdout] | [INFO] [stdout] 101 | pub struct SessionKey { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 102 | id: SessionId, [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 105 | created_at: SystemTime, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SessionKey` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `own_display_name` is never read [INFO] [stdout] --> src/protocols.rs:511:5 [INFO] [stdout] | [INFO] [stdout] 508 | pub struct KeyRegistry { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 511 | own_display_name: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `KeyRegistry` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `kyber_keypair` is never read [INFO] [stdout] --> src/protocols.rs:639:5 [INFO] [stdout] | [INFO] [stdout] 638 | struct EphemeralKeyData { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 639 | kyber_keypair: KyberKeyPair, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `EphemeralKeyData` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_ephemeral_key` is never used [INFO] [stdout] --> src/protocols.rs:866:8 [INFO] [stdout] | [INFO] [stdout] 661 | impl SecureMessaging { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 866 | fn get_ephemeral_key(&self, contact: &ContactId) -> CryptoResult<&EphemeralKeyData> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `config` is never read [INFO] [stdout] --> src/security/formal_verification.rs:87:5 [INFO] [stdout] | [INFO] [stdout] 86 | pub struct FormalVerifier { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 87 | config: VerificationConfig, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::error::CryptoResult` [INFO] [stdout] --> src/sphincsplus/tests.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::error::CryptoResult; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/sphincsplus/tests.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::error::CryptoResult` [INFO] [stdout] --> src/bike/tests.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::error::CryptoResult; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Path` [INFO] [stdout] --> src/aes/aes.rs:1270:13 [INFO] [stdout] | [INFO] [stdout] 1270 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Kyber768_Dilithium3_AES256GCM` should have an upper camel case name [INFO] [stdout] --> src/protocols.rs:81:5 [INFO] [stdout] | [INFO] [stdout] 81 | Kyber768_Dilithium3_AES256GCM, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Kyber768Dilithium3Aes256gcm` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Kyber1024_Dilithium5_AES256GCM` should have an upper camel case name [INFO] [stdout] --> src/protocols.rs:82:5 [INFO] [stdout] | [INFO] [stdout] 82 | Kyber1024_Dilithium5_AES256GCM, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Kyber1024Dilithium5Aes256gcm` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Kyber512_Dilithium2_AES256GCM` should have an upper camel case name [INFO] [stdout] --> src/protocols.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 83 | Kyber512_Dilithium2_AES256GCM, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Kyber512Dilithium2Aes256gcm` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0583]: file not found for module `test_vectors` [INFO] [stdout] --> tests/test_vectors_main.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | mod test_vectors; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: to create the module `test_vectors`, create file "tests/test_vectors.rs" or "tests/test_vectors/mod.rs" [INFO] [stdout] = note: if there is a `mod test_vectors` elsewhere in the crate already, import it with `use crate::...` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lean_pk` [INFO] [stdout] --> tests/test_memory_efficiency.rs:131:10 [INFO] [stdout] | [INFO] [stdout] 131 | let (lean_pk, lean_sk) = lean.generate_keypair().expect("Failed to generate lean key pair"); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lean_pk` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lean_sk` [INFO] [stdout] --> tests/test_memory_efficiency.rs:131:19 [INFO] [stdout] | [INFO] [stdout] 131 | let (lean_pk, lean_sk) = lean.generate_keypair().expect("Failed to generate lean key pair"); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lean_sk` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TrustLevel` [INFO] [stdout] --> examples/protocols_demo.rs:12:39 [INFO] [stdout] | [INFO] [stdout] 12 | SecureMessaging, MessagingConfig, TrustLevel, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `KyberPublicKey` [INFO] [stdout] --> tests/test_vectors_main.rs:6:33 [INFO] [stdout] | [INFO] [stdout] 6 | use qasa::kyber::{KyberKeyPair, KyberPublicKey}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CompressedSignature as DilithiumCompressedSignature` and `DilithiumKeyPair` [INFO] [stdout] --> tests/test_vectors_main.rs:7:23 [INFO] [stdout] | [INFO] [stdout] 7 | use qasa::dilithium::{DilithiumKeyPair, DilithiumPublicKey, CompressedSignature as DilithiumCompressedSignature}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CompressedSignature as SphincsCompressedSignature` and `SphincsKeyPair` [INFO] [stdout] --> tests/test_vectors_main.rs:8:25 [INFO] [stdout] | [INFO] [stdout] 8 | use qasa::sphincsplus::{SphincsKeyPair, SphincsPublicKey, CompressedSignature as SphincsCompressedSignature}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BikePublicKey` and `CompressedCiphertext as BikeCompressedCiphertext` [INFO] [stdout] --> tests/test_vectors_main.rs:9:31 [INFO] [stdout] | [INFO] [stdout] 9 | use qasa::bike::{BikeKeyPair, BikePublicKey, CompressedCiphertext as BikeCompressedCiphertext}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `qasa` (test "test_vectors_main") due to 1 previous error; 4 warnings emitted [INFO] [stdout] For more information about this error, try `rustc --explain E0583`. [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused import: `std::hash::Hasher` [INFO] [stdout] --> src/hybrid/hybrid_kem.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::hash::Hasher; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Hasher` [INFO] [stdout] --> src/security/formal_verification.rs:10:23 [INFO] [stdout] | [INFO] [stdout] 10 | use std::hash::{Hash, Hasher}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `signature` [INFO] [stdout] --> src/sphincsplus/tests.rs:327:13 [INFO] [stdout] | [INFO] [stdout] 327 | let signature = key_pair.sign(message).unwrap(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_signature` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `prefer_speed` [INFO] [stdout] --> src/bike/parameters.rs:116:9 [INFO] [stdout] | [INFO] [stdout] 116 | prefer_speed: bool, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_prefer_speed` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols.rs:1058:13 [INFO] [stdout] | [INFO] [stdout] 1058 | let mut tls = QuantumSafeTLS::new(config).unwrap(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/security/constant_time.rs:419:26 [INFO] [stdout] | [INFO] [stdout] 419 | let operation = |data: &Vec| { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `variant` [INFO] [stdout] --> src/security/formal_verification.rs:160:46 [INFO] [stdout] | [INFO] [stdout] 160 | fn analyze_constant_time_symbolic(&self, variant: KyberVariant) -> CryptoResult { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_variant` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `func` [INFO] [stdout] --> src/security/formal_verification.rs:198:14 [INFO] [stdout] | [INFO] [stdout] 198 | for (func, desc) in &critical_functions { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_func` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `variant` [INFO] [stdout] --> src/security/formal_verification.rs:264:40 [INFO] [stdout] | [INFO] [stdout] 264 | fn analyze_information_flow(&self, variant: KyberVariant) -> CryptoResult { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_variant` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `is_constant_time` is never read [INFO] [stdout] --> src/security/formal_verification.rs:447:36 [INFO] [stdout] | [INFO] [stdout] 447 | let mut is_constant_time = true; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `confidence` is never read [INFO] [stdout] --> src/security/formal_verification.rs:587:30 [INFO] [stdout] | [INFO] [stdout] 587 | let mut confidence = 0.85; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `confidence` is never read [INFO] [stdout] --> src/security/formal_verification.rs:817:30 [INFO] [stdout] | [INFO] [stdout] 817 | let mut confidence = 0.82; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `kyber_variant` [INFO] [stdout] --> src/hybrid/hybrid_kem.rs:233:52 [INFO] [stdout] | [INFO] [stdout] 233 | PostQuantumKemAlgorithm::Kyber(kyber_variant) => { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_kyber_variant` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bike_variant` [INFO] [stdout] --> src/hybrid/hybrid_kem.rs:237:51 [INFO] [stdout] | [INFO] [stdout] 237 | PostQuantumKemAlgorithm::Bike(bike_variant) => { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bike_variant` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `kyber_variant` [INFO] [stdout] --> src/hybrid/hybrid_kem.rs:253:52 [INFO] [stdout] | [INFO] [stdout] 253 | PostQuantumKemAlgorithm::Kyber(kyber_variant) => { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_kyber_variant` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bike_variant` [INFO] [stdout] --> src/hybrid/hybrid_kem.rs:257:51 [INFO] [stdout] | [INFO] [stdout] 257 | PostQuantumKemAlgorithm::Bike(bike_variant) => { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bike_variant` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `kyber_variant` [INFO] [stdout] --> src/hybrid/hybrid_kem.rs:292:52 [INFO] [stdout] | [INFO] [stdout] 292 | PostQuantumKemAlgorithm::Kyber(kyber_variant) => { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_kyber_variant` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bike_variant` [INFO] [stdout] --> src/hybrid/hybrid_kem.rs:296:51 [INFO] [stdout] | [INFO] [stdout] 296 | PostQuantumKemAlgorithm::Bike(bike_variant) => { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bike_variant` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key_pair` [INFO] [stdout] --> src/hybrid/hybrid_kem.rs:358:21 [INFO] [stdout] | [INFO] [stdout] 358 | let key_pair = ring::signature::EcdsaKeyPair::from_pkcs8( [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_key_pair` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `kyber_variant` [INFO] [stdout] --> src/hybrid/hybrid_kem.rs:439:44 [INFO] [stdout] | [INFO] [stdout] 439 | PostQuantumKemAlgorithm::Kyber(kyber_variant) => { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_kyber_variant` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bike_variant` [INFO] [stdout] --> src/hybrid/hybrid_kem.rs:443:43 [INFO] [stdout] | [INFO] [stdout] 443 | PostQuantumKemAlgorithm::Bike(bike_variant) => { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bike_variant` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `kyber_variant` [INFO] [stdout] --> src/hybrid/hybrid_kem.rs:724:44 [INFO] [stdout] | [INFO] [stdout] 724 | PostQuantumKemAlgorithm::Kyber(kyber_variant) => { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_kyber_variant` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bike_variant` [INFO] [stdout] --> src/hybrid/hybrid_kem.rs:728:43 [INFO] [stdout] | [INFO] [stdout] 728 | PostQuantumKemAlgorithm::Bike(bike_variant) => { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bike_variant` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/hybrid/hybrid_encryption.rs:123:9 [INFO] [stdout] | [INFO] [stdout] 123 | _ => { [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/hybrid/hybrid_encryption.rs:123:9 [INFO] [stdout] | [INFO] [stdout] 121 | AesMode::Gcm256 | AesMode::Ctr256 => 32, // 256 bits [INFO] [stdout] | --------------------------------- matches some of the same values [INFO] [stdout] 122 | AesMode::Gcm128 | AesMode::Ctr128 => 16, // 128 bits [INFO] [stdout] | --------------------------------- matches some of the same values [INFO] [stdout] 123 | _ => { [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/hybrid/hybrid_encryption.rs:136:9 [INFO] [stdout] | [INFO] [stdout] 136 | _ => { [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/hybrid/hybrid_encryption.rs:136:9 [INFO] [stdout] | [INFO] [stdout] 134 | AesMode::Gcm256 | AesMode::Gcm128 => 12, // 96 bits for GCM [INFO] [stdout] | --------------------------------- matches some of the same values [INFO] [stdout] 135 | AesMode::Ctr256 | AesMode::Ctr128 => 16, // 128 bits for CTR [INFO] [stdout] | --------------------------------- matches some of the same values [INFO] [stdout] 136 | _ => { [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_signature_entropy` is never used [INFO] [stdout] --> src/sphincsplus/sphincsplus.rs:885:4 [INFO] [stdout] | [INFO] [stdout] 885 | fn calculate_signature_entropy(data: &[u8]) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/sphincsplus/parameters.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct SphincsParameters { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] 11 | /// Security level (in bits) [INFO] [stdout] 12 | pub security_level: u16, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | pub h: u8, [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub d: u8, [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub w: u8, [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub n: u8, [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub public_key_size: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub secret_key_size: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub signature_size: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub hash_function: HashFunction, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub optimization: OptimizationMode, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SphincsParameters` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Sha256`, `Shake256`, and `Haraka` are never constructed [INFO] [stdout] --> src/sphincsplus/parameters.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 44 | pub enum HashFunction { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] 45 | /// SHA-256 hash function [INFO] [stdout] 46 | Sha256, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | Shake256, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | Haraka, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HashFunction` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Fast` and `Small` are never constructed [INFO] [stdout] --> src/sphincsplus/parameters.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 57 | pub enum OptimizationMode { [INFO] [stdout] | ---------------- variants in this enum [INFO] [stdout] 58 | /// Optimized for speed [INFO] [stdout] 59 | Fast, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | Small, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OptimizationMode` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `for_variant`, `approx_signing_time_ms`, and `approx_verify_time_ms` are never used [INFO] [stdout] --> src/sphincsplus/parameters.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 65 | impl SphincsParameters { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] 66 | /// Get parameters for a specific SPHINCS+ variant [INFO] [stdout] 67 | pub fn for_variant(variant: SphincsVariant) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 145 | pub fn approx_signing_time_ms(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 169 | pub fn approx_verify_time_ms(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/bike/parameters.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct BikeParameters { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 11 | /// Security level (in bits) [INFO] [stdout] 12 | pub security_level: u16, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | pub n: usize, [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub t: usize, [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub iterations: usize, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub public_key_size: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub secret_key_size: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub ciphertext_size: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub shared_secret_size: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub hash_function: HashFunction, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BikeParameters` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Sha256`, `Sha384`, and `Sha512` are never constructed [INFO] [stdout] --> src/bike/parameters.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 41 | pub enum HashFunction { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] 42 | /// SHA-256 hash function [INFO] [stdout] 43 | Sha256, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | Sha384, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | Sha512, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HashFunction` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `for_variant`, `approx_encapsulation_time_us`, and `approx_decapsulation_time_us` are never used [INFO] [stdout] --> src/bike/parameters.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 52 | impl BikeParameters { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 53 | /// Get parameters for a specific BIKE variant [INFO] [stdout] 54 | pub fn for_variant(variant: BikeVariant) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | pub fn approx_encapsulation_time_us(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | pub fn approx_decapsulation_time_us(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `key_size` is never read [INFO] [stdout] --> src/aes/aes.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct AesKey { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 36 | key_size: usize, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AesKey` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `generate` is never used [INFO] [stdout] --> src/chacha20poly1305/chacha20.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 39 | impl ChaCha20Key { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn generate() -> CryptoResult { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `generate` is never used [INFO] [stdout] --> src/chacha20poly1305/chacha20.rs:87:12 [INFO] [stdout] | [INFO] [stdout] 69 | impl ChaCha20Nonce { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 87 | pub fn generate() -> CryptoResult { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `config` and `slot` are never read [INFO] [stdout] --> src/key_management/hsm.rs:101:5 [INFO] [stdout] | [INFO] [stdout] 96 | pub struct HsmConnection { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 101 | config: HsmConfig, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 102 | slot: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `attributes` is never read [INFO] [stdout] --> src/key_management/hsm.rs:798:5 [INFO] [stdout] | [INFO] [stdout] 794 | pub struct HsmKeyHandle { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 798 | attributes: HsmKeyAttributes, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HsmKeyHandle` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `root_of_unity` is never read [INFO] [stdout] --> src/simd/x86_simd.rs:195:5 [INFO] [stdout] | [INFO] [stdout] 193 | pub struct SimdNTT { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 194 | modulus: i32, [INFO] [stdout] 195 | root_of_unity: i32, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id` and `created_at` are never read [INFO] [stdout] --> src/protocols.rs:102:5 [INFO] [stdout] | [INFO] [stdout] 101 | pub struct SessionKey { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 102 | id: SessionId, [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 105 | created_at: SystemTime, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SessionKey` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `own_display_name` is never read [INFO] [stdout] --> src/protocols.rs:511:5 [INFO] [stdout] | [INFO] [stdout] 508 | pub struct KeyRegistry { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 511 | own_display_name: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `KeyRegistry` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `kyber_keypair` is never read [INFO] [stdout] --> src/protocols.rs:639:5 [INFO] [stdout] | [INFO] [stdout] 638 | struct EphemeralKeyData { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 639 | kyber_keypair: KyberKeyPair, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `EphemeralKeyData` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_ephemeral_key` is never used [INFO] [stdout] --> src/protocols.rs:866:8 [INFO] [stdout] | [INFO] [stdout] 661 | impl SecureMessaging { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 866 | fn get_ephemeral_key(&self, contact: &ContactId) -> CryptoResult<&EphemeralKeyData> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `config` is never read [INFO] [stdout] --> src/security/formal_verification.rs:87:5 [INFO] [stdout] | [INFO] [stdout] 86 | pub struct FormalVerifier { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 87 | config: VerificationConfig, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "411ce24268f42a8c4f1a55438f0a66824494c5e1223ab8c650a3d2c5bc66d6e8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "411ce24268f42a8c4f1a55438f0a66824494c5e1223ab8c650a3d2c5bc66d6e8", kill_on_drop: false }` [INFO] [stdout] 411ce24268f42a8c4f1a55438f0a66824494c5e1223ab8c650a3d2c5bc66d6e8