[INFO] updating cached repository BHouwens/cryptofun [INFO] running `"git" "fetch" "--all"` [INFO] [stdout] Fetching origin [INFO] [stderr] From git://github.com/BHouwens/cryptofun [INFO] [stderr] * branch HEAD -> FETCH_HEAD [INFO] running `"git" "clone" "work/cache/sources/gh/BHouwens/cryptofun" "work/ex/pr-60039-1/sources/master#e305df1846a6d985315917ae0c81b74af8b4e641/gh/BHouwens/cryptofun"` [INFO] [stderr] Cloning into 'work/ex/pr-60039-1/sources/master#e305df1846a6d985315917ae0c81b74af8b4e641/gh/BHouwens/cryptofun'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/BHouwens/cryptofun" "work/ex/pr-60039-1/sources/try#99a7498759a22b5684caf798a98b7e90ad9d2443/gh/BHouwens/cryptofun"` [INFO] [stderr] Cloning into 'work/ex/pr-60039-1/sources/try#99a7498759a22b5684caf798a98b7e90ad9d2443/gh/BHouwens/cryptofun'... [INFO] [stderr] done. [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 54315949c892a3154c65cb05ce636aae67f0406d [INFO] sha for GitHub repo BHouwens/cryptofun: 54315949c892a3154c65cb05ce636aae67f0406d [INFO] validating manifest of BHouwens/cryptofun on toolchain master#e305df1846a6d985315917ae0c81b74af8b4e641 [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+e305df1846a6d985315917ae0c81b74af8b4e641-alt" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] validating manifest of BHouwens/cryptofun on toolchain try#99a7498759a22b5684caf798a98b7e90ad9d2443 [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+99a7498759a22b5684caf798a98b7e90ad9d2443-alt" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started frobbing BHouwens/cryptofun [INFO] finished frobbing BHouwens/cryptofun [INFO] frobbed toml for BHouwens/cryptofun written to work/ex/pr-60039-1/sources/master#e305df1846a6d985315917ae0c81b74af8b4e641/gh/BHouwens/cryptofun/Cargo.toml [INFO] started frobbing BHouwens/cryptofun [INFO] finished frobbing BHouwens/cryptofun [INFO] frobbed toml for BHouwens/cryptofun written to work/ex/pr-60039-1/sources/try#99a7498759a22b5684caf798a98b7e90ad9d2443/gh/BHouwens/cryptofun/Cargo.toml [INFO] crate BHouwens/cryptofun already has a lockfile, it will not be regenerated [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+e305df1846a6d985315917ae0c81b74af8b4e641-alt" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] Updating crates.io index [INFO] [stderr] error: the lock file /mnt/big/crater/work/ex/pr-60039-1/sources/master#e305df1846a6d985315917ae0c81b74af8b4e641/gh/BHouwens/cryptofun/Cargo.lock needs to be updated but --locked was passed to prevent this [INFO] the lockfile is outdated, regenerating it [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+e305df1846a6d985315917ae0c81b74af8b4e641-alt" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+99a7498759a22b5684caf798a98b7e90ad9d2443-alt" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+e305df1846a6d985315917ae0c81b74af8b4e641-alt" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+99a7498759a22b5684caf798a98b7e90ad9d2443-alt" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] checking BHouwens/cryptofun against try#99a7498759a22b5684caf798a98b7e90ad9d2443 for pr-60039-1 [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/pr-60039-1/worker-5/try#99a7498759a22b5684caf798a98b7e90ad9d2443:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/pr-60039-1/sources/try#99a7498759a22b5684caf798a98b7e90ad9d2443/gh/BHouwens/cryptofun:/opt/crater/workdir:ro,Z" "-v" "/mnt/big/crater/work/local/cargo-home:/opt/crater/cargo-home:ro,Z" "-v" "/mnt/big/crater/work/local/rustup-home:/opt/crater/rustup-home:ro,Z" "-e" "USER_ID=1000" "-e" "SOURCE_DIR=/opt/crater/workdir" "-e" "MAP_USER_ID=1000" "-e" "CARGO_TARGET_DIR=/opt/crater/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/crater/cargo-home" "-e" "RUSTUP_HOME=/opt/crater/rustup-home" "-w" "/opt/crater/workdir" "-m" "1536M" "--network" "none" "rustops/crates-build-env" "/opt/crater/cargo-home/bin/cargo" "+99a7498759a22b5684caf798a98b7e90ad9d2443-alt" "check" "--frozen" "--all" "--all-targets"` [INFO] [stdout] 4602fe18308cbefe6254938908be23d4efcccf90dd120880ece974f40ce4cec8 [INFO] running `"docker" "start" "-a" "4602fe18308cbefe6254938908be23d4efcccf90dd120880ece974f40ce4cec8"` [INFO] [stderr] Compiling rustc-cfg v0.2.0 [INFO] [stderr] Checking ieee754 v0.2.6 [INFO] [stderr] Compiling num-bigint v0.1.44 [INFO] [stderr] Checking sha3 v0.7.3 [INFO] [stderr] Compiling ramp v0.5.1 [INFO] [stderr] Checking cryptofun v0.1.0 (/opt/crater/workdir) [INFO] [stderr] error[E0432]: unresolved import `crate::utils::primes` [INFO] [stderr] --> src/key_exchange/diffie_hellman.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use crate::utils::primes; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ no `primes` in `utils` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `utils` [INFO] [stderr] --> src/key_exchange/ecdh.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | use utils::ecc::{ ECPKeypair }; [INFO] [stderr] | ^^^^^ use of undeclared type or module `utils` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `utils` [INFO] [stderr] --> src/key_exchange/ecdh.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | use utils::ecc_curves::{ ECPGroup, ECPPoint, ECPSupportedCurves, ECPCurveShape }; [INFO] [stderr] | ^^^^^ use of undeclared type or module `utils` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `utils` [INFO] [stderr] --> src/key_exchange/ecdh.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use utils::{ montgomery_ladder, comb_method }; [INFO] [stderr] | ^^^^^ help: a similar path exists: `crate::utils` [INFO] [stderr] | [INFO] [stderr] = note: `use` statements changed in Rust 2018; read more at [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `utils` [INFO] [stderr] --> src/utils/ecc.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | use utils::encoding::{ EndianOrdering, biguint_to_bitvec, bitvec_to_biguint }; [INFO] [stderr] | ^^^^^ use of undeclared type or module `utils` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `utils` [INFO] [stderr] --> src/utils/ecc.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | use utils::ecc_curves::{ ECPPoint, ECPGroup, ECPSupportedCurves, ECPCurveShape }; [INFO] [stderr] | ^^^^^ use of undeclared type or module `utils` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `utils` [INFO] [stderr] --> src/utils/ecc.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | use utils::{ primes, comb_method, montgomery_ladder, jacobian_coords }; [INFO] [stderr] | ^^^^^ help: a similar path exists: `crate::utils` [INFO] [stderr] | [INFO] [stderr] = note: `use` statements changed in Rust 2018; read more at [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `crate::utils::primes` [INFO] [stderr] --> src/key_exchange/diffie_hellman.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use crate::utils::primes; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ no `primes` in `utils` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `utils` [INFO] [stderr] --> src/key_exchange/ecdh.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | use utils::ecc::{ ECPKeypair }; [INFO] [stderr] | ^^^^^ use of undeclared type or module `utils` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `utils` [INFO] [stderr] --> src/key_exchange/ecdh.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | use utils::ecc_curves::{ ECPGroup, ECPPoint, ECPSupportedCurves, ECPCurveShape }; [INFO] [stderr] | ^^^^^ use of undeclared type or module `utils` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `cryptopunk` [INFO] [stderr] --> src/key_exchange/diffie_hellman.rs:225:9 [INFO] [stderr] | [INFO] [stderr] 225 | use cryptopunk::key_exchange::diffie_hellman::DiffieHellman; [INFO] [stderr] | ^^^^^^^^^^ use of undeclared type or module `cryptopunk` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `cryptopunk` [INFO] [stderr] --> src/key_exchange/ecdh.rs:85:9 [INFO] [stderr] | [INFO] [stderr] 85 | use cryptopunk::key_exchange::ecdh::ECDH; [INFO] [stderr] | ^^^^^^^^^^ use of undeclared type or module `cryptopunk` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `utils` [INFO] [stderr] --> src/key_exchange/ecdh.rs:86:9 [INFO] [stderr] | [INFO] [stderr] 86 | use utils::ecc_curves::ECPSupportedCurves; [INFO] [stderr] | ^^^^^ use of undeclared type or module `utils` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `utils` [INFO] [stderr] --> src/key_exchange/ecdh.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use utils::{ montgomery_ladder, comb_method }; [INFO] [stderr] | ^^^^^ help: a similar path exists: `crate::utils` [INFO] [stderr] | [INFO] [stderr] = note: `use` statements changed in Rust 2018; read more at [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `utils` [INFO] [stderr] --> src/utils/ecc.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | use utils::encoding::{ EndianOrdering, biguint_to_bitvec, bitvec_to_biguint }; [INFO] [stderr] | ^^^^^ use of undeclared type or module `utils` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `utils` [INFO] [stderr] --> src/utils/ecc.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | use utils::ecc_curves::{ ECPPoint, ECPGroup, ECPSupportedCurves, ECPCurveShape }; [INFO] [stderr] | ^^^^^ use of undeclared type or module `utils` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `utils` [INFO] [stderr] --> src/utils/ecc.rs:309:9 [INFO] [stderr] | [INFO] [stderr] 309 | use utils::ecc::ECPKeypair; [INFO] [stderr] | ^^^^^ use of undeclared type or module `utils` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `utils` [INFO] [stderr] --> src/utils/ecc.rs:310:9 [INFO] [stderr] | [INFO] [stderr] 310 | use utils::ecc_curves::ECPSupportedCurves; [INFO] [stderr] | ^^^^^ use of undeclared type or module `utils` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `utils` [INFO] [stderr] --> src/utils/ecc.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | use utils::{ primes, comb_method, montgomery_ladder, jacobian_coords }; [INFO] [stderr] | ^^^^^ help: a similar path exists: `crate::utils` [INFO] [stderr] | [INFO] [stderr] = note: `use` statements changed in Rust 2018; read more at [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `DiffieHellman` [INFO] [stderr] --> src/key_exchange/diffie_hellman.rs:230:22 [INFO] [stderr] | [INFO] [stderr] 230 | let mut dh = DiffieHellman::new().setup(16); [INFO] [stderr] | ^^^^^^^^^^^^^ use of undeclared type or module `DiffieHellman` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `DiffieHellman` [INFO] [stderr] --> src/key_exchange/diffie_hellman.rs:234:23 [INFO] [stderr] | [INFO] [stderr] 234 | let mut dh2 = DiffieHellman::new_from_peer(&p, &g, &peer_gx).setup(16); [INFO] [stderr] | ^^^^^^^^^^^^^ use of undeclared type or module `DiffieHellman` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ECPKeypair` [INFO] [stderr] --> src/key_exchange/ecdh.rs:29:23 [INFO] [stderr] | [INFO] [stderr] 29 | let keypair = ECPKeypair::new(curve).setup(&mut rng); [INFO] [stderr] | ^^^^^^^^^^ use of undeclared type or module `ECPKeypair` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ECPCurveShape` [INFO] [stderr] --> src/key_exchange/ecdh.rs:52:13 [INFO] [stderr] | [INFO] [stderr] 52 | ECPCurveShape::Montgomery => { [INFO] [stderr] | ^^^^^^^^^^^^^ use of undeclared type or module `ECPCurveShape` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ECPCurveShape` [INFO] [stderr] --> src/key_exchange/ecdh.rs:55:13 [INFO] [stderr] | [INFO] [stderr] 55 | ECPCurveShape::ShortWeierstrass => { [INFO] [stderr] | ^^^^^^^^^^^^^ use of undeclared type or module `ECPCurveShape` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ECPKeypair` [INFO] [stderr] --> src/key_exchange/ecdh.rs:29:23 [INFO] [stderr] | [INFO] [stderr] 29 | let keypair = ECPKeypair::new(curve).setup(&mut rng); [INFO] [stderr] | ^^^^^^^^^^ use of undeclared type or module `ECPKeypair` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ECPCurveShape` [INFO] [stderr] --> src/key_exchange/ecdh.rs:52:13 [INFO] [stderr] | [INFO] [stderr] 52 | ECPCurveShape::Montgomery => { [INFO] [stderr] | ^^^^^^^^^^^^^ use of undeclared type or module `ECPCurveShape` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ECPCurveShape` [INFO] [stderr] --> src/key_exchange/ecdh.rs:55:13 [INFO] [stderr] | [INFO] [stderr] 55 | ECPCurveShape::ShortWeierstrass => { [INFO] [stderr] | ^^^^^^^^^^^^^ use of undeclared type or module `ECPCurveShape` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ECDH` [INFO] [stderr] --> src/key_exchange/ecdh.rs:92:22 [INFO] [stderr] | [INFO] [stderr] 92 | let mut dh = ECDH::new(ECPSupportedCurves::BP256R1); [INFO] [stderr] | ^^^^ use of undeclared type or module `ECDH` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ECPSupportedCurves` [INFO] [stderr] --> src/key_exchange/ecdh.rs:92:32 [INFO] [stderr] | [INFO] [stderr] 92 | let mut dh = ECDH::new(ECPSupportedCurves::BP256R1); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ use of undeclared type or module `ECPSupportedCurves` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ECDH` [INFO] [stderr] --> src/key_exchange/ecdh.rs:95:23 [INFO] [stderr] | [INFO] [stderr] 95 | let mut dh2 = ECDH::new(ECPSupportedCurves::BP256R1); [INFO] [stderr] | ^^^^ use of undeclared type or module `ECDH` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ECPSupportedCurves` [INFO] [stderr] --> src/key_exchange/ecdh.rs:95:33 [INFO] [stderr] | [INFO] [stderr] 95 | let mut dh2 = ECDH::new(ECPSupportedCurves::BP256R1); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ use of undeclared type or module `ECPSupportedCurves` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ECDH` [INFO] [stderr] --> src/key_exchange/ecdh.rs:111:22 [INFO] [stderr] | [INFO] [stderr] 111 | let mut dh = ECDH::new(ECPSupportedCurves::Curve25519); [INFO] [stderr] | ^^^^ use of undeclared type or module `ECDH` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ECPSupportedCurves` [INFO] [stderr] --> src/key_exchange/ecdh.rs:111:32 [INFO] [stderr] | [INFO] [stderr] 111 | let mut dh = ECDH::new(ECPSupportedCurves::Curve25519); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ use of undeclared type or module `ECPSupportedCurves` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ECDH` [INFO] [stderr] --> src/key_exchange/ecdh.rs:114:23 [INFO] [stderr] | [INFO] [stderr] 114 | let mut dh2 = ECDH::new(ECPSupportedCurves::Curve25519); [INFO] [stderr] | ^^^^ use of undeclared type or module `ECDH` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ECPSupportedCurves` [INFO] [stderr] --> src/key_exchange/ecdh.rs:114:33 [INFO] [stderr] | [INFO] [stderr] 114 | let mut dh2 = ECDH::new(ECPSupportedCurves::Curve25519); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ use of undeclared type or module `ECPSupportedCurves` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ECPGroup` [INFO] [stderr] --> src/utils/ecc.rs:50:20 [INFO] [stderr] | [INFO] [stderr] 50 | group: ECPGroup::new(curve), [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `ECPGroup` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ECPPoint` [INFO] [stderr] --> src/utils/ecc.rs:52:16 [INFO] [stderr] | [INFO] [stderr] 52 | q: ECPPoint::new( &BigInt::zero(), Some(BigInt::zero()) ) [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `ECPPoint` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ECPGroup` [INFO] [stderr] --> src/utils/ecc.rs:50:20 [INFO] [stderr] | [INFO] [stderr] 50 | group: ECPGroup::new(curve), [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `ECPGroup` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ECPPoint` [INFO] [stderr] --> src/utils/ecc.rs:52:16 [INFO] [stderr] | [INFO] [stderr] 52 | q: ECPPoint::new( &BigInt::zero(), Some(BigInt::zero()) ) [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `ECPPoint` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ECPCurveShape` [INFO] [stderr] --> src/utils/ecc.rs:85:13 [INFO] [stderr] | [INFO] [stderr] 85 | ECPCurveShape::Montgomery => montgomery_ladder::multiply(&self.group, &self.d, &p_point), [INFO] [stderr] | ^^^^^^^^^^^^^ use of undeclared type or module `ECPCurveShape` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ECPCurveShape` [INFO] [stderr] --> src/utils/ecc.rs:86:13 [INFO] [stderr] | [INFO] [stderr] 86 | ECPCurveShape::ShortWeierstrass => comb_method::multiply(&mut self.group, &self.d, &p_point, rng) [INFO] [stderr] | ^^^^^^^^^^^^^ use of undeclared type or module `ECPCurveShape` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ECPCurveShape` [INFO] [stderr] --> src/utils/ecc.rs:85:13 [INFO] [stderr] | [INFO] [stderr] 85 | ECPCurveShape::Montgomery => montgomery_ladder::multiply(&self.group, &self.d, &p_point), [INFO] [stderr] | ^^^^^^^^^^^^^ use of undeclared type or module `ECPCurveShape` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ECPCurveShape` [INFO] [stderr] --> src/utils/ecc.rs:86:13 [INFO] [stderr] | [INFO] [stderr] 86 | ECPCurveShape::ShortWeierstrass => comb_method::multiply(&mut self.group, &self.d, &p_point, rng) [INFO] [stderr] | ^^^^^^^^^^^^^ use of undeclared type or module `ECPCurveShape` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ECPCurveShape` [INFO] [stderr] --> src/utils/ecc.rs:101:13 [INFO] [stderr] | [INFO] [stderr] 101 | ECPCurveShape::Montgomery => montgomery_ladder::multiply(&self.group, m, p), [INFO] [stderr] | ^^^^^^^^^^^^^ use of undeclared type or module `ECPCurveShape` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ECPCurveShape` [INFO] [stderr] --> src/utils/ecc.rs:102:13 [INFO] [stderr] | [INFO] [stderr] 102 | ECPCurveShape::ShortWeierstrass => comb_method::core_multiplication(&mut self.group, p, m, &mut rng) [INFO] [stderr] | ^^^^^^^^^^^^^ use of undeclared type or module `ECPCurveShape` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ECPCurveShape` [INFO] [stderr] --> src/utils/ecc.rs:101:13 [INFO] [stderr] | [INFO] [stderr] 101 | ECPCurveShape::Montgomery => montgomery_ladder::multiply(&self.group, m, p), [INFO] [stderr] | ^^^^^^^^^^^^^ use of undeclared type or module `ECPCurveShape` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ECPCurveShape` [INFO] [stderr] --> src/utils/ecc.rs:102:13 [INFO] [stderr] | [INFO] [stderr] 102 | ECPCurveShape::ShortWeierstrass => comb_method::core_multiplication(&mut self.group, p, m, &mut rng) [INFO] [stderr] | ^^^^^^^^^^^^^ use of undeclared type or module `ECPCurveShape` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ECPCurveShape` [INFO] [stderr] --> src/utils/ecc.rs:118:13 [INFO] [stderr] | [INFO] [stderr] 118 | ECPCurveShape::Montgomery => montgomery_ladder::add_points(&self.group, p, r, &gx), [INFO] [stderr] | ^^^^^^^^^^^^^ use of undeclared type or module `ECPCurveShape` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ECPCurveShape` [INFO] [stderr] --> src/utils/ecc.rs:119:13 [INFO] [stderr] | [INFO] [stderr] 119 | ECPCurveShape::ShortWeierstrass => jacobian_coords::add(&self.group, p, &mut r_clone) [INFO] [stderr] | ^^^^^^^^^^^^^ use of undeclared type or module `ECPCurveShape` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ECPCurveShape` [INFO] [stderr] --> src/utils/ecc.rs:118:13 [INFO] [stderr] | [INFO] [stderr] 118 | ECPCurveShape::Montgomery => montgomery_ladder::add_points(&self.group, p, r, &gx), [INFO] [stderr] | ^^^^^^^^^^^^^ use of undeclared type or module `ECPCurveShape` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ECPCurveShape` [INFO] [stderr] --> src/utils/ecc.rs:119:13 [INFO] [stderr] | [INFO] [stderr] 119 | ECPCurveShape::ShortWeierstrass => jacobian_coords::add(&self.group, p, &mut r_clone) [INFO] [stderr] | ^^^^^^^^^^^^^ use of undeclared type or module `ECPCurveShape` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ECPCurveShape` [INFO] [stderr] --> src/utils/ecc.rs:145:27 [INFO] [stderr] | [INFO] [stderr] 145 | if curve_shape == ECPCurveShape::Montgomery { [INFO] [stderr] | ^^^^^^^^^^^^^ use of undeclared type or module `ECPCurveShape` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ECPCurveShape` [INFO] [stderr] --> src/utils/ecc.rs:145:27 [INFO] [stderr] | [INFO] [stderr] 145 | if curve_shape == ECPCurveShape::Montgomery { [INFO] [stderr] | ^^^^^^^^^^^^^ use of undeclared type or module `ECPCurveShape` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `EndianOrdering` [INFO] [stderr] --> src/utils/ecc.rs:146:56 [INFO] [stderr] | [INFO] [stderr] 146 | let d_bit_vec = biguint_to_bitvec(&self.d, EndianOrdering::Little); [INFO] [stderr] | ^^^^^^^^^^^^^^ use of undeclared type or module `EndianOrdering` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `EndianOrdering` [INFO] [stderr] --> src/utils/ecc.rs:146:56 [INFO] [stderr] | [INFO] [stderr] 146 | let d_bit_vec = biguint_to_bitvec(&self.d, EndianOrdering::Little); [INFO] [stderr] | ^^^^^^^^^^^^^^ use of undeclared type or module `EndianOrdering` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ECPCurveShape` [INFO] [stderr] --> src/utils/ecc.rs:183:13 [INFO] [stderr] | [INFO] [stderr] 183 | ECPCurveShape::Montgomery => { [INFO] [stderr] | ^^^^^^^^^^^^^ use of undeclared type or module `ECPCurveShape` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ECPCurveShape` [INFO] [stderr] --> src/utils/ecc.rs:191:13 [INFO] [stderr] | [INFO] [stderr] 191 | ECPCurveShape::ShortWeierstrass => self.check_weierstrass_public_key(point) [INFO] [stderr] | ^^^^^^^^^^^^^ use of undeclared type or module `ECPCurveShape` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ECPCurveShape` [INFO] [stderr] --> src/utils/ecc.rs:203:13 [INFO] [stderr] | [INFO] [stderr] 203 | ECPCurveShape::Montgomery => { [INFO] [stderr] | ^^^^^^^^^^^^^ use of undeclared type or module `ECPCurveShape` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ECPCurveShape` [INFO] [stderr] --> src/utils/ecc.rs:183:13 [INFO] [stderr] | [INFO] [stderr] 183 | ECPCurveShape::Montgomery => { [INFO] [stderr] | ^^^^^^^^^^^^^ use of undeclared type or module `ECPCurveShape` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ECPCurveShape` [INFO] [stderr] --> src/utils/ecc.rs:191:13 [INFO] [stderr] | [INFO] [stderr] 191 | ECPCurveShape::ShortWeierstrass => self.check_weierstrass_public_key(point) [INFO] [stderr] | ^^^^^^^^^^^^^ use of undeclared type or module `ECPCurveShape` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ECPCurveShape` [INFO] [stderr] --> src/utils/ecc.rs:203:13 [INFO] [stderr] | [INFO] [stderr] 203 | ECPCurveShape::Montgomery => { [INFO] [stderr] | ^^^^^^^^^^^^^ use of undeclared type or module `ECPCurveShape` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `EndianOrdering` [INFO] [stderr] --> src/utils/ecc.rs:210:59 [INFO] [stderr] | [INFO] [stderr] 210 | let mut d_bit_vec = biguint_to_bitvec(&d, EndianOrdering::Little); [INFO] [stderr] | ^^^^^^^^^^^^^^ use of undeclared type or module `EndianOrdering` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `EndianOrdering` [INFO] [stderr] --> src/utils/ecc.rs:210:59 [INFO] [stderr] | [INFO] [stderr] 210 | let mut d_bit_vec = biguint_to_bitvec(&d, EndianOrdering::Little); [INFO] [stderr] | ^^^^^^^^^^^^^^ use of undeclared type or module `EndianOrdering` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `EndianOrdering` [INFO] [stderr] --> src/utils/ecc.rs:216:55 [INFO] [stderr] | [INFO] [stderr] 216 | d_bit_vec = biguint_to_bitvec(&d, EndianOrdering::Little); [INFO] [stderr] | ^^^^^^^^^^^^^^ use of undeclared type or module `EndianOrdering` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `EndianOrdering` [INFO] [stderr] --> src/utils/ecc.rs:227:54 [INFO] [stderr] | [INFO] [stderr] 227 | return bitvec_to_biguint(&d_bit_vec, EndianOrdering::Little); [INFO] [stderr] | ^^^^^^^^^^^^^^ use of undeclared type or module `EndianOrdering` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ECPCurveShape` [INFO] [stderr] --> src/utils/ecc.rs:230:13 [INFO] [stderr] | [INFO] [stderr] 230 | ECPCurveShape::ShortWeierstrass => { [INFO] [stderr] | ^^^^^^^^^^^^^ use of undeclared type or module `ECPCurveShape` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `EndianOrdering` [INFO] [stderr] --> src/utils/ecc.rs:216:55 [INFO] [stderr] | [INFO] [stderr] 216 | d_bit_vec = biguint_to_bitvec(&d, EndianOrdering::Little); [INFO] [stderr] | ^^^^^^^^^^^^^^ use of undeclared type or module `EndianOrdering` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `EndianOrdering` [INFO] [stderr] --> src/utils/ecc.rs:227:54 [INFO] [stderr] | [INFO] [stderr] 227 | return bitvec_to_biguint(&d_bit_vec, EndianOrdering::Little); [INFO] [stderr] | ^^^^^^^^^^^^^^ use of undeclared type or module `EndianOrdering` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ECPCurveShape` [INFO] [stderr] --> src/utils/ecc.rs:230:13 [INFO] [stderr] | [INFO] [stderr] 230 | ECPCurveShape::ShortWeierstrass => { [INFO] [stderr] | ^^^^^^^^^^^^^ use of undeclared type or module `ECPCurveShape` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `ECPGroup` in this scope [INFO] [stderr] --> src/key_exchange/ecdh.rs:10:16 [INFO] [stderr] | [INFO] [stderr] 10 | pub group: ECPGroup, [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `ECPPoint` in this scope [INFO] [stderr] --> src/key_exchange/ecdh.rs:11:12 [INFO] [stderr] | [INFO] [stderr] 11 | pub q: ECPPoint, // our public value (public key) [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `ECPPoint` in this scope [INFO] [stderr] --> src/key_exchange/ecdh.rs:13:24 [INFO] [stderr] | [INFO] [stderr] 13 | pub peer_q: Option, // peer's public value (public key) [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `ECPKeypair` in this scope [INFO] [stderr] --> src/key_exchange/ecdh.rs:14:14 [INFO] [stderr] | [INFO] [stderr] 14 | keypair: ECPKeypair // Generated keypair, for reference (private value stored here) [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 1 | use crate::utils::ecc::ECPKeypair; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `ECPSupportedCurves` in this scope [INFO] [stderr] --> src/key_exchange/ecdh.rs:26:23 [INFO] [stderr] | [INFO] [stderr] 26 | pub fn new(curve: ECPSupportedCurves) -> Self { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `ECPGroup` in this scope [INFO] [stderr] --> src/utils/ecc.rs:22:16 [INFO] [stderr] | [INFO] [stderr] 22 | pub group: ECPGroup, // elliptic curve and base point [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `ECPPoint` in this scope [INFO] [stderr] --> src/utils/ecc.rs:24:12 [INFO] [stderr] | [INFO] [stderr] 24 | pub q: ECPPoint // public value [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `ECPSupportedCurves` in this scope [INFO] [stderr] --> src/utils/ecc.rs:48:23 [INFO] [stderr] | [INFO] [stderr] 48 | pub fn new(curve: ECPSupportedCurves) -> Self { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `ECPPoint` in this scope [INFO] [stderr] --> src/utils/ecc.rs:80:52 [INFO] [stderr] | [INFO] [stderr] 80 | pub fn multiply(&mut self, rng: &mut OsRng) -> ECPPoint { [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `ECPPoint` in this scope [INFO] [stderr] --> src/utils/ecc.rs:96:42 [INFO] [stderr] | [INFO] [stderr] 96 | pub fn multiply_point(&mut self, p: &ECPPoint, m: &BigUint) -> ECPPoint { [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `ECPPoint` in this scope [INFO] [stderr] --> src/utils/ecc.rs:96:68 [INFO] [stderr] | [INFO] [stderr] 96 | pub fn multiply_point(&mut self, p: &ECPPoint, m: &BigUint) -> ECPPoint { [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `ECPPoint` in this scope [INFO] [stderr] --> src/utils/ecc.rs:112:38 [INFO] [stderr] | [INFO] [stderr] 112 | pub fn add_points(&mut self, p: &ECPPoint, r: &ECPPoint) -> ECPPoint { [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `ECPPoint` in this scope [INFO] [stderr] --> src/utils/ecc.rs:112:52 [INFO] [stderr] | [INFO] [stderr] 112 | pub fn add_points(&mut self, p: &ECPPoint, r: &ECPPoint) -> ECPPoint { [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `ECPPoint` in this scope [INFO] [stderr] --> src/utils/ecc.rs:112:65 [INFO] [stderr] | [INFO] [stderr] 112 | pub fn add_points(&mut self, p: &ECPPoint, r: &ECPPoint) -> ECPPoint { [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `ECPPoint` in this scope [INFO] [stderr] --> src/utils/ecc.rs:128:49 [INFO] [stderr] | [INFO] [stderr] 128 | fn check_public_private_keys(&self, point: &ECPPoint) -> () { [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `biguint_to_bitvec` in this scope [INFO] [stderr] --> src/utils/ecc.rs:146:29 [INFO] [stderr] | [INFO] [stderr] 146 | let d_bit_vec = biguint_to_bitvec(&self.d, EndianOrdering::Little); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `ECPPoint` in this scope [INFO] [stderr] --> src/utils/ecc.rs:174:44 [INFO] [stderr] | [INFO] [stderr] 174 | pub fn check_public_key(&self, point: &ECPPoint) -> (bool, &'static str) { [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `biguint_to_bitvec` in this scope [INFO] [stderr] --> src/utils/ecc.rs:210:37 [INFO] [stderr] | [INFO] [stderr] 210 | let mut d_bit_vec = biguint_to_bitvec(&d, EndianOrdering::Little); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `biguint_to_bitvec` in this scope [INFO] [stderr] --> src/utils/ecc.rs:216:33 [INFO] [stderr] | [INFO] [stderr] 216 | d_bit_vec = biguint_to_bitvec(&d, EndianOrdering::Little); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `bitvec_to_biguint` in this scope [INFO] [stderr] --> src/utils/ecc.rs:227:24 [INFO] [stderr] | [INFO] [stderr] 227 | return bitvec_to_biguint(&d_bit_vec, EndianOrdering::Little); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `ECPPoint` in this scope [INFO] [stderr] --> src/utils/ecc.rs:268:52 [INFO] [stderr] | [INFO] [stderr] 268 | fn check_weierstrass_public_key(&self, point: &ECPPoint) -> (bool, &'static str) { [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] warning: unused import: `ECPKeypair` [INFO] [stderr] --> src/key_exchange/ecdh.rs:6:19 [INFO] [stderr] | [INFO] [stderr] 6 | use utils::ecc::{ ECPKeypair }; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(unused_imports)] on by default [INFO] [stderr] [INFO] [stderr] warning: unused imports: `ECPCurveShape`, `ECPGroup`, `ECPPoint`, `ECPSupportedCurves` [INFO] [stderr] --> src/key_exchange/ecdh.rs:7:26 [INFO] [stderr] | [INFO] [stderr] 7 | use utils::ecc_curves::{ ECPGroup, ECPPoint, ECPSupportedCurves, ECPCurveShape }; [INFO] [stderr] | ^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `EndianOrdering`, `biguint_to_bitvec`, `bitvec_to_biguint` [INFO] [stderr] --> src/utils/ecc.rs:8:24 [INFO] [stderr] | [INFO] [stderr] 8 | use utils::encoding::{ EndianOrdering, biguint_to_bitvec, bitvec_to_biguint }; [INFO] [stderr] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `ECPCurveShape`, `ECPGroup`, `ECPPoint`, `ECPSupportedCurves` [INFO] [stderr] --> src/utils/ecc.rs:9:26 [INFO] [stderr] | [INFO] [stderr] 9 | use utils::ecc_curves::{ ECPPoint, ECPGroup, ECPSupportedCurves, ECPCurveShape }; [INFO] [stderr] | ^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ECPKeypair` [INFO] [stderr] --> src/utils/ecc.rs:315:19 [INFO] [stderr] | [INFO] [stderr] 315 | let ecc = ECPKeypair::new(ECPSupportedCurves::BP256R1).setup(&mut rng); [INFO] [stderr] | ^^^^^^^^^^ use of undeclared type or module `ECPKeypair` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ECPSupportedCurves` [INFO] [stderr] --> src/utils/ecc.rs:315:35 [INFO] [stderr] | [INFO] [stderr] 315 | let ecc = ECPKeypair::new(ECPSupportedCurves::BP256R1).setup(&mut rng); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ use of undeclared type or module `ECPSupportedCurves` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ECPKeypair` [INFO] [stderr] --> src/utils/ecc.rs:321:19 [INFO] [stderr] | [INFO] [stderr] 321 | let ecc = ECPKeypair::new(ECPSupportedCurves::BP384R1).setup(&mut rng); [INFO] [stderr] | ^^^^^^^^^^ use of undeclared type or module `ECPKeypair` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ECPSupportedCurves` [INFO] [stderr] --> src/utils/ecc.rs:321:35 [INFO] [stderr] | [INFO] [stderr] 321 | let ecc = ECPKeypair::new(ECPSupportedCurves::BP384R1).setup(&mut rng); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ use of undeclared type or module `ECPSupportedCurves` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ECPKeypair` [INFO] [stderr] --> src/utils/ecc.rs:327:19 [INFO] [stderr] | [INFO] [stderr] 327 | let ecc = ECPKeypair::new(ECPSupportedCurves::BP521R1).setup(&mut rng); [INFO] [stderr] | ^^^^^^^^^^ use of undeclared type or module `ECPKeypair` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ECPSupportedCurves` [INFO] [stderr] --> src/utils/ecc.rs:327:35 [INFO] [stderr] | [INFO] [stderr] 327 | let ecc = ECPKeypair::new(ECPSupportedCurves::BP521R1).setup(&mut rng); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ use of undeclared type or module `ECPSupportedCurves` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ECPKeypair` [INFO] [stderr] --> src/utils/ecc.rs:333:19 [INFO] [stderr] | [INFO] [stderr] 333 | let ecc = ECPKeypair::new(ECPSupportedCurves::Curve25519).setup(&mut rng); [INFO] [stderr] | ^^^^^^^^^^ use of undeclared type or module `ECPKeypair` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ECPSupportedCurves` [INFO] [stderr] --> src/utils/ecc.rs:333:35 [INFO] [stderr] | [INFO] [stderr] 333 | let ecc = ECPKeypair::new(ECPSupportedCurves::Curve25519).setup(&mut rng); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ use of undeclared type or module `ECPSupportedCurves` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `ECPGroup` in this scope [INFO] [stderr] --> src/key_exchange/ecdh.rs:10:16 [INFO] [stderr] | [INFO] [stderr] 10 | pub group: ECPGroup, [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `ECPPoint` in this scope [INFO] [stderr] --> src/key_exchange/ecdh.rs:11:12 [INFO] [stderr] | [INFO] [stderr] 11 | pub q: ECPPoint, // our public value (public key) [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `ECPPoint` in this scope [INFO] [stderr] --> src/key_exchange/ecdh.rs:13:24 [INFO] [stderr] | [INFO] [stderr] 13 | pub peer_q: Option, // peer's public value (public key) [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `ECPKeypair` in this scope [INFO] [stderr] --> src/key_exchange/ecdh.rs:14:14 [INFO] [stderr] | [INFO] [stderr] 14 | keypair: ECPKeypair // Generated keypair, for reference (private value stored here) [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 1 | use crate::utils::ecc::ECPKeypair; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `ECPSupportedCurves` in this scope [INFO] [stderr] --> src/key_exchange/ecdh.rs:26:23 [INFO] [stderr] | [INFO] [stderr] 26 | pub fn new(curve: ECPSupportedCurves) -> Self { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `ECPGroup` in this scope [INFO] [stderr] --> src/utils/ecc.rs:22:16 [INFO] [stderr] | [INFO] [stderr] 22 | pub group: ECPGroup, // elliptic curve and base point [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `ECPPoint` in this scope [INFO] [stderr] --> src/utils/ecc.rs:24:12 [INFO] [stderr] | [INFO] [stderr] 24 | pub q: ECPPoint // public value [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `ECPSupportedCurves` in this scope [INFO] [stderr] --> src/utils/ecc.rs:48:23 [INFO] [stderr] | [INFO] [stderr] 48 | pub fn new(curve: ECPSupportedCurves) -> Self { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `ECPPoint` in this scope [INFO] [stderr] --> src/utils/ecc.rs:80:52 [INFO] [stderr] | [INFO] [stderr] 80 | pub fn multiply(&mut self, rng: &mut OsRng) -> ECPPoint { [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `ECPPoint` in this scope [INFO] [stderr] --> src/utils/ecc.rs:96:42 [INFO] [stderr] | [INFO] [stderr] 96 | pub fn multiply_point(&mut self, p: &ECPPoint, m: &BigUint) -> ECPPoint { [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `ECPPoint` in this scope [INFO] [stderr] --> src/utils/ecc.rs:96:68 [INFO] [stderr] | [INFO] [stderr] 96 | pub fn multiply_point(&mut self, p: &ECPPoint, m: &BigUint) -> ECPPoint { [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `ECPPoint` in this scope [INFO] [stderr] --> src/utils/ecc.rs:112:38 [INFO] [stderr] | [INFO] [stderr] 112 | pub fn add_points(&mut self, p: &ECPPoint, r: &ECPPoint) -> ECPPoint { [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `ECPPoint` in this scope [INFO] [stderr] --> src/utils/ecc.rs:112:52 [INFO] [stderr] | [INFO] [stderr] 112 | pub fn add_points(&mut self, p: &ECPPoint, r: &ECPPoint) -> ECPPoint { [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `ECPPoint` in this scope [INFO] [stderr] --> src/utils/ecc.rs:112:65 [INFO] [stderr] | [INFO] [stderr] 112 | pub fn add_points(&mut self, p: &ECPPoint, r: &ECPPoint) -> ECPPoint { [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `ECPPoint` in this scope [INFO] [stderr] --> src/utils/ecc.rs:128:49 [INFO] [stderr] | [INFO] [stderr] 128 | fn check_public_private_keys(&self, point: &ECPPoint) -> () { [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `biguint_to_bitvec` in this scope [INFO] [stderr] --> src/utils/ecc.rs:146:29 [INFO] [stderr] | [INFO] [stderr] 146 | let d_bit_vec = biguint_to_bitvec(&self.d, EndianOrdering::Little); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `ECPPoint` in this scope [INFO] [stderr] --> src/utils/ecc.rs:174:44 [INFO] [stderr] | [INFO] [stderr] 174 | pub fn check_public_key(&self, point: &ECPPoint) -> (bool, &'static str) { [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `biguint_to_bitvec` in this scope [INFO] [stderr] --> src/utils/ecc.rs:210:37 [INFO] [stderr] | [INFO] [stderr] 210 | let mut d_bit_vec = biguint_to_bitvec(&d, EndianOrdering::Little); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `biguint_to_bitvec` in this scope [INFO] [stderr] --> src/utils/ecc.rs:216:33 [INFO] [stderr] | [INFO] [stderr] 216 | d_bit_vec = biguint_to_bitvec(&d, EndianOrdering::Little); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `bitvec_to_biguint` in this scope [INFO] [stderr] --> src/utils/ecc.rs:227:24 [INFO] [stderr] | [INFO] [stderr] 227 | return bitvec_to_biguint(&d_bit_vec, EndianOrdering::Little); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `ECPPoint` in this scope [INFO] [stderr] --> src/utils/ecc.rs:268:52 [INFO] [stderr] | [INFO] [stderr] 268 | fn check_weierstrass_public_key(&self, point: &ECPPoint) -> (bool, &'static str) { [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] warning: unused import: `cryptopunk::key_exchange::diffie_hellman::DiffieHellman` [INFO] [stderr] --> src/key_exchange/diffie_hellman.rs:225:9 [INFO] [stderr] | [INFO] [stderr] 225 | use cryptopunk::key_exchange::diffie_hellman::DiffieHellman; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(unused_imports)] on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `ECPKeypair` [INFO] [stderr] --> src/key_exchange/ecdh.rs:6:19 [INFO] [stderr] | [INFO] [stderr] 6 | use utils::ecc::{ ECPKeypair }; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `ECPCurveShape`, `ECPGroup`, `ECPPoint`, `ECPSupportedCurves` [INFO] [stderr] --> src/key_exchange/ecdh.rs:7:26 [INFO] [stderr] | [INFO] [stderr] 7 | use utils::ecc_curves::{ ECPGroup, ECPPoint, ECPSupportedCurves, ECPCurveShape }; [INFO] [stderr] | ^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `cryptopunk::key_exchange::ecdh::ECDH` [INFO] [stderr] --> src/key_exchange/ecdh.rs:85:9 [INFO] [stderr] | [INFO] [stderr] 85 | use cryptopunk::key_exchange::ecdh::ECDH; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `utils::ecc_curves::ECPSupportedCurves` [INFO] [stderr] --> src/key_exchange/ecdh.rs:86:9 [INFO] [stderr] | [INFO] [stderr] 86 | use utils::ecc_curves::ECPSupportedCurves; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `EndianOrdering`, `biguint_to_bitvec`, `bitvec_to_biguint` [INFO] [stderr] --> src/utils/ecc.rs:8:24 [INFO] [stderr] | [INFO] [stderr] 8 | use utils::encoding::{ EndianOrdering, biguint_to_bitvec, bitvec_to_biguint }; [INFO] [stderr] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `ECPCurveShape`, `ECPGroup`, `ECPPoint`, `ECPSupportedCurves` [INFO] [stderr] --> src/utils/ecc.rs:9:26 [INFO] [stderr] | [INFO] [stderr] 9 | use utils::ecc_curves::{ ECPPoint, ECPGroup, ECPSupportedCurves, ECPCurveShape }; [INFO] [stderr] | ^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `utils::ecc::ECPKeypair` [INFO] [stderr] --> src/utils/ecc.rs:309:9 [INFO] [stderr] | [INFO] [stderr] 309 | use utils::ecc::ECPKeypair; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `utils::ecc_curves::ECPSupportedCurves` [INFO] [stderr] --> src/utils/ecc.rs:310:9 [INFO] [stderr] | [INFO] [stderr] 310 | use utils::ecc_curves::ECPSupportedCurves; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: aborting due to 48 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0412, E0425, E0432, E0433. [INFO] [stderr] For more information about an error, try `rustc --explain E0412`. [INFO] [stderr] error: Could not compile `cryptofun`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: aborting due to 71 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0412, E0425, E0432, E0433. [INFO] [stderr] For more information about an error, try `rustc --explain E0412`. [INFO] [stderr] error: Could not compile `cryptofun`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "4602fe18308cbefe6254938908be23d4efcccf90dd120880ece974f40ce4cec8"` [INFO] running `"docker" "rm" "-f" "4602fe18308cbefe6254938908be23d4efcccf90dd120880ece974f40ce4cec8"` [INFO] [stdout] 4602fe18308cbefe6254938908be23d4efcccf90dd120880ece974f40ce4cec8