[INFO] cloning repository https://github.com/watason/angou-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/watason/angou-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwatason%2Fangou-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwatason%2Fangou-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0c4e8fa95054eb5b554b680d552c7ec37ad2e47f [INFO] checking watason/angou-rs against try#a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d for pr-145342-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwatason%2Fangou-rs" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/watason/angou-rs [INFO] finished tweaking git repo https://github.com/watason/angou-rs [INFO] tweaked toml for git repo https://github.com/watason/angou-rs written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/watason/angou-rs on toolchain a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/watason/angou-rs 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" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 65aa28870b6b990aab4f4c89631f4e7d7507c29a3cc23ab89584d298d0df07fd [INFO] running `Command { std: "docker" "start" "-a" "65aa28870b6b990aab4f4c89631f4e7d7507c29a3cc23ab89584d298d0df07fd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "65aa28870b6b990aab4f4c89631f4e7d7507c29a3cc23ab89584d298d0df07fd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "65aa28870b6b990aab4f4c89631f4e7d7507c29a3cc23ab89584d298d0df07fd", kill_on_drop: false }` [INFO] [stdout] 65aa28870b6b990aab4f4c89631f4e7d7507c29a3cc23ab89584d298d0df07fd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 963652b069240fc0de87a11000bccbb83e2c976b5b1f8b7957f31874f0e53b79 [INFO] running `Command { std: "docker" "start" "-a" "963652b069240fc0de87a11000bccbb83e2c976b5b1f8b7957f31874f0e53b79", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.154 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking testf v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::ops::Add` [INFO] [stdout] --> src/cipher/aes.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::Add; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `blocks` [INFO] [stdout] --> src/cipher/aes.rs:3:45 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::domain::value_object::{aes_type, blocks}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `aes_type::*` [INFO] [stdout] --> src/cipher/aes.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use aes_type::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::*` [INFO] [stdout] --> src/cipher/blake.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ops::Index` [INFO] [stdout] --> src/cipher/aegis.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{io::Read, ops::Index}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/cipher/aegis.rs:3:18 [INFO] [stdout] | [INFO] [stdout] 3 | use super::aes::{self, add_round_key, mix_column, shift_row, sub_bytes, Key, AES}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/cipher/aegis.rs:172:21 [INFO] [stdout] | [INFO] [stdout] 172 | let msglen_be = (messagelen as u128); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 172 - let msglen_be = (messagelen as u128); [INFO] [stdout] 172 + let msglen_be = messagelen as u128; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem` [INFO] [stdout] --> src/domain/value_object/aes_gf.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::mem; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `aesGF` should have an upper camel case name [INFO] [stdout] --> src/domain/value_object/aes_gf.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct aesGF{ [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case: `AesGf` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::aes_type` [INFO] [stdout] --> src/domain/value_object/blocks.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use super::aes_type; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::default` [INFO] [stdout] --> src/domain/value_object/aes_type.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::default; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Add` [INFO] [stdout] --> src/cipher/aes.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::Add; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `blocks` [INFO] [stdout] --> src/cipher/aes.rs:3:45 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::domain::value_object::{aes_type, blocks}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `aes_type::*` [INFO] [stdout] --> src/cipher/aes.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use aes_type::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::*` [INFO] [stdout] --> src/cipher/blake.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::hash` [INFO] [stdout] --> src/cipher/blake.rs:203:7 [INFO] [stdout] | [INFO] [stdout] 203 | use core::hash; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ChaChaRng` and `rand_core::SeedableRng` [INFO] [stdout] --> src/cipher/chacha.rs:178:21 [INFO] [stdout] | [INFO] [stdout] 178 | use rand_chacha::{rand_core::SeedableRng, ChaCha20Rng, ChaChaRng}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ops::Index` [INFO] [stdout] --> src/cipher/aegis.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{io::Read, ops::Index}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/cipher/aegis.rs:3:18 [INFO] [stdout] | [INFO] [stdout] 3 | use super::aes::{self, add_round_key, mix_column, shift_row, sub_bytes, Key, AES}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/cipher/aegis.rs:172:21 [INFO] [stdout] | [INFO] [stdout] 172 | let msglen_be = (messagelen as u128); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 172 - let msglen_be = (messagelen as u128); [INFO] [stdout] 172 + let msglen_be = messagelen as u128; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::cipher` [INFO] [stdout] --> src/cipher/aegis.rs:216:7 [INFO] [stdout] | [INFO] [stdout] 216 | use crate::cipher; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem` [INFO] [stdout] --> src/domain/value_object/aes_gf.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::mem; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `aesGF` should have an upper camel case name [INFO] [stdout] --> src/domain/value_object/aes_gf.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct aesGF{ [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case: `AesGf` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::aes_type` [INFO] [stdout] --> src/domain/value_object/blocks.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use super::aes_type; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::default` [INFO] [stdout] --> src/domain/value_object/aes_type.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::default; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `io::Read` [INFO] [stdout] --> src/cipher/aegis.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{io::Read, ops::Index}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cipher/aes.rs:63:17 [INFO] [stdout] | [INFO] [stdout] 63 | let mut vec_u8 = x.to_be_bytes(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nk` [INFO] [stdout] --> src/cipher/aes.rs:106:14 [INFO] [stdout] | [INFO] [stdout] 106 | let (nk,nr) = key.bit_type.nk_nr(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_nk` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nk` [INFO] [stdout] --> src/cipher/aes.rs:133:14 [INFO] [stdout] | [INFO] [stdout] 133 | let (nk,nr) = key.bit_type.nk_nr(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_nk` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cipher/aes.rs:202:9 [INFO] [stdout] | [INFO] [stdout] 202 | for mut item in ret.iter_mut(){ [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `inverse` [INFO] [stdout] --> src/cipher/aes.rs:234:53 [INFO] [stdout] | [INFO] [stdout] 234 | pub fn add_round_key(blocks: Vec,key : Vec,inverse : bool)->Vec{ [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_inverse` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/cipher/aes.rs:251:9 [INFO] [stdout] | [INFO] [stdout] 251 | for i in 0..value{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/cipher/blake.rs:36:11 [INFO] [stdout] | [INFO] [stdout] 36 | for i in 0..diff { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/cipher/chacha.rs:119:9 [INFO] [stdout] | [INFO] [stdout] 119 | for i in 0..10 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `be_to_u32` [INFO] [stdout] --> src/cipher/chacha.rs:136:9 [INFO] [stdout] | [INFO] [stdout] 136 | let be_to_u32 = |x: &[u8]| { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_be_to_u32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `le_to_u32` [INFO] [stdout] --> src/cipher/chacha.rs:145:9 [INFO] [stdout] | [INFO] [stdout] 145 | let le_to_u32 = |x: &[u8]| { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_le_to_u32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cipher/chacha.rs:153:9 [INFO] [stdout] | [INFO] [stdout] 153 | let mut encrypt_message = plain_text [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/cipher/aegis.rs:108:9 [INFO] [stdout] | [INFO] [stdout] 108 | for i in 0..5 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/cipher/aegis.rs:183:9 [INFO] [stdout] | [INFO] [stdout] 183 | for i in 0..=6{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/domain/value_object/aes_gf.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 48 | for i in 0..253 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `mode` is never read [INFO] [stdout] --> src/cipher/aes.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Key{ [INFO] [stdout] | --- field in this struct [INFO] [stdout] ... [INFO] [stdout] 12 | mode : aes_type::Mode [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Key` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Block` is never used [INFO] [stdout] --> src/cipher/aes.rs:20:6 [INFO] [stdout] | [INFO] [stdout] 20 | type Block = u8; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Word` is never used [INFO] [stdout] --> src/cipher/aes.rs:21:6 [INFO] [stdout] | [INFO] [stdout] 21 | type Word = [Block;4]; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `State` is never constructed [INFO] [stdout] --> src/cipher/aes.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | struct State{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `CommonKeyRayer` is never used [INFO] [stdout] --> src/cipher/aes.rs:26:18 [INFO] [stdout] | [INFO] [stdout] 26 | pub(crate) trait CommonKeyRayer{ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `inv_sbox` is never read [INFO] [stdout] --> src/cipher/aes.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct AES{ [INFO] [stdout] | --- field in this struct [INFO] [stdout] 32 | sbox : [u8;256], [INFO] [stdout] 33 | inv_sbox:[u8;256] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AES` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Blake2` is never constructed [INFO] [stdout] --> src/cipher/blake.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct Blake2 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Key` is never constructed [INFO] [stdout] --> src/cipher/blake.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct Key { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `IV`, `new`, `hash`, `compress`, and `g` are never used [INFO] [stdout] --> src/cipher/blake.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 12 | impl Blake2 { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 13 | //IV [INFO] [stdout] 14 | const IV: [u64; 8] = [ [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 25 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn hash(&self, m: Vec, nn: u8, key: Key) -> Vec { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | fn compress(h: Vec, chunk: Vec, t: u128, last: bool) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 175 | fn g(a: u64, b: u64, c: u64, d: u64, x: u64, y: u64) -> (u64, u64, u64, u64) { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `state` is never read [INFO] [stdout] --> src/cipher/chacha.rs:4:3 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct ChaCha { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 4 | state: Block, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ChaCha` 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 functions `new`, `quarter_round`, `init`, `block`, and `encode` are never used [INFO] [stdout] --> src/cipher/chacha.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 7 | impl ChaCha { [INFO] [stdout] | ----------- associated functions in this implementation [INFO] [stdout] 8 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 11 | fn quarter_round(state: &mut [u32], i: usize, j: usize, k: usize, l: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | fn init(key: &[u32], counter: u32, nonce: &[u32]) -> Block { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | fn block(key: &[u32], counter: u32, nonce: &[u32]) -> Block { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 135 | fn encode(key: &[u32], counter: u32, nonce: &[u32], plain_text: &[u8]) -> Vec { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `u128_to_u32_vec` is never used [INFO] [stdout] --> src/cipher/aegis.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn u128_to_u32_vec(value: u128) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Aegis` is never constructed [INFO] [stdout] --> src/cipher/aegis.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | struct Aegis{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `aes_round` is never used [INFO] [stdout] --> src/cipher/aegis.rs:27:6 [INFO] [stdout] | [INFO] [stdout] 27 | fn aes_round(state: u128,key : u128)->u128{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `state_update128` is never used [INFO] [stdout] --> src/cipher/aegis.rs:55:4 [INFO] [stdout] | [INFO] [stdout] 55 | fn state_update128(state : Vec, message : u128) -> Vec{ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/cipher/aegis.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 67 | impl Aegis{ [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 68 | // Fibonacci数列 mod 256の32バイト定数 [INFO] [stdout] 69 | const FIBONACCI_CONSTANT: [u8; 32] = [ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | fn new() -> Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | fn init(&mut self,key : u128) -> Vec{ [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 125 | fn enc(&mut self,plane : Vec)->Vec{ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 155 | fn with_ad(&mut self) -> Vec{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 167 | fn finalize(&mut self) ->u128{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 192 | fn dec(&mut self,cipher : Vec)-> (Vec,u128){ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/cipher/chacha.rs:162:30 [INFO] [stdout] | [INFO] [stdout] 162 | let mut chunk = chunk.clone().to_vec(); [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] [stdout] warning: unused import: `io::Read` [INFO] [stdout] --> src/cipher/aegis.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{io::Read, ops::Index}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cipher/aes.rs:63:17 [INFO] [stdout] | [INFO] [stdout] 63 | let mut vec_u8 = x.to_be_bytes(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nk` [INFO] [stdout] --> src/cipher/aes.rs:106:14 [INFO] [stdout] | [INFO] [stdout] 106 | let (nk,nr) = key.bit_type.nk_nr(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_nk` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nk` [INFO] [stdout] --> src/cipher/aes.rs:133:14 [INFO] [stdout] | [INFO] [stdout] 133 | let (nk,nr) = key.bit_type.nk_nr(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_nk` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cipher/aes.rs:202:9 [INFO] [stdout] | [INFO] [stdout] 202 | for mut item in ret.iter_mut(){ [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem` [INFO] [stdout] --> src/domain/value_object/aes_gf.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::mem; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `aesGF` should have an upper camel case name [INFO] [stdout] --> src/domain/value_object/aes_gf.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct aesGF{ [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case: `AesGf` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::aes_type` [INFO] [stdout] --> src/domain/value_object/blocks.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use super::aes_type; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::default` [INFO] [stdout] --> src/domain/value_object/aes_type.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::default; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Add` [INFO] [stdout] --> src/cipher/aes.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::Add; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `blocks` [INFO] [stdout] --> src/cipher/aes.rs:3:45 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::domain::value_object::{aes_type, blocks}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `aes_type::*` [INFO] [stdout] --> src/cipher/aes.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use aes_type::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::*` [INFO] [stdout] --> src/cipher/blake.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ops::Index` [INFO] [stdout] --> src/cipher/aegis.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{io::Read, ops::Index}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/cipher/aegis.rs:3:18 [INFO] [stdout] | [INFO] [stdout] 3 | use super::aes::{self, add_round_key, mix_column, shift_row, sub_bytes, Key, AES}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/cipher/aegis.rs:172:21 [INFO] [stdout] | [INFO] [stdout] 172 | let msglen_be = (messagelen as u128); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 172 - let msglen_be = (messagelen as u128); [INFO] [stdout] 172 + let msglen_be = messagelen as u128; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `domain::value_object::aes_gf::aesGF` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use domain::value_object::aes_gf::aesGF; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `domain::value_object::aes_type` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use domain::value_object::aes_type; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cipher::*` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use cipher::*; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::domain::value_object` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::domain::value_object; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::domain::value_object::aes_type::*` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::domain::value_object::aes_type::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `inverse` [INFO] [stdout] --> src/cipher/aes.rs:234:53 [INFO] [stdout] | [INFO] [stdout] 234 | pub fn add_round_key(blocks: Vec,key : Vec,inverse : bool)->Vec{ [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_inverse` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/cipher/aes.rs:251:9 [INFO] [stdout] | [INFO] [stdout] 251 | for i in 0..value{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `io::Read` [INFO] [stdout] --> src/cipher/aegis.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{io::Read, ops::Index}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/domain/value_object/aes_gf.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 48 | for i in 0..253 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cipher/aes.rs:63:17 [INFO] [stdout] | [INFO] [stdout] 63 | let mut vec_u8 = x.to_be_bytes(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nk` [INFO] [stdout] --> src/cipher/aes.rs:106:14 [INFO] [stdout] | [INFO] [stdout] 106 | let (nk,nr) = key.bit_type.nk_nr(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_nk` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nk` [INFO] [stdout] --> src/cipher/aes.rs:133:14 [INFO] [stdout] | [INFO] [stdout] 133 | let (nk,nr) = key.bit_type.nk_nr(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_nk` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cipher/aes.rs:202:9 [INFO] [stdout] | [INFO] [stdout] 202 | for mut item in ret.iter_mut(){ [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `inverse` [INFO] [stdout] --> src/cipher/aes.rs:234:53 [INFO] [stdout] | [INFO] [stdout] 234 | pub fn add_round_key(blocks: Vec,key : Vec,inverse : bool)->Vec{ [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_inverse` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/cipher/aes.rs:251:9 [INFO] [stdout] | [INFO] [stdout] 251 | for i in 0..value{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/cipher/blake.rs:36:11 [INFO] [stdout] | [INFO] [stdout] 36 | for i in 0..diff { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/cipher/blake.rs:36:11 [INFO] [stdout] | [INFO] [stdout] 36 | for i in 0..diff { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/cipher/chacha.rs:119:9 [INFO] [stdout] | [INFO] [stdout] 119 | for i in 0..10 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `be_to_u32` [INFO] [stdout] --> src/cipher/chacha.rs:136:9 [INFO] [stdout] | [INFO] [stdout] 136 | let be_to_u32 = |x: &[u8]| { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_be_to_u32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `le_to_u32` [INFO] [stdout] --> src/cipher/chacha.rs:145:9 [INFO] [stdout] | [INFO] [stdout] 145 | let le_to_u32 = |x: &[u8]| { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_le_to_u32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cipher/chacha.rs:153:9 [INFO] [stdout] | [INFO] [stdout] 153 | let mut encrypt_message = plain_text [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/cipher/aegis.rs:108:9 [INFO] [stdout] | [INFO] [stdout] 108 | for i in 0..5 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/cipher/aegis.rs:183:9 [INFO] [stdout] | [INFO] [stdout] 183 | for i in 0..=6{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `aesGF` is never constructed [INFO] [stdout] --> src/domain/value_object/aes_gf.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct aesGF{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `inv` is never used [INFO] [stdout] --> src/domain/value_object/aes_gf.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 45 | impl aesGF{ [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] 46 | pub fn inv(self)->Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `BitType` is never used [INFO] [stdout] --> src/domain/value_object/aes_type.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum BitType { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `nk_nr` is never used [INFO] [stdout] --> src/domain/value_object/aes_type.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl BitType { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 13 | pub fn nk_nr(self)->(usize,usize){ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Mode` is never used [INFO] [stdout] --> src/domain/value_object/aes_type.rs:23:10 [INFO] [stdout] | [INFO] [stdout] 23 | pub enum Mode{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Key` is never constructed [INFO] [stdout] --> src/cipher/aes.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Key{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/cipher/aes.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Key{ [INFO] [stdout] | -------- associated function in this implementation [INFO] [stdout] 16 | pub fn new(value : Vec,bit_type:aes_type::BitType,mode : aes_type::Mode)->Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Block` is never used [INFO] [stdout] --> src/cipher/aes.rs:20:6 [INFO] [stdout] | [INFO] [stdout] 20 | type Block = u8; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Word` is never used [INFO] [stdout] --> src/cipher/aes.rs:21:6 [INFO] [stdout] | [INFO] [stdout] 21 | type Word = [Block;4]; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `State` is never constructed [INFO] [stdout] --> src/cipher/aes.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | struct State{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `CommonKeyRayer` is never used [INFO] [stdout] --> src/cipher/aes.rs:26:18 [INFO] [stdout] | [INFO] [stdout] 26 | pub(crate) trait CommonKeyRayer{ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AES` is never constructed [INFO] [stdout] --> src/cipher/aes.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct AES{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `RCON`, `new`, `key_expansion`, `encrypt`, and `decrypt` are never used [INFO] [stdout] --> src/cipher/aes.rs:36:11 [INFO] [stdout] | [INFO] [stdout] 35 | impl AES{ [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] 36 | const RCON : [u32;11] = [ [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn new()->Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn key_expansion(&self,key : Key)->Vec{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | pub fn encrypt(&self,input : Vec,key : Key)->Vec{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 130 | pub fn decrypt(&self,input : Vec,key : Key)->Vec{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `make_sbox` is never used [INFO] [stdout] --> src/cipher/aes.rs:157:15 [INFO] [stdout] | [INFO] [stdout] 157 | pub(crate) fn make_sbox() -> ([u8;256],[u8;256]){ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `shift_row` is never used [INFO] [stdout] --> src/cipher/aes.rs:170:8 [INFO] [stdout] | [INFO] [stdout] 170 | pub fn shift_row(blocks : Vec,inverse : bool) -> Vec{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sub_bytes` is never used [INFO] [stdout] --> src/cipher/aes.rs:199:8 [INFO] [stdout] | [INFO] [stdout] 199 | pub fn sub_bytes(blocks : Vec,inverse : bool) ->Vec{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mix_column` is never used [INFO] [stdout] --> src/cipher/aes.rs:212:8 [INFO] [stdout] | [INFO] [stdout] 212 | pub fn mix_column(blocks: Vec,inverse : bool)->Vec{ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_round_key` is never used [INFO] [stdout] --> src/cipher/aes.rs:234:8 [INFO] [stdout] | [INFO] [stdout] 234 | pub fn add_round_key(blocks: Vec,key : Vec,inverse : bool)->Vec{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `padding_pkcs_7` is never used [INFO] [stdout] --> src/cipher/aes.rs:247:8 [INFO] [stdout] | [INFO] [stdout] 247 | pub fn padding_pkcs_7(input : Vec)->Vec{ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Blake2` is never constructed [INFO] [stdout] --> src/cipher/blake.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct Blake2 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Key` is never constructed [INFO] [stdout] --> src/cipher/blake.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct Key { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `IV`, `new`, `hash`, `compress`, and `g` are never used [INFO] [stdout] --> src/cipher/blake.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 12 | impl Blake2 { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 13 | //IV [INFO] [stdout] 14 | const IV: [u64; 8] = [ [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 25 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn hash(&self, m: Vec, nn: u8, key: Key) -> Vec { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | fn compress(h: Vec, chunk: Vec, t: u128, last: bool) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 175 | fn g(a: u64, b: u64, c: u64, d: u64, x: u64, y: u64) -> (u64, u64, u64, u64) { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Block` is never used [INFO] [stdout] --> src/cipher/chacha.rs:1:6 [INFO] [stdout] | [INFO] [stdout] 1 | type Block = [u32; 16]; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ChaCha` is never constructed [INFO] [stdout] --> src/cipher/chacha.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct ChaCha { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new`, `quarter_round`, `init`, `block`, `serialize`, and `encode` are never used [INFO] [stdout] --> src/cipher/chacha.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 7 | impl ChaCha { [INFO] [stdout] | ----------- associated functions in this implementation [INFO] [stdout] 8 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 11 | fn quarter_round(state: &mut [u32], i: usize, j: usize, k: usize, l: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | fn init(key: &[u32], counter: u32, nonce: &[u32]) -> Block { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | fn block(key: &[u32], counter: u32, nonce: &[u32]) -> Block { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 129 | pub fn serialize(state: &[u32]) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 135 | fn encode(key: &[u32], counter: u32, nonce: &[u32], plain_text: &[u8]) -> Vec { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `u128_to_u32_vec` is never used [INFO] [stdout] --> src/cipher/aegis.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn u128_to_u32_vec(value: u128) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Aegis` is never constructed [INFO] [stdout] --> src/cipher/aegis.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | struct Aegis{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `aes_round` is never used [INFO] [stdout] --> src/cipher/aegis.rs:27:6 [INFO] [stdout] | [INFO] [stdout] 27 | fn aes_round(state: u128,key : u128)->u128{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `state_update128` is never used [INFO] [stdout] --> src/cipher/aegis.rs:55:4 [INFO] [stdout] | [INFO] [stdout] 55 | fn state_update128(state : Vec, message : u128) -> Vec{ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/cipher/aegis.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 67 | impl Aegis{ [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 68 | // Fibonacci数列 mod 256の32バイト定数 [INFO] [stdout] 69 | const FIBONACCI_CONSTANT: [u8; 32] = [ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | fn new() -> Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | fn init(&mut self,key : u128) -> Vec{ [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 125 | fn enc(&mut self,plane : Vec)->Vec{ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 155 | fn with_ad(&mut self) -> Vec{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 167 | fn finalize(&mut self) ->u128{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 192 | fn dec(&mut self,cipher : Vec)-> (Vec,u128){ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/cipher/chacha.rs:162:30 [INFO] [stdout] | [INFO] [stdout] 162 | let mut chunk = chunk.clone().to_vec(); [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] [stdout] warning: unused import: `std::mem` [INFO] [stdout] --> src/domain/value_object/aes_gf.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::mem; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `aesGF` should have an upper camel case name [INFO] [stdout] --> src/domain/value_object/aes_gf.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct aesGF{ [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case: `AesGf` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::aes_type` [INFO] [stdout] --> src/domain/value_object/blocks.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use super::aes_type; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::default` [INFO] [stdout] --> src/domain/value_object/aes_type.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::default; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Add` [INFO] [stdout] --> src/cipher/aes.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::Add; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `blocks` [INFO] [stdout] --> src/cipher/aes.rs:3:45 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::domain::value_object::{aes_type, blocks}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `aes_type::*` [INFO] [stdout] --> src/cipher/aes.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use aes_type::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::*` [INFO] [stdout] --> src/cipher/blake.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::hash` [INFO] [stdout] --> src/cipher/blake.rs:203:7 [INFO] [stdout] | [INFO] [stdout] 203 | use core::hash; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ChaChaRng` and `rand_core::SeedableRng` [INFO] [stdout] --> src/cipher/chacha.rs:178:21 [INFO] [stdout] | [INFO] [stdout] 178 | use rand_chacha::{rand_core::SeedableRng, ChaCha20Rng, ChaChaRng}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ops::Index` [INFO] [stdout] --> src/cipher/aegis.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{io::Read, ops::Index}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cipher/blake.rs:336:9 [INFO] [stdout] | [INFO] [stdout] 336 | let mut m: Vec = "test".as_bytes().to_vec(); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/cipher/chacha.rs:119:9 [INFO] [stdout] | [INFO] [stdout] 119 | for i in 0..10 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/cipher/aegis.rs:3:18 [INFO] [stdout] | [INFO] [stdout] 3 | use super::aes::{self, add_round_key, mix_column, shift_row, sub_bytes, Key, AES}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/cipher/aegis.rs:172:21 [INFO] [stdout] | [INFO] [stdout] 172 | let msglen_be = (messagelen as u128); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 172 - let msglen_be = (messagelen as u128); [INFO] [stdout] 172 + let msglen_be = messagelen as u128; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::cipher` [INFO] [stdout] --> src/cipher/aegis.rs:216:7 [INFO] [stdout] | [INFO] [stdout] 216 | use crate::cipher; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `domain::value_object::aes_gf::aesGF` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use domain::value_object::aes_gf::aesGF; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `domain::value_object::aes_type` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use domain::value_object::aes_type; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cipher::*` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use cipher::*; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::domain::value_object` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::domain::value_object; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::domain::value_object::aes_type::*` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::domain::value_object::aes_type::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `be_to_u32` [INFO] [stdout] --> src/cipher/chacha.rs:136:9 [INFO] [stdout] | [INFO] [stdout] 136 | let be_to_u32 = |x: &[u8]| { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_be_to_u32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `le_to_u32` [INFO] [stdout] --> src/cipher/chacha.rs:145:9 [INFO] [stdout] | [INFO] [stdout] 145 | let le_to_u32 = |x: &[u8]| { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_le_to_u32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cipher/chacha.rs:153:9 [INFO] [stdout] | [INFO] [stdout] 153 | let mut encrypt_message = plain_text [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `be_to_u32` [INFO] [stdout] --> src/cipher/chacha.rs:261:9 [INFO] [stdout] | [INFO] [stdout] 261 | let be_to_u32 = |x: &[u8]| { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_be_to_u32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `be_to_u32` [INFO] [stdout] --> src/cipher/chacha.rs:416:9 [INFO] [stdout] | [INFO] [stdout] 416 | let be_to_u32 = |x: &[u8]| { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_be_to_u32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/cipher/chacha.rs:455:13 [INFO] [stdout] | [INFO] [stdout] 455 | .map(|x| ans.gen::()) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/cipher/aegis.rs:108:9 [INFO] [stdout] | [INFO] [stdout] 108 | for i in 0..5 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/cipher/aegis.rs:183:9 [INFO] [stdout] | [INFO] [stdout] 183 | for i in 0..=6{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `plane_text` [INFO] [stdout] --> src/cipher/aegis.rs:233:9 [INFO] [stdout] | [INFO] [stdout] 233 | let plane_text :u128 = 0; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_plane_text` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ad` [INFO] [stdout] --> src/cipher/aegis.rs:360:13 [INFO] [stdout] | [INFO] [stdout] 360 | let mut ad :Vec = vec![u128::from_str_radix("00010203",16).unwrap()]; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ad` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cipher/aegis.rs:357:9 [INFO] [stdout] | [INFO] [stdout] 357 | let mut plane_text :Vec = vec![ [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cipher/aegis.rs:360:9 [INFO] [stdout] | [INFO] [stdout] 360 | let mut ad :Vec = vec![u128::from_str_radix("00010203",16).unwrap()]; [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ad` [INFO] [stdout] --> src/cipher/aegis.rs:422:13 [INFO] [stdout] | [INFO] [stdout] 422 | let mut ad :Vec = vec![ [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ad` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cipher/aegis.rs:418:9 [INFO] [stdout] | [INFO] [stdout] 418 | let mut plane_text :Vec = vec![ [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cipher/aegis.rs:422:9 [INFO] [stdout] | [INFO] [stdout] 422 | let mut ad :Vec = vec![ [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/domain/value_object/aes_gf.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 48 | for i in 0..253 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `mode` is never read [INFO] [stdout] --> src/cipher/aes.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Key{ [INFO] [stdout] | --- field in this struct [INFO] [stdout] ... [INFO] [stdout] 12 | mode : aes_type::Mode [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Key` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Block` is never used [INFO] [stdout] --> src/cipher/aes.rs:20:6 [INFO] [stdout] | [INFO] [stdout] 20 | type Block = u8; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Word` is never used [INFO] [stdout] --> src/cipher/aes.rs:21:6 [INFO] [stdout] | [INFO] [stdout] 21 | type Word = [Block;4]; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `State` is never constructed [INFO] [stdout] --> src/cipher/aes.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | struct State{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `CommonKeyRayer` is never used [INFO] [stdout] --> src/cipher/aes.rs:26:18 [INFO] [stdout] | [INFO] [stdout] 26 | pub(crate) trait CommonKeyRayer{ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `inv_sbox` is never read [INFO] [stdout] --> src/cipher/aes.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct AES{ [INFO] [stdout] | --- field in this struct [INFO] [stdout] 32 | sbox : [u8;256], [INFO] [stdout] 33 | inv_sbox:[u8;256] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AES` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `h` is never read [INFO] [stdout] --> src/cipher/blake.rs:5:3 [INFO] [stdout] | [INFO] [stdout] 4 | struct Blake2 { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 5 | h: [u64; 8], [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `Blake2` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `state` is never read [INFO] [stdout] --> src/cipher/chacha.rs:4:3 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct ChaCha { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 4 | state: Block, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ChaCha` 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 `new` is never used [INFO] [stdout] --> src/cipher/chacha.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 7 | impl ChaCha { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 8 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `u128_to_u32_vec` is never used [INFO] [stdout] --> src/cipher/aegis.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn u128_to_u32_vec(value: u128) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/cipher/aegis.rs:81:6 [INFO] [stdout] | [INFO] [stdout] 67 | impl Aegis{ [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 81 | fn new() -> Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/cipher/chacha.rs:162:30 [INFO] [stdout] | [INFO] [stdout] 162 | let mut chunk = chunk.clone().to_vec(); [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] [stdout] warning: unused import: `io::Read` [INFO] [stdout] --> src/cipher/aegis.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{io::Read, ops::Index}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/domain/value_object/aes_gf.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 48 | for i in 0..253 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cipher/aes.rs:63:17 [INFO] [stdout] | [INFO] [stdout] 63 | let mut vec_u8 = x.to_be_bytes(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nk` [INFO] [stdout] --> src/cipher/aes.rs:106:14 [INFO] [stdout] | [INFO] [stdout] 106 | let (nk,nr) = key.bit_type.nk_nr(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_nk` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nk` [INFO] [stdout] --> src/cipher/aes.rs:133:14 [INFO] [stdout] | [INFO] [stdout] 133 | let (nk,nr) = key.bit_type.nk_nr(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_nk` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cipher/aes.rs:202:9 [INFO] [stdout] | [INFO] [stdout] 202 | for mut item in ret.iter_mut(){ [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `inverse` [INFO] [stdout] --> src/cipher/aes.rs:234:53 [INFO] [stdout] | [INFO] [stdout] 234 | pub fn add_round_key(blocks: Vec,key : Vec,inverse : bool)->Vec{ [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_inverse` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/cipher/aes.rs:251:9 [INFO] [stdout] | [INFO] [stdout] 251 | for i in 0..value{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/cipher/blake.rs:36:11 [INFO] [stdout] | [INFO] [stdout] 36 | for i in 0..diff { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cipher/blake.rs:336:9 [INFO] [stdout] | [INFO] [stdout] 336 | let mut m: Vec = "test".as_bytes().to_vec(); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/cipher/chacha.rs:119:9 [INFO] [stdout] | [INFO] [stdout] 119 | for i in 0..10 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `be_to_u32` [INFO] [stdout] --> src/cipher/chacha.rs:136:9 [INFO] [stdout] | [INFO] [stdout] 136 | let be_to_u32 = |x: &[u8]| { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_be_to_u32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `le_to_u32` [INFO] [stdout] --> src/cipher/chacha.rs:145:9 [INFO] [stdout] | [INFO] [stdout] 145 | let le_to_u32 = |x: &[u8]| { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_le_to_u32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cipher/chacha.rs:153:9 [INFO] [stdout] | [INFO] [stdout] 153 | let mut encrypt_message = plain_text [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `be_to_u32` [INFO] [stdout] --> src/cipher/chacha.rs:261:9 [INFO] [stdout] | [INFO] [stdout] 261 | let be_to_u32 = |x: &[u8]| { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_be_to_u32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `be_to_u32` [INFO] [stdout] --> src/cipher/chacha.rs:416:9 [INFO] [stdout] | [INFO] [stdout] 416 | let be_to_u32 = |x: &[u8]| { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_be_to_u32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/cipher/chacha.rs:455:13 [INFO] [stdout] | [INFO] [stdout] 455 | .map(|x| ans.gen::()) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/cipher/aegis.rs:108:9 [INFO] [stdout] | [INFO] [stdout] 108 | for i in 0..5 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/cipher/aegis.rs:183:9 [INFO] [stdout] | [INFO] [stdout] 183 | for i in 0..=6{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `plane_text` [INFO] [stdout] --> src/cipher/aegis.rs:233:9 [INFO] [stdout] | [INFO] [stdout] 233 | let plane_text :u128 = 0; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_plane_text` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ad` [INFO] [stdout] --> src/cipher/aegis.rs:360:13 [INFO] [stdout] | [INFO] [stdout] 360 | let mut ad :Vec = vec![u128::from_str_radix("00010203",16).unwrap()]; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ad` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cipher/aegis.rs:357:9 [INFO] [stdout] | [INFO] [stdout] 357 | let mut plane_text :Vec = vec![ [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cipher/aegis.rs:360:9 [INFO] [stdout] | [INFO] [stdout] 360 | let mut ad :Vec = vec![u128::from_str_radix("00010203",16).unwrap()]; [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ad` [INFO] [stdout] --> src/cipher/aegis.rs:422:13 [INFO] [stdout] | [INFO] [stdout] 422 | let mut ad :Vec = vec![ [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ad` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cipher/aegis.rs:418:9 [INFO] [stdout] | [INFO] [stdout] 418 | let mut plane_text :Vec = vec![ [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cipher/aegis.rs:422:9 [INFO] [stdout] | [INFO] [stdout] 422 | let mut ad :Vec = vec![ [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Cbc` is never constructed [INFO] [stdout] --> src/domain/value_object/aes_type.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 23 | pub enum Mode{ [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 26 | Cbc(Vec) [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Mode` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `mode` is never read [INFO] [stdout] --> src/cipher/aes.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Key{ [INFO] [stdout] | --- field in this struct [INFO] [stdout] ... [INFO] [stdout] 12 | mode : aes_type::Mode [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Key` 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: type alias `Block` is never used [INFO] [stdout] --> src/cipher/aes.rs:20:6 [INFO] [stdout] | [INFO] [stdout] 20 | type Block = u8; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Word` is never used [INFO] [stdout] --> src/cipher/aes.rs:21:6 [INFO] [stdout] | [INFO] [stdout] 21 | type Word = [Block;4]; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `State` is never constructed [INFO] [stdout] --> src/cipher/aes.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | struct State{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `CommonKeyRayer` is never used [INFO] [stdout] --> src/cipher/aes.rs:26:18 [INFO] [stdout] | [INFO] [stdout] 26 | pub(crate) trait CommonKeyRayer{ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `inv_sbox` is never read [INFO] [stdout] --> src/cipher/aes.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct AES{ [INFO] [stdout] | --- field in this struct [INFO] [stdout] 32 | sbox : [u8;256], [INFO] [stdout] 33 | inv_sbox:[u8;256] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AES` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `padding_pkcs_7` is never used [INFO] [stdout] --> src/cipher/aes.rs:247:8 [INFO] [stdout] | [INFO] [stdout] 247 | pub fn padding_pkcs_7(input : Vec)->Vec{ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `h` is never read [INFO] [stdout] --> src/cipher/blake.rs:5:3 [INFO] [stdout] | [INFO] [stdout] 4 | struct Blake2 { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 5 | h: [u64; 8], [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `Blake2` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `state` is never read [INFO] [stdout] --> src/cipher/chacha.rs:4:3 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct ChaCha { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 4 | state: Block, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ChaCha` 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 `new` is never used [INFO] [stdout] --> src/cipher/chacha.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 7 | impl ChaCha { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 8 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `u128_to_u32_vec` is never used [INFO] [stdout] --> src/cipher/aegis.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn u128_to_u32_vec(value: u128) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/cipher/aegis.rs:81:6 [INFO] [stdout] | [INFO] [stdout] 67 | impl Aegis{ [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 81 | fn new() -> Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/cipher/chacha.rs:162:30 [INFO] [stdout] | [INFO] [stdout] 162 | let mut chunk = chunk.clone().to_vec(); [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.64s [INFO] running `Command { std: "docker" "inspect" "963652b069240fc0de87a11000bccbb83e2c976b5b1f8b7957f31874f0e53b79", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "963652b069240fc0de87a11000bccbb83e2c976b5b1f8b7957f31874f0e53b79", kill_on_drop: false }` [INFO] [stdout] 963652b069240fc0de87a11000bccbb83e2c976b5b1f8b7957f31874f0e53b79