[INFO] cloning repository https://github.com/vbartu/crypto [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/vbartu/crypto" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvbartu%2Fcrypto", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvbartu%2Fcrypto'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d58caec7664add98b90a1e68ca17e8342b8a096e [INFO] checking vbartu/crypto against master#f8f6997469237299c1d60814c7b9828602a1f8e4 for pr-143808 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvbartu%2Fcrypto" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/vbartu/crypto [INFO] finished tweaking git repo https://github.com/vbartu/crypto [INFO] tweaked toml for git repo https://github.com/vbartu/crypto written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/vbartu/crypto on toolchain f8f6997469237299c1d60814c7b9828602a1f8e4 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f8f6997469237299c1d60814c7b9828602a1f8e4" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/vbartu/crypto 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" "+f8f6997469237299c1d60814c7b9828602a1f8e4" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+f8f6997469237299c1d60814c7b9828602a1f8e4" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3dbea96b85edadc7a031d71f2c40888376811ec738f0620a0f109b7a6929b952 [INFO] running `Command { std: "docker" "start" "-a" "3dbea96b85edadc7a031d71f2c40888376811ec738f0620a0f109b7a6929b952", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3dbea96b85edadc7a031d71f2c40888376811ec738f0620a0f109b7a6929b952", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3dbea96b85edadc7a031d71f2c40888376811ec738f0620a0f109b7a6929b952", kill_on_drop: false }` [INFO] [stdout] 3dbea96b85edadc7a031d71f2c40888376811ec738f0620a0f109b7a6929b952 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+f8f6997469237299c1d60814c7b9828602a1f8e4" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 656bbf5b743b7d340cec15d7747b27982237c6ed26e3be1ced03b366632ecf55 [INFO] running `Command { std: "docker" "start" "-a" "656bbf5b743b7d340cec15d7747b27982237c6ed26e3be1ced03b366632ecf55", kill_on_drop: false }` [INFO] [stderr] Checking crypto_rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `aes_128::Aes128Cipher` [INFO] [stdout] --> src/cipher.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub use aes_128::Aes128Cipher; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `des::DesCipher` [INFO] [stdout] --> src/cipher.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub use des::DesCipher; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Sha224`, `Sha256`, `Sha384`, `Sha512_224`, `Sha512_256`, and `Sha512` [INFO] [stdout] --> src/hash.rs:5:16 [INFO] [stdout] | [INFO] [stdout] 5 | pub use sha2::{Sha224,Sha256,Sha384,Sha512,Sha512_224,Sha512_256}; [INFO] [stdout] | ^^^^^^ ^^^^^^ ^^^^^^ ^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hmac::Hmac` [INFO] [stdout] --> src/mac.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub use hmac::Hmac; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `des::DesCipher` [INFO] [stdout] --> src/cipher.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub use des::DesCipher; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hmac::Hmac` [INFO] [stdout] --> src/mac.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub use hmac::Hmac; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Cipher` is never used [INFO] [stdout] --> src/cipher.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | pub trait Cipher { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Aes128Cipher` is never constructed [INFO] [stdout] --> src/cipher/aes_128.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Aes128Cipher { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `do_encrypt` and `do_decrypt` are never used [INFO] [stdout] --> src/cipher/aes_128.rs:51:8 [INFO] [stdout] | [INFO] [stdout] 50 | impl Aes128Cipher { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] 51 | fn do_encrypt(&self, plaintext: &[u8; 16]) -> [u8; 16] { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | fn do_decrypt(&self, ciphertext: &[u8; 16]) -> [u8; 16] { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sub_bytes` is never used [INFO] [stdout] --> src/cipher/aes_128.rs:91:4 [INFO] [stdout] | [INFO] [stdout] 91 | fn sub_bytes(state: &mut [u8; 16], s_box: &[u8; 256]) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `shift_rows` is never used [INFO] [stdout] --> src/cipher/aes_128.rs:98:4 [INFO] [stdout] | [INFO] [stdout] 98 | fn shift_rows(state: &mut [u8; 16], rot: constants::ShiftRows) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `galois_mult` is never used [INFO] [stdout] --> src/cipher/aes_128.rs:115:4 [INFO] [stdout] | [INFO] [stdout] 115 | fn galois_mult(mut a: u8, mut b: u8) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mix_columns` is never used [INFO] [stdout] --> src/cipher/aes_128.rs:131:4 [INFO] [stdout] | [INFO] [stdout] 131 | fn mix_columns(state: &mut [u8; 16], matrix: &[[u8; 4]; 4]) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_round_key` is never used [INFO] [stdout] --> src/cipher/aes_128.rs:144:4 [INFO] [stdout] | [INFO] [stdout] 144 | fn add_round_key(state: &mut [u8; 16], key: &[u8; 16]) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `key_expansion` is never used [INFO] [stdout] --> src/cipher/aes_128.rs:148:4 [INFO] [stdout] | [INFO] [stdout] 148 | fn key_expansion(prev_key: &[u8; 16], round: usize) -> [u8; 16] { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ROUNDS` is never used [INFO] [stdout] --> src/cipher/aes_128_constants.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | pub const ROUNDS: usize = 10; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BLOCK_SIZE` is never used [INFO] [stdout] --> src/cipher/aes_128_constants.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | pub const BLOCK_SIZE: usize = 16; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `R_CONST` is never used [INFO] [stdout] --> src/cipher/aes_128_constants.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub const R_CONST: [u8; 10] = [0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1b, 0x36]; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ShiftRows` is never used [INFO] [stdout] --> src/cipher/aes_128_constants.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum ShiftRows { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MC_MATRIX` is never used [INFO] [stdout] --> src/cipher/aes_128_constants.rs:14:11 [INFO] [stdout] | [INFO] [stdout] 14 | pub const MC_MATRIX: [[u8; 4]; 4] = [ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `INV_MC_MATRIX` is never used [INFO] [stdout] --> src/cipher/aes_128_constants.rs:22:11 [INFO] [stdout] | [INFO] [stdout] 22 | pub const INV_MC_MATRIX: [[u8; 4]; 4] = [ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `S_BOX` is never used [INFO] [stdout] --> src/cipher/aes_128_constants.rs:30:11 [INFO] [stdout] | [INFO] [stdout] 30 | pub const S_BOX: [u8; 256] = [ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `INV_S_BOX` is never used [INFO] [stdout] --> src/cipher/aes_128_constants.rs:50:11 [INFO] [stdout] | [INFO] [stdout] 50 | pub const INV_S_BOX: [u8; 256] = [ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DesCipher` is never constructed [INFO] [stdout] --> src/cipher/des.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct DesCipher { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `key_expansion` is never used [INFO] [stdout] --> src/cipher/des.rs:47:4 [INFO] [stdout] | [INFO] [stdout] 47 | fn key_expansion(initial_key: &[u8; 8]) -> Box<[[u8; 6]; 16]> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bit_rotation_28` is never used [INFO] [stdout] --> src/cipher/des.rs:67:4 [INFO] [stdout] | [INFO] [stdout] 67 | fn bit_rotation_28(n: &mut u64, shift: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `permutation` is never used [INFO] [stdout] --> src/cipher/des.rs:71:4 [INFO] [stdout] | [INFO] [stdout] 71 | fn permutation(chunk: &mut u64, p: &[u8], chunk_size: u8) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `feistel_function` is never used [INFO] [stdout] --> src/cipher/des.rs:80:4 [INFO] [stdout] | [INFO] [stdout] 80 | fn feistel_function(word: u32, key: &[u8; 6]) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `feistel_round` is never used [INFO] [stdout] --> src/cipher/des.rs:103:4 [INFO] [stdout] | [INFO] [stdout] 103 | fn feistel_round(chunk: &mut u64, key: &[u8; 6]) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `des_algorithm` is never used [INFO] [stdout] --> src/cipher/des.rs:110:8 [INFO] [stdout] | [INFO] [stdout] 110 | pub fn des_algorithm(plaintext: &[u8; 8], keys: &[[u8; 6]; 16]) -> [u8; 8] { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BLOCK_SIZE` is never used [INFO] [stdout] --> src/cipher/des_constants.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | pub const BLOCK_SIZE: usize = 8; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `IP` is never used [INFO] [stdout] --> src/cipher/des_constants.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub const IP: [u8; 64] = [ [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FP` is never used [INFO] [stdout] --> src/cipher/des_constants.rs:13:11 [INFO] [stdout] | [INFO] [stdout] 13 | pub const FP: [u8; 64] = [ [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `P` is never used [INFO] [stdout] --> src/cipher/des_constants.rs:22:11 [INFO] [stdout] | [INFO] [stdout] 22 | pub const P: [u8; 32] = [ [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `E` is never used [INFO] [stdout] --> src/cipher/des_constants.rs:30:11 [INFO] [stdout] | [INFO] [stdout] 30 | pub const E: [u8; 48] = [ [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PC_1` is never used [INFO] [stdout] --> src/cipher/des_constants.rs:38:11 [INFO] [stdout] | [INFO] [stdout] 38 | pub const PC_1: [u8; 56] = [ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PC_2` is never used [INFO] [stdout] --> src/cipher/des_constants.rs:50:11 [INFO] [stdout] | [INFO] [stdout] 50 | pub const PC_2: [u8; 48] = [ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BIT_ROTATION` is never used [INFO] [stdout] --> src/cipher/des_constants.rs:62:11 [INFO] [stdout] | [INFO] [stdout] 62 | pub const BIT_ROTATION: [u8; 16] = [1, 1, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 1]; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `S_BOXES` is never used [INFO] [stdout] --> src/cipher/des_constants.rs:65:11 [INFO] [stdout] | [INFO] [stdout] 65 | pub const S_BOXES: [[[u8; 16]; 4]; 8] = [ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `InvalidKeyLen` is never constructed [INFO] [stdout] --> src/error.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | error_decl!(InvalidKeyLen, "Invalid key length"); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `error_decl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `InvalidDataLen` is never constructed [INFO] [stdout] --> src/error.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | error_decl!(InvalidDataLen, "Invalid data length"); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `error_decl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `InvalidIvLen` is never constructed [INFO] [stdout] --> src/error.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | error_decl!(InvalidIvLen, "Invalid iv/nonce length"); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `error_decl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IncorrectMac` is never constructed [INFO] [stdout] --> src/error.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | error_decl!(IncorrectMac, "MAC signature was incorrect"); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `error_decl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Hash` is never used [INFO] [stdout] --> src/hash.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | pub trait Hash { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Sha224` is never constructed [INFO] [stdout] --> src/hash/sha2.rs:65:11 [INFO] [stdout] | [INFO] [stdout] 65 | sha_impl!(Sha224, u32, constants::SHA224_DIGEST_SIZE, constants::SHA224_INIT_H, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `sha_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Sha256` is never constructed [INFO] [stdout] --> src/hash/sha2.rs:69:11 [INFO] [stdout] | [INFO] [stdout] 69 | sha_impl!(Sha256, u32, constants::SHA256_DIGEST_SIZE, constants::SHA256_INIT_H, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `sha_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Sha384` is never constructed [INFO] [stdout] --> src/hash/sha2.rs:73:11 [INFO] [stdout] | [INFO] [stdout] 73 | sha_impl!(Sha384, u64, constants::SHA384_DIGEST_SIZE, constants::SHA384_INIT_H, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `sha_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Sha512` is never constructed [INFO] [stdout] --> src/hash/sha2.rs:77:11 [INFO] [stdout] | [INFO] [stdout] 77 | sha_impl!(Sha512, u64, constants::SHA512_DIGEST_SIZE, constants::SHA512_INIT_H, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `sha_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Sha512_224` is never constructed [INFO] [stdout] --> src/hash/sha2.rs:81:11 [INFO] [stdout] | [INFO] [stdout] 81 | sha_impl!(Sha512_224, u64, constants::SHA512_224_DIGEST_SIZE, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `sha_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Sha512_256` is never constructed [INFO] [stdout] --> src/hash/sha2.rs:85:11 [INFO] [stdout] | [INFO] [stdout] 85 | sha_impl!(Sha512_256, u64, constants::SHA512_256_DIGEST_SIZE, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `sha_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `ShaUint` is never used [INFO] [stdout] --> src/hash/sha2_common.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | pub trait ShaUint: Copy [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `ShaCommon` is never used [INFO] [stdout] --> src/hash/sha2_common.rs:92:11 [INFO] [stdout] | [INFO] [stdout] 92 | pub trait ShaCommon { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SHA224_DIGEST_SIZE` is never used [INFO] [stdout] --> src/hash/sha2_constants.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | pub const SHA224_DIGEST_SIZE: usize = 28; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SHA256_DIGEST_SIZE` is never used [INFO] [stdout] --> src/hash/sha2_constants.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub const SHA256_DIGEST_SIZE: usize = 32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SHA384_DIGEST_SIZE` is never used [INFO] [stdout] --> src/hash/sha2_constants.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | pub const SHA384_DIGEST_SIZE: usize = 48; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SHA512_DIGEST_SIZE` is never used [INFO] [stdout] --> src/hash/sha2_constants.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub const SHA512_DIGEST_SIZE: usize = 64; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SHA512_224_DIGEST_SIZE` is never used [INFO] [stdout] --> src/hash/sha2_constants.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub const SHA512_224_DIGEST_SIZE: usize = 28; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SHA512_256_DIGEST_SIZE` is never used [INFO] [stdout] --> src/hash/sha2_constants.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | pub const SHA512_256_DIGEST_SIZE: usize = 32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SHA256_BLOCK_SIZE` is never used [INFO] [stdout] --> src/hash/sha2_constants.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | pub const SHA256_BLOCK_SIZE: usize = 64; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SHA512_BLOCK_SIZE` is never used [INFO] [stdout] --> src/hash/sha2_constants.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | pub const SHA512_BLOCK_SIZE: usize = 128; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SHA224_INIT_H` is never used [INFO] [stdout] --> src/hash/sha2_constants.rs:14:11 [INFO] [stdout] | [INFO] [stdout] 14 | pub const SHA224_INIT_H: [u32; 8] = [ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SHA256_INIT_H` is never used [INFO] [stdout] --> src/hash/sha2_constants.rs:19:11 [INFO] [stdout] | [INFO] [stdout] 19 | pub const SHA256_INIT_H: [u32; 8] = [ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SHA384_INIT_H` is never used [INFO] [stdout] --> src/hash/sha2_constants.rs:24:11 [INFO] [stdout] | [INFO] [stdout] 24 | pub const SHA384_INIT_H: [u64; 8] = [ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SHA512_INIT_H` is never used [INFO] [stdout] --> src/hash/sha2_constants.rs:31:11 [INFO] [stdout] | [INFO] [stdout] 31 | pub const SHA512_INIT_H: [u64; 8] = [ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SHA512_224_INIT_H` is never used [INFO] [stdout] --> src/hash/sha2_constants.rs:38:11 [INFO] [stdout] | [INFO] [stdout] 38 | pub const SHA512_224_INIT_H: [u64; 8] = [ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SHA512_256_INIT_H` is never used [INFO] [stdout] --> src/hash/sha2_constants.rs:45:11 [INFO] [stdout] | [INFO] [stdout] 45 | pub const SHA512_256_INIT_H: [u64; 8] = [ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SHA256_W_LENGTH` is never used [INFO] [stdout] --> src/hash/sha2_constants.rs:53:11 [INFO] [stdout] | [INFO] [stdout] 53 | pub const SHA256_W_LENGTH: usize = 64; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SHA512_W_LENGTH` is never used [INFO] [stdout] --> src/hash/sha2_constants.rs:54:11 [INFO] [stdout] | [INFO] [stdout] 54 | pub const SHA512_W_LENGTH: usize = 80; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SHA256_K` is never used [INFO] [stdout] --> src/hash/sha2_constants.rs:57:11 [INFO] [stdout] | [INFO] [stdout] 57 | pub const SHA256_K: [u32; SHA256_W_LENGTH] = [ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SHA512_K` is never used [INFO] [stdout] --> src/hash/sha2_constants.rs:76:11 [INFO] [stdout] | [INFO] [stdout] 76 | pub const SHA512_K: [u64; SHA512_W_LENGTH] = [ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Mac` is never used [INFO] [stdout] --> src/mac.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | pub trait Mac { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `INNER_PAD_VAL` is never used [INFO] [stdout] --> src/mac/hmac.rs:5:7 [INFO] [stdout] | [INFO] [stdout] 5 | const INNER_PAD_VAL: u8 = 0x36; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `OUTER_PAD_VAL` is never used [INFO] [stdout] --> src/mac/hmac.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | const OUTER_PAD_VAL: u8 = 0x5C; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Hmac` is never constructed [INFO] [stdout] --> src/mac/hmac.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Hmac where H: Hash { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sanitize_key` is never used [INFO] [stdout] --> src/mac/hmac.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn sanitize_key(key: &[u8]) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pad` is never used [INFO] [stdout] --> src/modes/pkcs7_padding.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn pad(data: &[u8], block_size: usize) -> Vec { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `unpad` is never used [INFO] [stdout] --> src/modes/pkcs7_padding.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn unpad(data: &[u8]) -> &[u8] { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encrypt` is never used [INFO] [stdout] --> src/modes/ecb.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn encrypt(data: &[u8], cipher: &impl Cipher) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decrypt` is never used [INFO] [stdout] --> src/modes/ecb.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn decrypt(data: &[u8], cipher: &impl Cipher) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encrypt` is never used [INFO] [stdout] --> src/modes/cbc.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn encrypt(data: &[u8], cipher: &impl Cipher, iv: &[u8]) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decrypt` is never used [INFO] [stdout] --> src/modes/cbc.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn decrypt(data: &[u8], cipher: &impl Cipher, iv: &[u8]) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encrypt` is never used [INFO] [stdout] --> src/modes/ctr.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn encrypt(data: &[u8], cipher: &impl Cipher, nonce: &[u8]) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decrypt` is never used [INFO] [stdout] --> src/modes/ctr.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn decrypt(data: &[u8], cipher: &impl Cipher, nonce: &[u8]) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `xor_slice` is never used [INFO] [stdout] --> src/utils.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn xor_slice(a: &mut [u8], b: &[u8]) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `DIGEST_SIZE` and `digest_size` are never used [INFO] [stdout] --> src/hash.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 8 | pub trait Hash { [INFO] [stdout] | ---- associated items in this trait [INFO] [stdout] 9 | const DIGEST_SIZE: usize; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | fn digest_size(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `size` is never used [INFO] [stdout] --> src/mac.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub trait Mac { [INFO] [stdout] | --- method in this trait [INFO] [stdout] ... [INFO] [stdout] 27 | fn size(&self) -> usize; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.19s [INFO] running `Command { std: "docker" "inspect" "656bbf5b743b7d340cec15d7747b27982237c6ed26e3be1ced03b366632ecf55", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "656bbf5b743b7d340cec15d7747b27982237c6ed26e3be1ced03b366632ecf55", kill_on_drop: false }` [INFO] [stdout] 656bbf5b743b7d340cec15d7747b27982237c6ed26e3be1ced03b366632ecf55