[INFO] cloning repository https://github.com/reeceyang/cryptography
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/reeceyang/cryptography" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Freeceyang%2Fcryptography", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Freeceyang%2Fcryptography'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] b6ea6482857d6be5b14cc0991016a062549ac0d9
[INFO] checking reeceyang/cryptography against try#b28cc4eb48a6415b914e8ad0308be255ff8d73ed for pr-156508
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Freeceyang%2Fcryptography" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/reeceyang/cryptography
[INFO] finished tweaking git repo https://github.com/reeceyang/cryptography
[INFO] tweaked toml for git repo https://github.com/reeceyang/cryptography written to /workspace/builds/worker-3-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/reeceyang/cryptography on toolchain b28cc4eb48a6415b914e8ad0308be255ff8d73ed
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b28cc4eb48a6415b914e8ad0308be255ff8d73ed" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/reeceyang/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" "+b28cc4eb48a6415b914e8ad0308be255ff8d73ed" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+b28cc4eb48a6415b914e8ad0308be255ff8d73ed" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] ae23d20517faf521d3f4ac013d65b77c8a5bd0cf531303b882421b6561a6e2cf
[INFO] running `Command { std: "docker" "start" "-a" "ae23d20517faf521d3f4ac013d65b77c8a5bd0cf531303b882421b6561a6e2cf", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "ae23d20517faf521d3f4ac013d65b77c8a5bd0cf531303b882421b6561a6e2cf", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "ae23d20517faf521d3f4ac013d65b77c8a5bd0cf531303b882421b6561a6e2cf", kill_on_drop: false }`
[INFO] [stdout] ae23d20517faf521d3f4ac013d65b77c8a5bd0cf531303b882421b6561a6e2cf
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+b28cc4eb48a6415b914e8ad0308be255ff8d73ed" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] a3537fec90ab157464238d49a7983f51b37eb41903d4da782c0e7671024ba56f
[INFO] running `Command { std: "docker" "start" "-a" "a3537fec90ab157464238d49a7983f51b37eb41903d4da782c0e7671024ba56f", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.66
[INFO] [stderr]    Compiling rug v1.7.0
[INFO] [stderr]     Checking az v0.3.0
[INFO] [stderr]     Checking getrandom v0.1.14
[INFO] [stderr]     Checking rand_core v0.5.1
[INFO] [stderr]    Compiling dirs-sys v0.3.4
[INFO] [stderr]     Checking rand_chacha v0.2.1
[INFO] [stderr]    Compiling dirs v2.0.2
[INFO] [stderr]     Checking rand v0.7.3
[INFO] [stderr]    Compiling gmp-mpfr-sys v1.2.0
[INFO] [stderr]     Checking cryptography v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `rug::Integer`
[INFO] [stdout]   --> src/main.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout] 10 | use rug::Integer;
[INFO] [stdout]    |     ^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::env`
[INFO] [stdout]   --> src/main.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | use std::env;
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::fs`
[INFO] [stdout]   --> src/main.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout] 12 | use std::fs;
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::io`
[INFO] [stdout]   --> src/main.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout] 13 | use std::io;
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `rug::Integer`
[INFO] [stdout]   --> src/main.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout] 10 | use rug::Integer;
[INFO] [stdout]    |     ^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::env`
[INFO] [stdout]   --> src/main.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | use std::env;
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::fs`
[INFO] [stdout]   --> src/main.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout] 12 | use std::fs;
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::io`
[INFO] [stdout]   --> src/main.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout] 13 | use std::io;
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `seed` is never read
[INFO] [stdout]   --> src/primality.rs:70:24
[INFO] [stdout]    |
[INFO] [stdout] 70 |         let mut seed = Integer::new();
[INFO] [stdout]    |                        ^^^^^^^^^^^^^^ this value is reassigned later and never used
[INFO] [stdout] 71 |         match SystemTime::now().duration_since(SystemTime::UNIX_EPOCH) {
[INFO] [stdout] 72 |             Ok(n) => seed = Integer::from(n.as_micros()),
[INFO] [stdout]    |                      ---- `seed` is overwritten here before the previous value is read
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `q`
[INFO] [stdout]   --> src/elliptic_curves.rs:27:29
[INFO] [stdout]    |
[INFO] [stdout] 27 | pub fn is_quadratic_residue(q: &Integer, p: &Integer) -> bool {
[INFO] [stdout]    |                             ^ help: if this is intentional, prefix it with an underscore: `_q`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `p`
[INFO] [stdout]   --> src/elliptic_curves.rs:27:42
[INFO] [stdout]    |
[INFO] [stdout] 27 | pub fn is_quadratic_residue(q: &Integer, p: &Integer) -> bool {
[INFO] [stdout]    |                                          ^ help: if this is intentional, prefix it with an underscore: `_p`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `x`
[INFO] [stdout]   --> src/elliptic_curves.rs:43:30
[INFO] [stdout]    |
[INFO] [stdout] 43 |     pub fn get_points(&self, x: &Integer) -> Vec<Point> {
[INFO] [stdout]    |                              ^ help: if this is intentional, prefix it with an underscore: `_x`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Zp` is never constructed
[INFO] [stdout]  --> src/zp.rs:5:12
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub struct Zp {
[INFO] [stdout]   |            ^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `add`, `subtract`, `multiply`, `native_inverse`, `inverse`, and `power` are never used
[INFO] [stdout]   --> src/zp.rs:12:12
[INFO] [stdout]    |
[INFO] [stdout] 11 | impl Zp {
[INFO] [stdout]    | ------- methods in this implementation
[INFO] [stdout] 12 |     pub fn add(&self, a: &Zp) -> Zp {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 18 |     pub fn subtract(&self, a: &Zp) -> Zp {
[INFO] [stdout]    |            ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 24 |     pub fn multiply(&self, a: &Zp) -> Zp {
[INFO] [stdout]    |            ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 31 |     pub fn native_inverse(&self) -> Zp {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 39 |     pub fn inverse(&self) -> Zp {
[INFO] [stdout]    |            ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 45 |     pub fn power(&self, mut A: Integer) -> Zp {
[INFO] [stdout]    |            ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `gcd` is never used
[INFO] [stdout]   --> src/zp.rs:72:8
[INFO] [stdout]    |
[INFO] [stdout] 72 | pub fn gcd(a: &Integer, b: &Integer) -> Integer {
[INFO] [stdout]    |        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `power` is never used
[INFO] [stdout]   --> src/zp.rs:88:8
[INFO] [stdout]    |
[INFO] [stdout] 88 | pub fn power(n: &Integer, A1: &Integer, p: &Integer) -> Integer {
[INFO] [stdout]    |        ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `generate_public_key` is never used
[INFO] [stdout]  --> src/elgamal.rs:5:8
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub fn generate_public_key(p: &Integer, g: &Integer, a: &Integer) -> Integer {
[INFO] [stdout]   |        ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `encrypt` is never used
[INFO] [stdout]  --> src/elgamal.rs:9:8
[INFO] [stdout]   |
[INFO] [stdout] 9 | pub fn encrypt(m: &Integer, k: &Integer, A: &Integer, p: &Integer, g: &Integer) -> (Integer, Integer) {
[INFO] [stdout]   |        ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `decrypt` is never used
[INFO] [stdout]   --> src/elgamal.rs:15:8
[INFO] [stdout]    |
[INFO] [stdout] 15 | pub fn decrypt(c1: &Integer, c2: &Integer, a: &Integer, p: &Integer) -> Integer {
[INFO] [stdout]    |        ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `is_prime` is never used
[INFO] [stdout]  --> src/primality.rs:7:8
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub fn is_prime(n: &Integer) -> bool {
[INFO] [stdout]   |        ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `miller_rabin` is never used
[INFO] [stdout]   --> src/primality.rs:19:8
[INFO] [stdout]    |
[INFO] [stdout] 19 | pub fn miller_rabin(n: &Integer, a1: &Integer) -> bool {
[INFO] [stdout]    |        ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `find_k` is never used
[INFO] [stdout]   --> src/primality.rs:47:8
[INFO] [stdout]    |
[INFO] [stdout] 47 | pub fn find_k(n: &Integer) -> (Integer, Integer) {
[INFO] [stdout]    |        ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `generate_candidate_witness` is never used
[INFO] [stdout]   --> src/primality.rs:59:4
[INFO] [stdout]    |
[INFO] [stdout] 59 | fn generate_candidate_witness() -> Integer {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `generate_random_prime` is never used
[INFO] [stdout]   --> src/primality.rs:66:8
[INFO] [stdout]    |
[INFO] [stdout] 66 | pub fn generate_random_prime(n: &usize) -> Integer {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `to_binary_string` is never used
[INFO] [stdout]  --> src/encoding.rs:4:8
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub fn to_binary_string(n: &Integer) -> String {
[INFO] [stdout]   |        ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `to_decimal` is never used
[INFO] [stdout]  --> src/encoding.rs:9:8
[INFO] [stdout]   |
[INFO] [stdout] 9 | pub fn to_decimal(n: &String) -> Integer {
[INFO] [stdout]   |        ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `block_convert` is never used
[INFO] [stdout]   --> src/encoding.rs:19:8
[INFO] [stdout]    |
[INFO] [stdout] 19 | pub fn block_convert(decimal_array_in: &Vec<Integer>, block_size_1: u32, block_size_2: u32) -> Vec<Integer> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `test_elliptic_curves` is never used
[INFO] [stdout]   --> src/tests.rs:30:8
[INFO] [stdout]    |
[INFO] [stdout] 30 | pub fn test_elliptic_curves() {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `test_rsa` is never used
[INFO] [stdout]   --> src/tests.rs:42:8
[INFO] [stdout]    |
[INFO] [stdout] 42 | pub fn test_rsa() {
[INFO] [stdout]    |        ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `test_primality` is never used
[INFO] [stdout]   --> src/tests.rs:55:8
[INFO] [stdout]    |
[INFO] [stdout] 55 | pub fn test_primality() -> Result<(), Error> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `test_encoding` is never used
[INFO] [stdout]   --> src/tests.rs:77:8
[INFO] [stdout]    |
[INFO] [stdout] 77 | pub fn test_encoding() {
[INFO] [stdout]    |        ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `test_elgamal` is never used
[INFO] [stdout]    --> src/tests.rs:107:4
[INFO] [stdout]     |
[INFO] [stdout] 107 | fn test_elgamal() {
[INFO] [stdout]     |    ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `generate_random_p_q` is never used
[INFO] [stdout]  --> src/rsa.rs:6:8
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub fn generate_random_p_q() -> (Integer, Integer) {
[INFO] [stdout]   |        ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `generate_public_key` is never used
[INFO] [stdout]   --> src/rsa.rs:10:8
[INFO] [stdout]    |
[INFO] [stdout] 10 | pub fn generate_public_key(p: &Integer, q: &Integer) ->  (Integer, Integer) {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `encrypt` is never used
[INFO] [stdout]   --> src/rsa.rs:20:8
[INFO] [stdout]    |
[INFO] [stdout] 20 | pub fn encrypt(m: &Integer, N: &Integer, e: &Integer) -> Integer {
[INFO] [stdout]    |        ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `decrypt` is never used
[INFO] [stdout]   --> src/rsa.rs:24:8
[INFO] [stdout]    |
[INFO] [stdout] 24 | pub fn decrypt(c: &Integer, e: &Integer, p: &Integer, q: &Integer, N: &Integer) -> Integer {
[INFO] [stdout]    |        ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `b` is never read
[INFO] [stdout]   --> src/elliptic_curves.rs:22:9
[INFO] [stdout]    |
[INFO] [stdout] 19 | pub struct EllipticCurve {
[INFO] [stdout]    |            ------------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 22 |     pub b: Integer,
[INFO] [stdout]    |         ^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `EllipticCurve` 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 `is_quadratic_residue` is never used
[INFO] [stdout]   --> src/elliptic_curves.rs:27:8
[INFO] [stdout]    |
[INFO] [stdout] 27 | pub fn is_quadratic_residue(q: &Integer, p: &Integer) -> bool {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `contains_point` and `get_points` are never used
[INFO] [stdout]   --> src/elliptic_curves.rs:33:12
[INFO] [stdout]    |
[INFO] [stdout] 31 | impl EllipticCurve {
[INFO] [stdout]    | ------------------ methods in this implementation
[INFO] [stdout] 32 |     // Checks if the point q is in this elliptic curve
[INFO] [stdout] 33 |     pub fn contains_point(&self, q: &Point) -> bool {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 43 |     pub fn get_points(&self, x: &Integer) -> Vec<Point> {
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `A` should have a snake case name
[INFO] [stdout]   --> src/zp.rs:45:29
[INFO] [stdout]    |
[INFO] [stdout] 45 |     pub fn power(&self, mut A: Integer) -> Zp {
[INFO] [stdout]    |                             ^ help: convert the identifier to snake case: `a`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `A1` should have a snake case name
[INFO] [stdout]   --> src/zp.rs:88:27
[INFO] [stdout]    |
[INFO] [stdout] 88 | pub fn power(n: &Integer, A1: &Integer, p: &Integer) -> Integer {
[INFO] [stdout]    |                           ^^ help: convert the identifier to snake case: `a1`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `A` should have a snake case name
[INFO] [stdout]   --> src/zp.rs:90:13
[INFO] [stdout]    |
[INFO] [stdout] 90 |     let mut A = A1.clone();
[INFO] [stdout]    |             ^ help: convert the identifier to snake case: `a`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `A` should have a snake case name
[INFO] [stdout]  --> src/elgamal.rs:9:42
[INFO] [stdout]   |
[INFO] [stdout] 9 | pub fn encrypt(m: &Integer, k: &Integer, A: &Integer, p: &Integer, g: &Integer) -> (Integer, Integer) {
[INFO] [stdout]   |                                          ^ help: convert the identifier to snake case: `a`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `P` should have a snake case name
[INFO] [stdout]   --> src/tests.rs:15:9
[INFO] [stdout]    |
[INFO] [stdout] 15 |     let P = elliptic_curves::Point {x: Integer::from(9), y: Integer::from(7)};
[INFO] [stdout]    |         ^ help: convert the identifier to snake case: `p`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `nA` should have a snake case name
[INFO] [stdout]   --> src/tests.rs:17:9
[INFO] [stdout]    |
[INFO] [stdout] 17 |     let nA = Integer::from(5);
[INFO] [stdout]    |         ^^ help: convert the identifier to snake case: `n_a`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `Qa` should have a snake case name
[INFO] [stdout]   --> src/tests.rs:20:9
[INFO] [stdout]    |
[INFO] [stdout] 20 |     let Qa = elel.generate_public_key(&nA);
[INFO] [stdout]    |         ^^ help: convert the identifier to snake case: `qa`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `M` should have a snake case name
[INFO] [stdout]   --> src/tests.rs:23:9
[INFO] [stdout]    |
[INFO] [stdout] 23 |     let M = elliptic_curves::Point {x: Integer::from(1), y: Integer::from(8)};
[INFO] [stdout]    |         ^ help: convert the identifier to snake case: `m`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `N` should have a snake case name
[INFO] [stdout]   --> src/tests.rs:46:10
[INFO] [stdout]    |
[INFO] [stdout] 46 |     let (N, e) = rsa::generate_public_key(&p, &q);
[INFO] [stdout]    |          ^ help: convert the identifier to snake case: `n`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `N` should have a snake case name
[INFO] [stdout]   --> src/rsa.rs:12:9
[INFO] [stdout]    |
[INFO] [stdout] 12 |     let N = Integer::from(p * q);
[INFO] [stdout]    |         ^ help: convert the identifier to snake case: `n`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `N` should have a snake case name
[INFO] [stdout]   --> src/rsa.rs:20:29
[INFO] [stdout]    |
[INFO] [stdout] 20 | pub fn encrypt(m: &Integer, N: &Integer, e: &Integer) -> Integer {
[INFO] [stdout]    |                             ^ help: convert the identifier to snake case: `n`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `N` should have a snake case name
[INFO] [stdout]   --> src/rsa.rs:24:68
[INFO] [stdout]    |
[INFO] [stdout] 24 | pub fn decrypt(c: &Integer, e: &Integer, p: &Integer, q: &Integer, N: &Integer) -> Integer {
[INFO] [stdout]    |                                                                    ^ help: convert the identifier to snake case: `n`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `E` should have a snake case name
[INFO] [stdout]   --> src/elliptic_curves.rs:49:34
[INFO] [stdout]    |
[INFO] [stdout] 49 | pub fn add(a: &Point, b: &Point, E: &EllipticCurve) -> Point {
[INFO] [stdout]    |                                  ^ help: convert the identifier to snake case: `e`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `E` should have a snake case name
[INFO] [stdout]   --> src/elliptic_curves.rs:82:41
[INFO] [stdout]    |
[INFO] [stdout] 82 | pub fn multiply(a: &Point, n: &Integer, E: &EllipticCurve) -> Point {
[INFO] [stdout]    |                                         ^ help: convert the identifier to snake case: `e`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `E` should have a snake case name
[INFO] [stdout]  --> src/elliptic_elgamal.rs:7:9
[INFO] [stdout]   |
[INFO] [stdout] 7 |     pub E: EllipticCurve,
[INFO] [stdout]   |         ^ help: convert the identifier to snake case: `e`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `P` should have a snake case name
[INFO] [stdout]  --> src/elliptic_elgamal.rs:8:9
[INFO] [stdout]   |
[INFO] [stdout] 8 |     pub P: Point
[INFO] [stdout]   |         ^ help: convert the identifier to snake case: `p`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `nA` should have a snake case name
[INFO] [stdout]   --> src/elliptic_elgamal.rs:12:39
[INFO] [stdout]    |
[INFO] [stdout] 12 |     pub fn generate_public_key(&self, nA: &Integer) -> Point {
[INFO] [stdout]    |                                       ^^ help: convert the identifier to snake case: `n_a`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `M` should have a snake case name
[INFO] [stdout]   --> src/elliptic_elgamal.rs:16:27
[INFO] [stdout]    |
[INFO] [stdout] 16 |     pub fn encrypt(&self, M: &Point, k: &Integer, Qa: &Point) -> (Point, Point) {
[INFO] [stdout]    |                           ^ help: convert the identifier to snake case: `m`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `Qa` should have a snake case name
[INFO] [stdout]   --> src/elliptic_elgamal.rs:16:51
[INFO] [stdout]    |
[INFO] [stdout] 16 |     pub fn encrypt(&self, M: &Point, k: &Integer, Qa: &Point) -> (Point, Point) {
[INFO] [stdout]    |                                                   ^^ help: convert the identifier to snake case: `qa`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `nA` should have a snake case name
[INFO] [stdout]   --> src/elliptic_elgamal.rs:22:51
[INFO] [stdout]    |
[INFO] [stdout] 22 |     pub fn decrypt(&self, c1: &Point, c2: &Point, nA: &Integer) -> Point {
[INFO] [stdout]    |                                                   ^^ help: convert the identifier to snake case: `n_a`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `seed` is never read
[INFO] [stdout]   --> src/primality.rs:70:24
[INFO] [stdout]    |
[INFO] [stdout] 70 |         let mut seed = Integer::new();
[INFO] [stdout]    |                        ^^^^^^^^^^^^^^ this value is reassigned later and never used
[INFO] [stdout] 71 |         match SystemTime::now().duration_since(SystemTime::UNIX_EPOCH) {
[INFO] [stdout] 72 |             Ok(n) => seed = Integer::from(n.as_micros()),
[INFO] [stdout]    |                      ---- `seed` is overwritten here before the previous value is read
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `q`
[INFO] [stdout]   --> src/elliptic_curves.rs:27:29
[INFO] [stdout]    |
[INFO] [stdout] 27 | pub fn is_quadratic_residue(q: &Integer, p: &Integer) -> bool {
[INFO] [stdout]    |                             ^ help: if this is intentional, prefix it with an underscore: `_q`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `p`
[INFO] [stdout]   --> src/elliptic_curves.rs:27:42
[INFO] [stdout]    |
[INFO] [stdout] 27 | pub fn is_quadratic_residue(q: &Integer, p: &Integer) -> bool {
[INFO] [stdout]    |                                          ^ help: if this is intentional, prefix it with an underscore: `_p`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `x`
[INFO] [stdout]   --> src/elliptic_curves.rs:43:30
[INFO] [stdout]    |
[INFO] [stdout] 43 |     pub fn get_points(&self, x: &Integer) -> Vec<Point> {
[INFO] [stdout]    |                              ^ help: if this is intentional, prefix it with an underscore: `_x`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Zp` is never constructed
[INFO] [stdout]  --> src/zp.rs:5:12
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub struct Zp {
[INFO] [stdout]   |            ^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `add`, `subtract`, `multiply`, `native_inverse`, `inverse`, and `power` are never used
[INFO] [stdout]   --> src/zp.rs:12:12
[INFO] [stdout]    |
[INFO] [stdout] 11 | impl Zp {
[INFO] [stdout]    | ------- methods in this implementation
[INFO] [stdout] 12 |     pub fn add(&self, a: &Zp) -> Zp {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 18 |     pub fn subtract(&self, a: &Zp) -> Zp {
[INFO] [stdout]    |            ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 24 |     pub fn multiply(&self, a: &Zp) -> Zp {
[INFO] [stdout]    |            ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 31 |     pub fn native_inverse(&self) -> Zp {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 39 |     pub fn inverse(&self) -> Zp {
[INFO] [stdout]    |            ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 45 |     pub fn power(&self, mut A: Integer) -> Zp {
[INFO] [stdout]    |            ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `gcd` is never used
[INFO] [stdout]   --> src/zp.rs:72:8
[INFO] [stdout]    |
[INFO] [stdout] 72 | pub fn gcd(a: &Integer, b: &Integer) -> Integer {
[INFO] [stdout]    |        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `power` is never used
[INFO] [stdout]   --> src/zp.rs:88:8
[INFO] [stdout]    |
[INFO] [stdout] 88 | pub fn power(n: &Integer, A1: &Integer, p: &Integer) -> Integer {
[INFO] [stdout]    |        ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `generate_public_key` is never used
[INFO] [stdout]  --> src/elgamal.rs:5:8
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub fn generate_public_key(p: &Integer, g: &Integer, a: &Integer) -> Integer {
[INFO] [stdout]   |        ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `encrypt` is never used
[INFO] [stdout]  --> src/elgamal.rs:9:8
[INFO] [stdout]   |
[INFO] [stdout] 9 | pub fn encrypt(m: &Integer, k: &Integer, A: &Integer, p: &Integer, g: &Integer) -> (Integer, Integer) {
[INFO] [stdout]   |        ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `decrypt` is never used
[INFO] [stdout]   --> src/elgamal.rs:15:8
[INFO] [stdout]    |
[INFO] [stdout] 15 | pub fn decrypt(c1: &Integer, c2: &Integer, a: &Integer, p: &Integer) -> Integer {
[INFO] [stdout]    |        ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `is_prime` is never used
[INFO] [stdout]  --> src/primality.rs:7:8
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub fn is_prime(n: &Integer) -> bool {
[INFO] [stdout]   |        ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `miller_rabin` is never used
[INFO] [stdout]   --> src/primality.rs:19:8
[INFO] [stdout]    |
[INFO] [stdout] 19 | pub fn miller_rabin(n: &Integer, a1: &Integer) -> bool {
[INFO] [stdout]    |        ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `find_k` is never used
[INFO] [stdout]   --> src/primality.rs:47:8
[INFO] [stdout]    |
[INFO] [stdout] 47 | pub fn find_k(n: &Integer) -> (Integer, Integer) {
[INFO] [stdout]    |        ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `generate_candidate_witness` is never used
[INFO] [stdout]   --> src/primality.rs:59:4
[INFO] [stdout]    |
[INFO] [stdout] 59 | fn generate_candidate_witness() -> Integer {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `generate_random_prime` is never used
[INFO] [stdout]   --> src/primality.rs:66:8
[INFO] [stdout]    |
[INFO] [stdout] 66 | pub fn generate_random_prime(n: &usize) -> Integer {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `to_binary_string` is never used
[INFO] [stdout]  --> src/encoding.rs:4:8
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub fn to_binary_string(n: &Integer) -> String {
[INFO] [stdout]   |        ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `to_decimal` is never used
[INFO] [stdout]  --> src/encoding.rs:9:8
[INFO] [stdout]   |
[INFO] [stdout] 9 | pub fn to_decimal(n: &String) -> Integer {
[INFO] [stdout]   |        ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `block_convert` is never used
[INFO] [stdout]   --> src/encoding.rs:19:8
[INFO] [stdout]    |
[INFO] [stdout] 19 | pub fn block_convert(decimal_array_in: &Vec<Integer>, block_size_1: u32, block_size_2: u32) -> Vec<Integer> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `test_elliptic_curves` is never used
[INFO] [stdout]   --> src/tests.rs:30:8
[INFO] [stdout]    |
[INFO] [stdout] 30 | pub fn test_elliptic_curves() {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `test_rsa` is never used
[INFO] [stdout]   --> src/tests.rs:42:8
[INFO] [stdout]    |
[INFO] [stdout] 42 | pub fn test_rsa() {
[INFO] [stdout]    |        ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `test_primality` is never used
[INFO] [stdout]   --> src/tests.rs:55:8
[INFO] [stdout]    |
[INFO] [stdout] 55 | pub fn test_primality() -> Result<(), Error> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `test_encoding` is never used
[INFO] [stdout]   --> src/tests.rs:77:8
[INFO] [stdout]    |
[INFO] [stdout] 77 | pub fn test_encoding() {
[INFO] [stdout]    |        ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `test_elgamal` is never used
[INFO] [stdout]    --> src/tests.rs:107:4
[INFO] [stdout]     |
[INFO] [stdout] 107 | fn test_elgamal() {
[INFO] [stdout]     |    ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `generate_random_p_q` is never used
[INFO] [stdout]  --> src/rsa.rs:6:8
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub fn generate_random_p_q() -> (Integer, Integer) {
[INFO] [stdout]   |        ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `generate_public_key` is never used
[INFO] [stdout]   --> src/rsa.rs:10:8
[INFO] [stdout]    |
[INFO] [stdout] 10 | pub fn generate_public_key(p: &Integer, q: &Integer) ->  (Integer, Integer) {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `encrypt` is never used
[INFO] [stdout]   --> src/rsa.rs:20:8
[INFO] [stdout]    |
[INFO] [stdout] 20 | pub fn encrypt(m: &Integer, N: &Integer, e: &Integer) -> Integer {
[INFO] [stdout]    |        ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `decrypt` is never used
[INFO] [stdout]   --> src/rsa.rs:24:8
[INFO] [stdout]    |
[INFO] [stdout] 24 | pub fn decrypt(c: &Integer, e: &Integer, p: &Integer, q: &Integer, N: &Integer) -> Integer {
[INFO] [stdout]    |        ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `b` is never read
[INFO] [stdout]   --> src/elliptic_curves.rs:22:9
[INFO] [stdout]    |
[INFO] [stdout] 19 | pub struct EllipticCurve {
[INFO] [stdout]    |            ------------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 22 |     pub b: Integer,
[INFO] [stdout]    |         ^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `EllipticCurve` 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 `is_quadratic_residue` is never used
[INFO] [stdout]   --> src/elliptic_curves.rs:27:8
[INFO] [stdout]    |
[INFO] [stdout] 27 | pub fn is_quadratic_residue(q: &Integer, p: &Integer) -> bool {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `contains_point` and `get_points` are never used
[INFO] [stdout]   --> src/elliptic_curves.rs:33:12
[INFO] [stdout]    |
[INFO] [stdout] 31 | impl EllipticCurve {
[INFO] [stdout]    | ------------------ methods in this implementation
[INFO] [stdout] 32 |     // Checks if the point q is in this elliptic curve
[INFO] [stdout] 33 |     pub fn contains_point(&self, q: &Point) -> bool {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 43 |     pub fn get_points(&self, x: &Integer) -> Vec<Point> {
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `A` should have a snake case name
[INFO] [stdout]   --> src/zp.rs:45:29
[INFO] [stdout]    |
[INFO] [stdout] 45 |     pub fn power(&self, mut A: Integer) -> Zp {
[INFO] [stdout]    |                             ^ help: convert the identifier to snake case: `a`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `A1` should have a snake case name
[INFO] [stdout]   --> src/zp.rs:88:27
[INFO] [stdout]    |
[INFO] [stdout] 88 | pub fn power(n: &Integer, A1: &Integer, p: &Integer) -> Integer {
[INFO] [stdout]    |                           ^^ help: convert the identifier to snake case: `a1`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `A` should have a snake case name
[INFO] [stdout]   --> src/zp.rs:90:13
[INFO] [stdout]    |
[INFO] [stdout] 90 |     let mut A = A1.clone();
[INFO] [stdout]    |             ^ help: convert the identifier to snake case: `a`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `A` should have a snake case name
[INFO] [stdout]  --> src/elgamal.rs:9:42
[INFO] [stdout]   |
[INFO] [stdout] 9 | pub fn encrypt(m: &Integer, k: &Integer, A: &Integer, p: &Integer, g: &Integer) -> (Integer, Integer) {
[INFO] [stdout]   |                                          ^ help: convert the identifier to snake case: `a`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `P` should have a snake case name
[INFO] [stdout]   --> src/tests.rs:15:9
[INFO] [stdout]    |
[INFO] [stdout] 15 |     let P = elliptic_curves::Point {x: Integer::from(9), y: Integer::from(7)};
[INFO] [stdout]    |         ^ help: convert the identifier to snake case: `p`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `nA` should have a snake case name
[INFO] [stdout]   --> src/tests.rs:17:9
[INFO] [stdout]    |
[INFO] [stdout] 17 |     let nA = Integer::from(5);
[INFO] [stdout]    |         ^^ help: convert the identifier to snake case: `n_a`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `Qa` should have a snake case name
[INFO] [stdout]   --> src/tests.rs:20:9
[INFO] [stdout]    |
[INFO] [stdout] 20 |     let Qa = elel.generate_public_key(&nA);
[INFO] [stdout]    |         ^^ help: convert the identifier to snake case: `qa`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `M` should have a snake case name
[INFO] [stdout]   --> src/tests.rs:23:9
[INFO] [stdout]    |
[INFO] [stdout] 23 |     let M = elliptic_curves::Point {x: Integer::from(1), y: Integer::from(8)};
[INFO] [stdout]    |         ^ help: convert the identifier to snake case: `m`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `N` should have a snake case name
[INFO] [stdout]   --> src/tests.rs:46:10
[INFO] [stdout]    |
[INFO] [stdout] 46 |     let (N, e) = rsa::generate_public_key(&p, &q);
[INFO] [stdout]    |          ^ help: convert the identifier to snake case: `n`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `N` should have a snake case name
[INFO] [stdout]   --> src/rsa.rs:12:9
[INFO] [stdout]    |
[INFO] [stdout] 12 |     let N = Integer::from(p * q);
[INFO] [stdout]    |         ^ help: convert the identifier to snake case: `n`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `N` should have a snake case name
[INFO] [stdout]   --> src/rsa.rs:20:29
[INFO] [stdout]    |
[INFO] [stdout] 20 | pub fn encrypt(m: &Integer, N: &Integer, e: &Integer) -> Integer {
[INFO] [stdout]    |                             ^ help: convert the identifier to snake case: `n`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `N` should have a snake case name
[INFO] [stdout]   --> src/rsa.rs:24:68
[INFO] [stdout]    |
[INFO] [stdout] 24 | pub fn decrypt(c: &Integer, e: &Integer, p: &Integer, q: &Integer, N: &Integer) -> Integer {
[INFO] [stdout]    |                                                                    ^ help: convert the identifier to snake case: `n`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `E` should have a snake case name
[INFO] [stdout]   --> src/elliptic_curves.rs:49:34
[INFO] [stdout]    |
[INFO] [stdout] 49 | pub fn add(a: &Point, b: &Point, E: &EllipticCurve) -> Point {
[INFO] [stdout]    |                                  ^ help: convert the identifier to snake case: `e`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `E` should have a snake case name
[INFO] [stdout]   --> src/elliptic_curves.rs:82:41
[INFO] [stdout]    |
[INFO] [stdout] 82 | pub fn multiply(a: &Point, n: &Integer, E: &EllipticCurve) -> Point {
[INFO] [stdout]    |                                         ^ help: convert the identifier to snake case: `e`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `E` should have a snake case name
[INFO] [stdout]  --> src/elliptic_elgamal.rs:7:9
[INFO] [stdout]   |
[INFO] [stdout] 7 |     pub E: EllipticCurve,
[INFO] [stdout]   |         ^ help: convert the identifier to snake case: `e`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `P` should have a snake case name
[INFO] [stdout]  --> src/elliptic_elgamal.rs:8:9
[INFO] [stdout]   |
[INFO] [stdout] 8 |     pub P: Point
[INFO] [stdout]   |         ^ help: convert the identifier to snake case: `p`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `nA` should have a snake case name
[INFO] [stdout]   --> src/elliptic_elgamal.rs:12:39
[INFO] [stdout]    |
[INFO] [stdout] 12 |     pub fn generate_public_key(&self, nA: &Integer) -> Point {
[INFO] [stdout]    |                                       ^^ help: convert the identifier to snake case: `n_a`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `M` should have a snake case name
[INFO] [stdout]   --> src/elliptic_elgamal.rs:16:27
[INFO] [stdout]    |
[INFO] [stdout] 16 |     pub fn encrypt(&self, M: &Point, k: &Integer, Qa: &Point) -> (Point, Point) {
[INFO] [stdout]    |                           ^ help: convert the identifier to snake case: `m`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `Qa` should have a snake case name
[INFO] [stdout]   --> src/elliptic_elgamal.rs:16:51
[INFO] [stdout]    |
[INFO] [stdout] 16 |     pub fn encrypt(&self, M: &Point, k: &Integer, Qa: &Point) -> (Point, Point) {
[INFO] [stdout]    |                                                   ^^ help: convert the identifier to snake case: `qa`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `nA` should have a snake case name
[INFO] [stdout]   --> src/elliptic_elgamal.rs:22:51
[INFO] [stdout]    |
[INFO] [stdout] 22 |     pub fn decrypt(&self, c1: &Point, c2: &Point, nA: &Integer) -> Point {
[INFO] [stdout]    |                                                   ^^ help: convert the identifier to snake case: `n_a`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 4m 56s
[INFO] running `Command { std: "docker" "inspect" "a3537fec90ab157464238d49a7983f51b37eb41903d4da782c0e7671024ba56f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "a3537fec90ab157464238d49a7983f51b37eb41903d4da782c0e7671024ba56f", kill_on_drop: false }`
[INFO] [stdout] a3537fec90ab157464238d49a7983f51b37eb41903d4da782c0e7671024ba56f
