[INFO] cloning repository https://github.com/kyunghyunHan/cryptography [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kyunghyunHan/cryptography" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FkyunghyunHan%2Fcryptography", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FkyunghyunHan%2Fcryptography'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0b41f6c04c9ed50e3699d59a67bb4f43b0ff7142 [INFO] checking kyunghyunHan/cryptography against master#85c39893a761fe4c050523278da4e7e45ab42b6e for pr-134688-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FkyunghyunHan%2Fcryptography" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/kyunghyunHan/cryptography on toolchain 85c39893a761fe4c050523278da4e7e45ab42b6e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+85c39893a761fe4c050523278da4e7e45ab42b6e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/kyunghyunHan/cryptography [INFO] finished tweaking git repo https://github.com/kyunghyunHan/cryptography [INFO] tweaked toml for git repo https://github.com/kyunghyunHan/cryptography written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/kyunghyunHan/cryptography 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" "+85c39893a761fe4c050523278da4e7e45ab42b6e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded cpufeatures v0.2.9 [INFO] [stderr] Downloaded libc v0.2.149 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+85c39893a761fe4c050523278da4e7e45ab42b6e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bb31fe0f71f62f92fa307ce0c9079cabd9262f4bdbb5d73b93e0cee53122e124 [INFO] running `Command { std: "docker" "start" "-a" "bb31fe0f71f62f92fa307ce0c9079cabd9262f4bdbb5d73b93e0cee53122e124", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bb31fe0f71f62f92fa307ce0c9079cabd9262f4bdbb5d73b93e0cee53122e124", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bb31fe0f71f62f92fa307ce0c9079cabd9262f4bdbb5d73b93e0cee53122e124", kill_on_drop: false }` [INFO] [stdout] bb31fe0f71f62f92fa307ce0c9079cabd9262f4bdbb5d73b93e0cee53122e124 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+85c39893a761fe4c050523278da4e7e45ab42b6e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0b804f65ccf8cfd82d16d418217b0bd9c3ecf96731b532caaa065112b60258e8 [INFO] running `Command { std: "docker" "start" "-a" "0b804f65ccf8cfd82d16d418217b0bd9c3ecf96731b532caaa065112b60258e8", kill_on_drop: false }` [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Checking subtle v2.5.0 [INFO] [stderr] Checking cpufeatures v0.2.9 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking sha2 v0.10.8 [INFO] [stderr] Checking cryptography v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/part1/extended_eucild.rs:52:7 [INFO] [stdout] | [INFO] [stdout] 52 | let mut inverse= extended_eucild(100,23); [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: `i` [INFO] [stdout] --> src/part2/transposition_ciphher.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | for i in size..block_num * BLOCK_SIZE { [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: unused variable: `plain_text` [INFO] [stdout] --> src/part3/des.rs:16:19 [INFO] [stdout] | [INFO] [stdout] 16 | fn des_encryption(plain_text: &mut [u8], result: &mut [u8], key: &mut [u8]) {} [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_plain_text` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/part3/des.rs:16:42 [INFO] [stdout] | [INFO] [stdout] 16 | fn des_encryption(plain_text: &mut [u8], result: &mut [u8], key: &mut [u8]) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/part3/des.rs:16:61 [INFO] [stdout] | [INFO] [stdout] 16 | fn des_encryption(plain_text: &mut [u8], result: &mut [u8], key: &mut [u8]) {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cipher_text` [INFO] [stdout] --> src/part3/des.rs:18:19 [INFO] [stdout] | [INFO] [stdout] 18 | fn des_decryption(cipher_text: &mut [u8], result: &mut [u8], key: &mut [u8]){} [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cipher_text` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/part3/des.rs:18:43 [INFO] [stdout] | [INFO] [stdout] 18 | fn des_decryption(cipher_text: &mut [u8], result: &mut [u8], key: &mut [u8]){} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/part3/des.rs:18:62 [INFO] [stdout] | [INFO] [stdout] 18 | fn des_decryption(cipher_text: &mut [u8], result: &mut [u8], key: &mut [u8]){} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/part3/des.rs:20:24 [INFO] [stdout] | [INFO] [stdout] 20 | fn initial_permutation(input:&mut [u8],output: &mut [u8]){} [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `output` [INFO] [stdout] --> src/part3/des.rs:20:40 [INFO] [stdout] | [INFO] [stdout] 20 | fn initial_permutation(input:&mut [u8],output: &mut [u8]){} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_output` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/part3/des.rs:22:32 [INFO] [stdout] | [INFO] [stdout] 22 | fn inverse_initial_permutation(input:&mut [u8],output: &mut [u8]){} [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `output` [INFO] [stdout] --> src/part3/des.rs:22:48 [INFO] [stdout] | [INFO] [stdout] 22 | fn inverse_initial_permutation(input:&mut [u8],output: &mut [u8]){} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_output` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/part3/des.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let mut mask = 0x80000000u32; // 1000 0000 0000 0000 0000 0000 0000 0000 [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/part3/des.rs:35:16 [INFO] [stdout] | [INFO] [stdout] 35 | fn permutation(input:u32){} [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/part3/des.rs:37:22 [INFO] [stdout] | [INFO] [stdout] 37 | fn permuted_choice_1(input:&mut [u8],output: &mut [u8]){} [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `output` [INFO] [stdout] --> src/part3/des.rs:37:38 [INFO] [stdout] | [INFO] [stdout] 37 | fn permuted_choice_1(input:&mut [u8],output: &mut [u8]){} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_output` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/part3/des.rs:39:22 [INFO] [stdout] | [INFO] [stdout] 39 | fn permuted_choice_2(c:u32,d:u32,output:&mut [u8]){} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d` [INFO] [stdout] --> src/part3/des.rs:39:28 [INFO] [stdout] | [INFO] [stdout] 39 | fn permuted_choice_2(c:u32,d:u32,output:&mut [u8]){} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `output` [INFO] [stdout] --> src/part3/des.rs:39:34 [INFO] [stdout] | [INFO] [stdout] 39 | fn permuted_choice_2(c:u32,d:u32,output:&mut [u8]){} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_output` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/part3/des.rs:41:19 [INFO] [stdout] | [INFO] [stdout] 41 | fn s_box_transfer(input:&mut [u8]){} [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/part3/des.rs:43:6 [INFO] [stdout] | [INFO] [stdout] 43 | fn f(r:u32,rkey:&mut[u8]){} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rkey` [INFO] [stdout] --> src/part3/des.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | fn f(r:u32,rkey:&mut[u8]){} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_rkey` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/part3/des.rs:45:18 [INFO] [stdout] | [INFO] [stdout] 45 | fn key_expansion(key: &mut [u8], exp_key: &mut [[u8; 6]; 16]) {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `exp_key` [INFO] [stdout] --> src/part3/des.rs:45:34 [INFO] [stdout] | [INFO] [stdout] 45 | fn key_expansion(key: &mut [u8], exp_key: &mut [[u8; 6]; 16]) {} [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_exp_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/part3/des.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | fn swap(x:u32,y: u32){} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/part3/des.rs:48:15 [INFO] [stdout] | [INFO] [stdout] 48 | fn swap(x:u32,y: u32){} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/part3/des.rs:53:16 [INFO] [stdout] | [INFO] [stdout] 53 | fn make_bit_28(c:u32,d:u32,data :&mut [u8]){} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d` [INFO] [stdout] --> src/part3/des.rs:53:22 [INFO] [stdout] | [INFO] [stdout] 53 | fn make_bit_28(c:u32,d:u32,data :&mut [u8]){} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/part3/des.rs:53:28 [INFO] [stdout] | [INFO] [stdout] 53 | fn make_bit_28(c:u32,d:u32,data :&mut [u8]){} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/part3/des.rs:58:19 [INFO] [stdout] | [INFO] [stdout] 58 | fn circular_shift(n:u32,r:i32){} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/part3/des.rs:58:25 [INFO] [stdout] | [INFO] [stdout] 58 | fn circular_shift(n:u32,r:i32){} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/part3/des.rs:61:17 [INFO] [stdout] | [INFO] [stdout] 61 | fn byte_to_word(input :&mut[u8],x:u32,y:u32){} [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/part3/des.rs:61:33 [INFO] [stdout] | [INFO] [stdout] 61 | fn byte_to_word(input :&mut[u8],x:u32,y:u32){} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/part3/des.rs:61:39 [INFO] [stdout] | [INFO] [stdout] 61 | fn byte_to_word(input :&mut[u8],x:u32,y:u32){} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `l` [INFO] [stdout] --> src/part3/des.rs:65:17 [INFO] [stdout] | [INFO] [stdout] 65 | fn word_to_byte(l:u32,r:u32,out:&mut [u8]){ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_l` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/part3/des.rs:65:23 [INFO] [stdout] | [INFO] [stdout] 65 | fn word_to_byte(l:u32,r:u32,out:&mut [u8]){ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `out` [INFO] [stdout] --> src/part3/des.rs:65:29 [INFO] [stdout] | [INFO] [stdout] 65 | fn word_to_byte(l:u32,r:u32,out:&mut [u8]){ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_out` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `initial_permutation_table` [INFO] [stdout] --> src/part3/des.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | let initial_permutation_table:[i32;64]= [58, 50, 42, 34, 26, 18, 10, 2, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_initial_permutation_table` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `inverse_initial_permutation_table` [INFO] [stdout] --> src/part3/des.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 84 | let inverse_initial_permutation_table:[i32;64]= [ 40, 8, 48, 16, 56, 24, 64, 32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_inverse_initial_permutation_table` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p_box_table` [INFO] [stdout] --> src/part3/des.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 105 | let p_box_table:[i32;32]= [ [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_p_box_table` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pc1_table` [INFO] [stdout] --> src/part3/des.rs:117:9 [INFO] [stdout] | [INFO] [stdout] 117 | let pc1_table:[i32;56]= [57, 49, 41, 33, 25, 17, 9, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pc1_table` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pc2_table` [INFO] [stdout] --> src/part3/des.rs:128:9 [INFO] [stdout] | [INFO] [stdout] 128 | let pc2_table:[i32;48]= [14, 17, 11, 24, 1, 5, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pc2_table` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s_box_table` [INFO] [stdout] --> src/part3/des.rs:138:9 [INFO] [stdout] | [INFO] [stdout] 138 | let s_box_table: [[[u8; 16]; 4]; 8] = [ [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_s_box_table` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/part3/des.rs:193:9 [INFO] [stdout] | [INFO] [stdout] 193 | let i:i32; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg_len` [INFO] [stdout] --> src/part3/des.rs:194:9 [INFO] [stdout] | [INFO] [stdout] 194 | let msg_len= 0;//메세지 길이수 [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_msg_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block_count` [INFO] [stdout] --> src/part3/des.rs:195:9 [INFO] [stdout] | [INFO] [stdout] 195 | let block_count= 0;//블록수 [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_block_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/part2/caesar_cipher.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BLOCK_SIZE` is never used [INFO] [stdout] --> src/part2/transposition_ciphher.rs:3:7 [INFO] [stdout] | [INFO] [stdout] 3 | const BLOCK_SIZE: usize = 6; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/part2/transposition_ciphher.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/part2/vigenere_cipher.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BLOCK_SIZE` is never used [INFO] [stdout] --> src/part3/des.rs:2:7 [INFO] [stdout] | [INFO] [stdout] 2 | const BLOCK_SIZE:u32= 8;//DES 블록사이즈 [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DES_ROUND` is never used [INFO] [stdout] --> src/part3/des.rs:3:7 [INFO] [stdout] | [INFO] [stdout] 3 | const DES_ROUND:u32= 16;//DES 라운드 수 [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `expansion_permutation_table` is never used [INFO] [stdout] --> src/part3/des.rs:5:7 [INFO] [stdout] | [INFO] [stdout] 5 | const expansion_permutation_table:[i32;48]= [ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `des_encryption` is never used [INFO] [stdout] --> src/part3/des.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn des_encryption(plain_text: &mut [u8], result: &mut [u8], key: &mut [u8]) {} [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `des_decryption` is never used [INFO] [stdout] --> src/part3/des.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn des_decryption(cipher_text: &mut [u8], result: &mut [u8], key: &mut [u8]){} [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `initial_permutation` is never used [INFO] [stdout] --> src/part3/des.rs:20:4 [INFO] [stdout] | [INFO] [stdout] 20 | fn initial_permutation(input:&mut [u8],output: &mut [u8]){} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `inverse_initial_permutation` is never used [INFO] [stdout] --> src/part3/des.rs:22:4 [INFO] [stdout] | [INFO] [stdout] 22 | fn inverse_initial_permutation(input:&mut [u8],output: &mut [u8]){} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `expand_permutation` is never used [INFO] [stdout] --> src/part3/des.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn expand_permutation(r: u32, out: &mut [u8; 6]) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `permutation` is never used [INFO] [stdout] --> src/part3/des.rs:35:4 [INFO] [stdout] | [INFO] [stdout] 35 | fn permutation(input:u32){} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `permuted_choice_1` is never used [INFO] [stdout] --> src/part3/des.rs:37:4 [INFO] [stdout] | [INFO] [stdout] 37 | fn permuted_choice_1(input:&mut [u8],output: &mut [u8]){} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `permuted_choice_2` is never used [INFO] [stdout] --> src/part3/des.rs:39:4 [INFO] [stdout] | [INFO] [stdout] 39 | fn permuted_choice_2(c:u32,d:u32,output:&mut [u8]){} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `s_box_transfer` is never used [INFO] [stdout] --> src/part3/des.rs:41:4 [INFO] [stdout] | [INFO] [stdout] 41 | fn s_box_transfer(input:&mut [u8]){} [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `f` is never used [INFO] [stdout] --> src/part3/des.rs:43:4 [INFO] [stdout] | [INFO] [stdout] 43 | fn f(r:u32,rkey:&mut[u8]){} [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `key_expansion` is never used [INFO] [stdout] --> src/part3/des.rs:45:4 [INFO] [stdout] | [INFO] [stdout] 45 | fn key_expansion(key: &mut [u8], exp_key: &mut [[u8; 6]; 16]) {} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `swap` is never used [INFO] [stdout] --> src/part3/des.rs:48:4 [INFO] [stdout] | [INFO] [stdout] 48 | fn swap(x:u32,y: u32){} [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `make_bit_28` is never used [INFO] [stdout] --> src/part3/des.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn make_bit_28(c:u32,d:u32,data :&mut [u8]){} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `circular_shift` is never used [INFO] [stdout] --> src/part3/des.rs:58:4 [INFO] [stdout] | [INFO] [stdout] 58 | fn circular_shift(n:u32,r:i32){} [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `byte_to_word` is never used [INFO] [stdout] --> src/part3/des.rs:61:4 [INFO] [stdout] | [INFO] [stdout] 61 | fn byte_to_word(input :&mut[u8],x:u32,y:u32){} [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `word_to_byte` is never used [INFO] [stdout] --> src/part3/des.rs:65:4 [INFO] [stdout] | [INFO] [stdout] 65 | fn word_to_byte(l:u32,r:u32,out:&mut [u8]){ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/part3/des.rs:73:8 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn main(){ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/part2/vigenere_cipher.rs:75:20 [INFO] [stdout] | [INFO] [stdout] 75 | if decrypted_val < 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/part2/vigenere_cipher.rs:86:20 [INFO] [stdout] | [INFO] [stdout] 86 | if decrypted_val < 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `expansion_permutation_table` should have an upper case name [INFO] [stdout] --> src/part3/des.rs:5:7 [INFO] [stdout] | [INFO] [stdout] 5 | const expansion_permutation_table:[i32;48]= [ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `EXPANSION_PERMUTATION_TABLE` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/part1/extended_eucild.rs:52:7 [INFO] [stdout] | [INFO] [stdout] 52 | let mut inverse= extended_eucild(100,23); [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: `i` [INFO] [stdout] --> src/part2/transposition_ciphher.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | for i in size..block_num * BLOCK_SIZE { [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: unused variable: `plain_text` [INFO] [stdout] --> src/part3/des.rs:16:19 [INFO] [stdout] | [INFO] [stdout] 16 | fn des_encryption(plain_text: &mut [u8], result: &mut [u8], key: &mut [u8]) {} [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_plain_text` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/part3/des.rs:16:42 [INFO] [stdout] | [INFO] [stdout] 16 | fn des_encryption(plain_text: &mut [u8], result: &mut [u8], key: &mut [u8]) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/part3/des.rs:16:61 [INFO] [stdout] | [INFO] [stdout] 16 | fn des_encryption(plain_text: &mut [u8], result: &mut [u8], key: &mut [u8]) {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cipher_text` [INFO] [stdout] --> src/part3/des.rs:18:19 [INFO] [stdout] | [INFO] [stdout] 18 | fn des_decryption(cipher_text: &mut [u8], result: &mut [u8], key: &mut [u8]){} [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cipher_text` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/part3/des.rs:18:43 [INFO] [stdout] | [INFO] [stdout] 18 | fn des_decryption(cipher_text: &mut [u8], result: &mut [u8], key: &mut [u8]){} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/part3/des.rs:18:62 [INFO] [stdout] | [INFO] [stdout] 18 | fn des_decryption(cipher_text: &mut [u8], result: &mut [u8], key: &mut [u8]){} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/part3/des.rs:20:24 [INFO] [stdout] | [INFO] [stdout] 20 | fn initial_permutation(input:&mut [u8],output: &mut [u8]){} [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `output` [INFO] [stdout] --> src/part3/des.rs:20:40 [INFO] [stdout] | [INFO] [stdout] 20 | fn initial_permutation(input:&mut [u8],output: &mut [u8]){} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_output` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/part3/des.rs:22:32 [INFO] [stdout] | [INFO] [stdout] 22 | fn inverse_initial_permutation(input:&mut [u8],output: &mut [u8]){} [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `output` [INFO] [stdout] --> src/part3/des.rs:22:48 [INFO] [stdout] | [INFO] [stdout] 22 | fn inverse_initial_permutation(input:&mut [u8],output: &mut [u8]){} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_output` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/part3/des.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let mut mask = 0x80000000u32; // 1000 0000 0000 0000 0000 0000 0000 0000 [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/part3/des.rs:35:16 [INFO] [stdout] | [INFO] [stdout] 35 | fn permutation(input:u32){} [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/part3/des.rs:37:22 [INFO] [stdout] | [INFO] [stdout] 37 | fn permuted_choice_1(input:&mut [u8],output: &mut [u8]){} [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `output` [INFO] [stdout] --> src/part3/des.rs:37:38 [INFO] [stdout] | [INFO] [stdout] 37 | fn permuted_choice_1(input:&mut [u8],output: &mut [u8]){} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_output` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/part3/des.rs:39:22 [INFO] [stdout] | [INFO] [stdout] 39 | fn permuted_choice_2(c:u32,d:u32,output:&mut [u8]){} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d` [INFO] [stdout] --> src/part3/des.rs:39:28 [INFO] [stdout] | [INFO] [stdout] 39 | fn permuted_choice_2(c:u32,d:u32,output:&mut [u8]){} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `output` [INFO] [stdout] --> src/part3/des.rs:39:34 [INFO] [stdout] | [INFO] [stdout] 39 | fn permuted_choice_2(c:u32,d:u32,output:&mut [u8]){} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_output` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/part3/des.rs:41:19 [INFO] [stdout] | [INFO] [stdout] 41 | fn s_box_transfer(input:&mut [u8]){} [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/part3/des.rs:43:6 [INFO] [stdout] | [INFO] [stdout] 43 | fn f(r:u32,rkey:&mut[u8]){} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rkey` [INFO] [stdout] --> src/part3/des.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | fn f(r:u32,rkey:&mut[u8]){} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_rkey` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/part3/des.rs:45:18 [INFO] [stdout] | [INFO] [stdout] 45 | fn key_expansion(key: &mut [u8], exp_key: &mut [[u8; 6]; 16]) {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `exp_key` [INFO] [stdout] --> src/part3/des.rs:45:34 [INFO] [stdout] | [INFO] [stdout] 45 | fn key_expansion(key: &mut [u8], exp_key: &mut [[u8; 6]; 16]) {} [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_exp_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/part3/des.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | fn swap(x:u32,y: u32){} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/part3/des.rs:48:15 [INFO] [stdout] | [INFO] [stdout] 48 | fn swap(x:u32,y: u32){} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/part3/des.rs:53:16 [INFO] [stdout] | [INFO] [stdout] 53 | fn make_bit_28(c:u32,d:u32,data :&mut [u8]){} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d` [INFO] [stdout] --> src/part3/des.rs:53:22 [INFO] [stdout] | [INFO] [stdout] 53 | fn make_bit_28(c:u32,d:u32,data :&mut [u8]){} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/part3/des.rs:53:28 [INFO] [stdout] | [INFO] [stdout] 53 | fn make_bit_28(c:u32,d:u32,data :&mut [u8]){} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/part3/des.rs:58:19 [INFO] [stdout] | [INFO] [stdout] 58 | fn circular_shift(n:u32,r:i32){} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/part3/des.rs:58:25 [INFO] [stdout] | [INFO] [stdout] 58 | fn circular_shift(n:u32,r:i32){} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/part3/des.rs:61:17 [INFO] [stdout] | [INFO] [stdout] 61 | fn byte_to_word(input :&mut[u8],x:u32,y:u32){} [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/part3/des.rs:61:33 [INFO] [stdout] | [INFO] [stdout] 61 | fn byte_to_word(input :&mut[u8],x:u32,y:u32){} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/part3/des.rs:61:39 [INFO] [stdout] | [INFO] [stdout] 61 | fn byte_to_word(input :&mut[u8],x:u32,y:u32){} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `l` [INFO] [stdout] --> src/part3/des.rs:65:17 [INFO] [stdout] | [INFO] [stdout] 65 | fn word_to_byte(l:u32,r:u32,out:&mut [u8]){ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_l` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/part3/des.rs:65:23 [INFO] [stdout] | [INFO] [stdout] 65 | fn word_to_byte(l:u32,r:u32,out:&mut [u8]){ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `out` [INFO] [stdout] --> src/part3/des.rs:65:29 [INFO] [stdout] | [INFO] [stdout] 65 | fn word_to_byte(l:u32,r:u32,out:&mut [u8]){ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_out` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `initial_permutation_table` [INFO] [stdout] --> src/part3/des.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | let initial_permutation_table:[i32;64]= [58, 50, 42, 34, 26, 18, 10, 2, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_initial_permutation_table` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `inverse_initial_permutation_table` [INFO] [stdout] --> src/part3/des.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 84 | let inverse_initial_permutation_table:[i32;64]= [ 40, 8, 48, 16, 56, 24, 64, 32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_inverse_initial_permutation_table` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p_box_table` [INFO] [stdout] --> src/part3/des.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 105 | let p_box_table:[i32;32]= [ [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_p_box_table` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pc1_table` [INFO] [stdout] --> src/part3/des.rs:117:9 [INFO] [stdout] | [INFO] [stdout] 117 | let pc1_table:[i32;56]= [57, 49, 41, 33, 25, 17, 9, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pc1_table` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pc2_table` [INFO] [stdout] --> src/part3/des.rs:128:9 [INFO] [stdout] | [INFO] [stdout] 128 | let pc2_table:[i32;48]= [14, 17, 11, 24, 1, 5, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pc2_table` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s_box_table` [INFO] [stdout] --> src/part3/des.rs:138:9 [INFO] [stdout] | [INFO] [stdout] 138 | let s_box_table: [[[u8; 16]; 4]; 8] = [ [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_s_box_table` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/part3/des.rs:193:9 [INFO] [stdout] | [INFO] [stdout] 193 | let i:i32; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg_len` [INFO] [stdout] --> src/part3/des.rs:194:9 [INFO] [stdout] | [INFO] [stdout] 194 | let msg_len= 0;//메세지 길이수 [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_msg_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block_count` [INFO] [stdout] --> src/part3/des.rs:195:9 [INFO] [stdout] | [INFO] [stdout] 195 | let block_count= 0;//블록수 [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_block_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/part2/caesar_cipher.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BLOCK_SIZE` is never used [INFO] [stdout] --> src/part2/transposition_ciphher.rs:3:7 [INFO] [stdout] | [INFO] [stdout] 3 | const BLOCK_SIZE: usize = 6; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/part2/transposition_ciphher.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/part2/vigenere_cipher.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BLOCK_SIZE` is never used [INFO] [stdout] --> src/part3/des.rs:2:7 [INFO] [stdout] | [INFO] [stdout] 2 | const BLOCK_SIZE:u32= 8;//DES 블록사이즈 [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DES_ROUND` is never used [INFO] [stdout] --> src/part3/des.rs:3:7 [INFO] [stdout] | [INFO] [stdout] 3 | const DES_ROUND:u32= 16;//DES 라운드 수 [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `expansion_permutation_table` is never used [INFO] [stdout] --> src/part3/des.rs:5:7 [INFO] [stdout] | [INFO] [stdout] 5 | const expansion_permutation_table:[i32;48]= [ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `des_encryption` is never used [INFO] [stdout] --> src/part3/des.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn des_encryption(plain_text: &mut [u8], result: &mut [u8], key: &mut [u8]) {} [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `des_decryption` is never used [INFO] [stdout] --> src/part3/des.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn des_decryption(cipher_text: &mut [u8], result: &mut [u8], key: &mut [u8]){} [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `initial_permutation` is never used [INFO] [stdout] --> src/part3/des.rs:20:4 [INFO] [stdout] | [INFO] [stdout] 20 | fn initial_permutation(input:&mut [u8],output: &mut [u8]){} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `inverse_initial_permutation` is never used [INFO] [stdout] --> src/part3/des.rs:22:4 [INFO] [stdout] | [INFO] [stdout] 22 | fn inverse_initial_permutation(input:&mut [u8],output: &mut [u8]){} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `expand_permutation` is never used [INFO] [stdout] --> src/part3/des.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn expand_permutation(r: u32, out: &mut [u8; 6]) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `permutation` is never used [INFO] [stdout] --> src/part3/des.rs:35:4 [INFO] [stdout] | [INFO] [stdout] 35 | fn permutation(input:u32){} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `permuted_choice_1` is never used [INFO] [stdout] --> src/part3/des.rs:37:4 [INFO] [stdout] | [INFO] [stdout] 37 | fn permuted_choice_1(input:&mut [u8],output: &mut [u8]){} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `permuted_choice_2` is never used [INFO] [stdout] --> src/part3/des.rs:39:4 [INFO] [stdout] | [INFO] [stdout] 39 | fn permuted_choice_2(c:u32,d:u32,output:&mut [u8]){} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `s_box_transfer` is never used [INFO] [stdout] --> src/part3/des.rs:41:4 [INFO] [stdout] | [INFO] [stdout] 41 | fn s_box_transfer(input:&mut [u8]){} [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `f` is never used [INFO] [stdout] --> src/part3/des.rs:43:4 [INFO] [stdout] | [INFO] [stdout] 43 | fn f(r:u32,rkey:&mut[u8]){} [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `key_expansion` is never used [INFO] [stdout] --> src/part3/des.rs:45:4 [INFO] [stdout] | [INFO] [stdout] 45 | fn key_expansion(key: &mut [u8], exp_key: &mut [[u8; 6]; 16]) {} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `swap` is never used [INFO] [stdout] --> src/part3/des.rs:48:4 [INFO] [stdout] | [INFO] [stdout] 48 | fn swap(x:u32,y: u32){} [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `make_bit_28` is never used [INFO] [stdout] --> src/part3/des.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn make_bit_28(c:u32,d:u32,data :&mut [u8]){} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `circular_shift` is never used [INFO] [stdout] --> src/part3/des.rs:58:4 [INFO] [stdout] | [INFO] [stdout] 58 | fn circular_shift(n:u32,r:i32){} [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `byte_to_word` is never used [INFO] [stdout] --> src/part3/des.rs:61:4 [INFO] [stdout] | [INFO] [stdout] 61 | fn byte_to_word(input :&mut[u8],x:u32,y:u32){} [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `word_to_byte` is never used [INFO] [stdout] --> src/part3/des.rs:65:4 [INFO] [stdout] | [INFO] [stdout] 65 | fn word_to_byte(l:u32,r:u32,out:&mut [u8]){ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/part3/des.rs:73:8 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn main(){ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/part2/vigenere_cipher.rs:75:20 [INFO] [stdout] | [INFO] [stdout] 75 | if decrypted_val < 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/part2/vigenere_cipher.rs:86:20 [INFO] [stdout] | [INFO] [stdout] 86 | if decrypted_val < 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `expansion_permutation_table` should have an upper case name [INFO] [stdout] --> src/part3/des.rs:5:7 [INFO] [stdout] | [INFO] [stdout] 5 | const expansion_permutation_table:[i32;48]= [ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `EXPANSION_PERMUTATION_TABLE` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.56s [INFO] running `Command { std: "docker" "inspect" "0b804f65ccf8cfd82d16d418217b0bd9c3ecf96731b532caaa065112b60258e8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0b804f65ccf8cfd82d16d418217b0bd9c3ecf96731b532caaa065112b60258e8", kill_on_drop: false }` [INFO] [stdout] 0b804f65ccf8cfd82d16d418217b0bd9c3ecf96731b532caaa065112b60258e8