[INFO] cloning repository https://github.com/nomaxg/cryptopals [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/nomaxg/cryptopals" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnomaxg%2Fcryptopals", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnomaxg%2Fcryptopals'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ab784de0ee492af03eb57addabc04d14f6bc4985 [INFO] testing nomaxg/cryptopals against try#8de4c7234dd9b97c9d76b58671343fdbbc9a433e+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_with_libc_patch_0 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnomaxg%2Fcryptopals" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/nomaxg/cryptopals [INFO] finished tweaking git repo https://github.com/nomaxg/cryptopals [INFO] tweaked toml for git repo https://github.com/nomaxg/cryptopals written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/nomaxg/cryptopals on toolchain 8de4c7234dd9b97c9d76b58671343fdbbc9a433e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/nomaxg/cryptopals already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d98d737c65a2fec6e55976401be71f8be6286d2744f36fb655f5b527cfa3a8d7 [INFO] running `Command { std: "docker" "start" "-a" "d98d737c65a2fec6e55976401be71f8be6286d2744f36fb655f5b527cfa3a8d7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d98d737c65a2fec6e55976401be71f8be6286d2744f36fb655f5b527cfa3a8d7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d98d737c65a2fec6e55976401be71f8be6286d2744f36fb655f5b527cfa3a8d7", kill_on_drop: false }` [INFO] [stdout] d98d737c65a2fec6e55976401be71f8be6286d2744f36fb655f5b527cfa3a8d7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] fa0011e3d85b725e998b0945aab3e16cbce1f20dc46595429d3950e2f8cfa014 [INFO] running `Command { std: "docker" "start" "-a" "fa0011e3d85b725e998b0945aab3e16cbce1f20dc46595429d3950e2f8cfa014", kill_on_drop: false }` [INFO] [stderr] Compiling generic-array v0.14.6 [INFO] [stderr] Compiling libc v0.2.139 [INFO] [stderr] Compiling cpufeatures v0.2.5 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling base64 v0.21.0 [INFO] [stderr] Compiling inout v0.1.3 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling getrandom v0.2.8 [INFO] [stderr] Compiling cipher v0.4.3 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling aes v0.8.2 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling cryptopals v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/third_set.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Bytes`, `MersenneTwister`, `break_single_char_xor`, `constants::PLAINTEXTS`, `ctr_decrypt`, `ctr_encrypt`, `display`, `read_lines`, `temper`, `transpose`, `untemper`, and `xor` [INFO] [stdout] --> src/third_set.rs:6:41 [INFO] [stdout] | [INFO] [stdout] 6 | aes::{aes_decrypt, aes_encrypt, ctr_decrypt, ctr_encrypt}, [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] 7 | constants::PLAINTEXTS, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 8 | twister::{temper, untemper, MersenneTwister}, [INFO] [stdout] | ^^^^^^ ^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] 9 | utils::{ [INFO] [stdout] 10 | break_single_char_xor, display, from_base64, random_index, read_lines, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] 11 | strip_padding_bytes, transpose, xor, Bytes, [INFO] [stdout] | ^^^^^^^^^ ^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env::temp_dir` [INFO] [stdout] --> src/twister.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::env::temp_dir; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CONSTANT_KEY` is never used [INFO] [stdout] --> src/third_set.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | const CONSTANT_KEY: [u8; 16] = [16; 16]; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `gen_random_cbc_encryption` is never used [INFO] [stdout] --> src/third_set.rs:147:8 [INFO] [stdout] | [INFO] [stdout] 147 | fn gen_random_cbc_encryption() -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `verify_padding` is never used [INFO] [stdout] --> src/third_set.rs:165:8 [INFO] [stdout] | [INFO] [stdout] 165 | fn verify_padding(ct: &[u8]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/utils.rs:125:22 [INFO] [stdout] | [INFO] [stdout] 125 | for byte in bytes.clone().into_iter() { [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `[u8]` does not implement `Clone`, so calling `clone` on `&[u8]` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.56s [INFO] running `Command { std: "docker" "inspect" "fa0011e3d85b725e998b0945aab3e16cbce1f20dc46595429d3950e2f8cfa014", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fa0011e3d85b725e998b0945aab3e16cbce1f20dc46595429d3950e2f8cfa014", kill_on_drop: false }` [INFO] [stdout] fa0011e3d85b725e998b0945aab3e16cbce1f20dc46595429d3950e2f8cfa014 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--no-run" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] ad8515a4fc4f54475b0c34b21d49d86309edf93e1ab2937637f111c7ffef560e [INFO] running `Command { std: "docker" "start" "-a" "ad8515a4fc4f54475b0c34b21d49d86309edf93e1ab2937637f111c7ffef560e", kill_on_drop: false }` [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/third_set.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Bytes`, `MersenneTwister`, `break_single_char_xor`, `constants::PLAINTEXTS`, `ctr_decrypt`, `ctr_encrypt`, `display`, `read_lines`, `temper`, `transpose`, `untemper`, and `xor` [INFO] [stdout] --> src/third_set.rs:6:41 [INFO] [stdout] | [INFO] [stdout] 6 | aes::{aes_decrypt, aes_encrypt, ctr_decrypt, ctr_encrypt}, [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] 7 | constants::PLAINTEXTS, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 8 | twister::{temper, untemper, MersenneTwister}, [INFO] [stdout] | ^^^^^^ ^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] 9 | utils::{ [INFO] [stdout] 10 | break_single_char_xor, display, from_base64, random_index, read_lines, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] 11 | strip_padding_bytes, transpose, xor, Bytes, [INFO] [stdout] | ^^^^^^^^^ ^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env::temp_dir` [INFO] [stdout] --> src/twister.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::env::temp_dir; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CONSTANT_KEY` is never used [INFO] [stdout] --> src/third_set.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | const CONSTANT_KEY: [u8; 16] = [16; 16]; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `gen_random_cbc_encryption` is never used [INFO] [stdout] --> src/third_set.rs:147:8 [INFO] [stdout] | [INFO] [stdout] 147 | fn gen_random_cbc_encryption() -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `verify_padding` is never used [INFO] [stdout] --> src/third_set.rs:165:8 [INFO] [stdout] | [INFO] [stdout] 165 | fn verify_padding(ct: &[u8]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/utils.rs:125:22 [INFO] [stdout] | [INFO] [stdout] 125 | for byte in bytes.clone().into_iter() { [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `[u8]` does not implement `Clone`, so calling `clone` on `&[u8]` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling cryptopals v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Bytes` [INFO] [stdout] --> src/third_set.rs:11:50 [INFO] [stdout] | [INFO] [stdout] 11 | strip_padding_bytes, transpose, xor, Bytes, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env::temp_dir` [INFO] [stdout] --> src/twister.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::env::temp_dir; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/utils.rs:125:22 [INFO] [stdout] | [INFO] [stdout] 125 | for byte in bytes.clone().into_iter() { [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `[u8]` does not implement `Clone`, so calling `clone` on `&[u8]` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.00s [INFO] running `Command { std: "docker" "inspect" "ad8515a4fc4f54475b0c34b21d49d86309edf93e1ab2937637f111c7ffef560e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ad8515a4fc4f54475b0c34b21d49d86309edf93e1ab2937637f111c7ffef560e", kill_on_drop: false }` [INFO] [stdout] ad8515a4fc4f54475b0c34b21d49d86309edf93e1ab2937637f111c7ffef560e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] a088261455d7e664eae0cc8c344e5c00efd869bd68d9072cf0f1379474d8aac9 [INFO] running `Command { std: "docker" "start" "-a" "a088261455d7e664eae0cc8c344e5c00efd869bd68d9072cf0f1379474d8aac9", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `std::collections::HashMap` [INFO] [stderr] --> src/third_set.rs:3:9 [INFO] [stderr] | [INFO] [stderr] 3 | use std::collections::HashMap; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Bytes`, `MersenneTwister`, `break_single_char_xor`, `constants::PLAINTEXTS`, `ctr_decrypt`, `ctr_encrypt`, `display`, `read_lines`, `temper`, `transpose`, `untemper`, and `xor` [INFO] [stderr] --> src/third_set.rs:6:41 [INFO] [stderr] | [INFO] [stderr] 6 | aes::{aes_decrypt, aes_encrypt, ctr_decrypt, ctr_encrypt}, [INFO] [stderr] | ^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stderr] 7 | constants::PLAINTEXTS, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 8 | twister::{temper, untemper, MersenneTwister}, [INFO] [stderr] | ^^^^^^ ^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stderr] 9 | utils::{ [INFO] [stderr] 10 | break_single_char_xor, display, from_base64, random_index, read_lines, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^ ^^^^^^^^^^ [INFO] [stderr] 11 | strip_padding_bytes, transpose, xor, Bytes, [INFO] [stderr] | ^^^^^^^^^ ^^^ ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::env::temp_dir` [INFO] [stderr] --> src/twister.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use std::env::temp_dir; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `CONSTANT_KEY` is never used [INFO] [stderr] --> src/third_set.rs:2:11 [INFO] [stderr] | [INFO] [stderr] 2 | const CONSTANT_KEY: [u8; 16] = [16; 16]; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function `gen_random_cbc_encryption` is never used [INFO] [stderr] --> src/third_set.rs:147:8 [INFO] [stderr] | [INFO] [stderr] 147 | fn gen_random_cbc_encryption() -> Vec { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `verify_padding` is never used [INFO] [stderr] --> src/third_set.rs:165:8 [INFO] [stderr] | [INFO] [stderr] 165 | fn verify_padding(ct: &[u8]) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stderr] --> src/utils.rs:125:22 [INFO] [stderr] | [INFO] [stderr] 125 | for byte in bytes.clone().into_iter() { [INFO] [stderr] | ^^^^^^^^ help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] = note: the type `[u8]` does not implement `Clone`, so calling `clone` on `&[u8]` copies the reference, which does not do anything and can be removed [INFO] [stderr] = note: `#[warn(noop_method_call)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `Bytes` [INFO] [stderr] --> src/third_set.rs:11:50 [INFO] [stderr] | [INFO] [stderr] 11 | strip_padding_bytes, transpose, xor, Bytes, [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `cryptopals` (lib) generated 7 warnings (run `cargo fix --lib -p cryptopals` to apply 4 suggestions) [INFO] [stderr] warning: `cryptopals` (lib test) generated 3 warnings (2 duplicates) (run `cargo fix --lib -p cryptopals --tests` to apply 1 suggestion) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.03s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/cryptopals-be94891901a2e992) [INFO] [stdout] [INFO] [stdout] running 24 tests [INFO] [stdout] test second_set::second_set::cbc_test ... ok [INFO] [stdout] test second_set::second_set::cbc_bitflipping_attacks ... ok [INFO] [stdout] test second_set::second_set::ecb_cbc_detection ... ok [INFO] [stdout] test second_set::second_set::cut_and_paste ... ok [INFO] [stdout] test second_set::second_set::test_collision ... ok [INFO] [stdout] test solutions::first_set::repeating_key_xor ... ok [INFO] [stdout] test solutions::first_set::hex_to_base64 ... ok [INFO] [stdout] test solutions::first_set::fixed_xor ... ok [INFO] [stdout] test solutions::first_set::single_byte_xor ... ok [INFO] [stdout] test solutions::first_set::test_hamming_distance ... ok [INFO] [stdout] test third_set::third_set::clone_rng ... ok [INFO] [stdout] test third_set::third_set::implement_ctr ... ok [INFO] [stdout] test third_set::third_set::test_untemper ... ok [INFO] [stdout] test third_set::third_set::twister ... ok [INFO] [stdout] test solutions::first_set::aes_ecb_mode ... ok [INFO] [stdout] test second_set::second_set::implement_cbc_mode ... ok [INFO] [stdout] test solutions::first_set::break_repeating_key_xor ... ok [INFO] [stdout] test third_set::third_set::break_ctr_statistically ... ok [INFO] [stdout] test third_set::third_set::break_ctr_substitution ... ok [INFO] [stdout] test solutions::first_set::detect_single_char_xor ... ok [INFO] [stdout] test second_set::second_set::padding_validation ... FAILED [INFO] [stdout] test third_set::third_set::cbc_padding_oracle ... ok [INFO] [stdout] test solutions::first_set::detect_aes_in_ecb ... ok [INFO] [stdout] test second_set::second_set::ecb_decryption ... ok [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- second_set::second_set::padding_validation stdout ---- [INFO] [stdout] [INFO] [stdout] thread 'second_set::second_set::padding_validation' panicked at src/second_set.rs:183:9: [INFO] [stdout] assertion failed: res4 == Ok(b"ICE ICE BABY".to_vec()) [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x79f789109072 - std::backtrace_rs::backtrace::libunwind::trace::h559918daaaf51ab7 [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x79f789109072 - std::backtrace_rs::backtrace::trace_unsynchronized::hb04fbcf80d07af8b [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x79f789109072 - std::sys::backtrace::_print_fmt::h7c0bbbbfac0065d4 [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x79f789109072 - ::fmt::hb62c8ed31943daa5 [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x79f7891439a3 - core::fmt::rt::Argument::fmt::he5eaa7dd607ed4c9 [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x79f7891439a3 - core::fmt::write::h375399f8cb90b45a [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/fmt/mod.rs:1460:25 [INFO] [stdout] 6: 0x79f7891063a3 - std::io::default_write_fmt::hdc1b4dd565dd0099 [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x79f7891063a3 - std::io::Write::write_fmt::h29f6044e9bc43c23 [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x79f789108ec2 - std::sys::backtrace::BacktraceLock::print::ha189c586374f916a [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x79f78910a64c - std::panicking::default_hook::{{closure}}::ha3a26c98ff210e12 [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/panicking.rs:300:27 [INFO] [stdout] 10: 0x79f78910a4a2 - std::panicking::default_hook::h8c8a86b4390ab794 [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/panicking.rs:324:9 [INFO] [stdout] 11: 0x79f789082894 - as core::ops::function::Fn>::call::ha39ae63ed1e9a130 [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/alloc/src/boxed.rs:1980:9 [INFO] [stdout] 12: 0x79f789082894 - test::test_main_with_exit_callback::{{closure}}::h9df7c328ebe18c28 [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x79f78910b0b3 - as core::ops::function::Fn>::call::h96b7201b552e9069 [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/alloc/src/boxed.rs:1980:9 [INFO] [stdout] 14: 0x79f78910b0b3 - std::panicking::rust_panic_with_hook::hb3b66c2e80efa371 [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/panicking.rs:841:13 [INFO] [stdout] 15: 0x79f78910ad66 - std::panicking::begin_panic_handler::{{closure}}::h9c68d0f839e62070 [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/panicking.rs:699:13 [INFO] [stdout] 16: 0x79f789109579 - std::sys::backtrace::__rust_end_short_backtrace::h68d22ddde4a73ad6 [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/sys/backtrace.rs:168:18 [INFO] [stdout] 17: 0x79f78910aa2d - __rustc[f4ffc7196a45a630]::rust_begin_unwind [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/panicking.rs:697:5 [INFO] [stdout] 18: 0x79f789017500 - core::panicking::panic_fmt::h8cdd4c81eb9069aa [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/panicking.rs:75:14 [INFO] [stdout] 19: 0x79f78901758c - core::panicking::panic::hd54a104e9b8d4d02 [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/panicking.rs:145:5 [INFO] [stdout] 20: 0x79f789047a8d - cryptopals::second_set::second_set::padding_validation::hd1eaf410c958d216 [INFO] [stdout] at /opt/rustwide/workdir/src/second_set.rs:183:9 [INFO] [stdout] 21: 0x79f7890477a7 - cryptopals::second_set::second_set::padding_validation::{{closure}}::h81cd172bff129ea3 [INFO] [stdout] at /opt/rustwide/workdir/src/second_set.rs:173:32 [INFO] [stdout] 22: 0x79f789042956 - core::ops::function::FnOnce::call_once::h9449b57b3c60cead [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 23: 0x79f789087f8b - core::ops::function::FnOnce::call_once::h9633dcf760ae81b2 [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 24: 0x79f789087f8b - test::__rust_begin_short_backtrace::h12ad5e04c8d7b4a5 [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/test/src/lib.rs:648:18 [INFO] [stdout] 25: 0x79f7890871fe - test::run_test_in_process::{{closure}}::he596b4fd3fa4893c [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/test/src/lib.rs:671:74 [INFO] [stdout] 26: 0x79f7890871fe - as core::ops::function::FnOnce<()>>::call_once::hc746bc3fa75190e0 [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 27: 0x79f7890871fe - std::panicking::catch_unwind::do_call::hf4843906108d6299 [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/panicking.rs:589:40 [INFO] [stdout] 28: 0x79f7890871fe - std::panicking::catch_unwind::h849d4e8b03577bb9 [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/panicking.rs:552:19 [INFO] [stdout] 29: 0x79f7890871fe - std::panic::catch_unwind::ha1f814c1dec025d2 [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/panic.rs:359:14 [INFO] [stdout] 30: 0x79f7890871fe - test::run_test_in_process::h542aad3fe61255e7 [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/test/src/lib.rs:671:27 [INFO] [stdout] 31: 0x79f7890871fe - test::run_test::{{closure}}::h612788d75908cb63 [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/test/src/lib.rs:592:43 [INFO] [stdout] 32: 0x79f78904c084 - test::run_test::{{closure}}::hbfeea3bcb7245123 [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/test/src/lib.rs:622:41 [INFO] [stdout] 33: 0x79f78904c084 - std::sys::backtrace::__rust_begin_short_backtrace::h72542b83b4f87d5b [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/sys/backtrace.rs:152:18 [INFO] [stdout] 34: 0x79f78904f87a - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::hff26a7547ea762c9 [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 35: 0x79f78904f87a - as core::ops::function::FnOnce<()>>::call_once::hbee49bc759312884 [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 36: 0x79f78904f87a - std::panicking::catch_unwind::do_call::h61de12ce5e04e28f [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/panicking.rs:589:40 [INFO] [stdout] 37: 0x79f78904f87a - std::panicking::catch_unwind::h454dd49873d22e18 [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/panicking.rs:552:19 [INFO] [stdout] 38: 0x79f78904f87a - std::panic::catch_unwind::h5c15187324f8cebb [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/panic.rs:359:14 [INFO] [stdout] 39: 0x79f78904f87a - std::thread::Builder::spawn_unchecked_::{{closure}}::hbc9d9c7427673d42 [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 40: 0x79f78904f87a - core::ops::function::FnOnce::call_once{{vtable.shim}}::hefd458a129ddca13 [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 41: 0x79f78910db07 - as core::ops::function::FnOnce>::call_once::h2d6e2e526b02c3da [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/alloc/src/boxed.rs:1966:9 [INFO] [stdout] 42: 0x79f78910db07 - as core::ops::function::FnOnce>::call_once::h1aefced482b33c72 [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/alloc/src/boxed.rs:1966:9 [INFO] [stdout] 43: 0x79f78910db07 - std::sys::pal::unix::thread::Thread::new::thread_start::h7c9c6951b48f721d [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/sys/pal/unix/thread.rs:97:17 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] second_set::second_set::padding_validation [INFO] [stdout] [INFO] [stdout] test result: FAILED. 23 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.15s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass `--lib` [INFO] running `Command { std: "docker" "inspect" "a088261455d7e664eae0cc8c344e5c00efd869bd68d9072cf0f1379474d8aac9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a088261455d7e664eae0cc8c344e5c00efd869bd68d9072cf0f1379474d8aac9", kill_on_drop: false }` [INFO] [stdout] a088261455d7e664eae0cc8c344e5c00efd869bd68d9072cf0f1379474d8aac9