[INFO] fetching crate pqc_kyber_kyberslash 0.7.1... [INFO] checking pqc_kyber_kyberslash-0.7.1 against master#506512391b1a75ae450d36c9420978402a91abcc for pr-125384 [INFO] extracting crate pqc_kyber_kyberslash 0.7.1 into /workspace/builds/worker-4-tc1/source [INFO] validating manifest of crates.io crate pqc_kyber_kyberslash 0.7.1 on toolchain 506512391b1a75ae450d36c9420978402a91abcc [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate pqc_kyber_kyberslash 0.7.1 [INFO] finished tweaking crates.io crate pqc_kyber_kyberslash 0.7.1 [INFO] tweaked toml for crates.io crate pqc_kyber_kyberslash 0.7.1 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate crates.io crate pqc_kyber_kyberslash 0.7.1 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" "+506512391b1a75ae450d36c9420978402a91abcc" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded nasm-rs v0.2.5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9d8f627558ea48c39ca6523d8bd79e84a7a41576beca56af154e1aec9edc4013 [INFO] running `Command { std: "docker" "start" "-a" "9d8f627558ea48c39ca6523d8bd79e84a7a41576beca56af154e1aec9edc4013", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9d8f627558ea48c39ca6523d8bd79e84a7a41576beca56af154e1aec9edc4013", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9d8f627558ea48c39ca6523d8bd79e84a7a41576beca56af154e1aec9edc4013", kill_on_drop: false }` [INFO] [stdout] 9d8f627558ea48c39ca6523d8bd79e84a7a41576beca56af154e1aec9edc4013 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-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:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a163caa421c5cd043910706cb8562740c54d3c86f3e8cef2fb484be3a716e3a8 [INFO] running `Command { std: "docker" "start" "-a" "a163caa421c5cd043910706cb8562740c54d3c86f3e8cef2fb484be3a716e3a8", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling pqc_kyber_kyberslash v0.7.1 (/opt/rustwide/workdir) [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Checking getrandom v0.2.12 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stdout] error[E0432]: unresolved import `pqc_kyber` [INFO] [stdout] --> examples/uake.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use pqc_kyber::*; [INFO] [stdout] | ^^^^^^^^^ use of undeclared crate or module `pqc_kyber` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0601]: `main` function not found in crate `api` [INFO] [stdout] --> benches/api.rs:135:3157 [INFO] [stdout] | [INFO] [stdout] 135 | ...55e9855daf870dde03f048b3b8bdfeb435960"; [INFO] [stdout] | ^ consider adding a `main` function to `benches/api.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0601`. [INFO] [stdout] [INFO] [stderr] error: could not compile `pqc_kyber_kyberslash` (bench "api") due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0432]: unresolved import `pqc_kyber` [INFO] [stdout] --> tests/kem.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use pqc_kyber::*; [INFO] [stdout] | ^^^^^^^^^ use of undeclared crate or module `pqc_kyber` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `pqc_kyber` [INFO] [stdout] --> examples/kem.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use pqc_kyber::*; [INFO] [stdout] | ^^^^^^^^^ use of undeclared crate or module `pqc_kyber` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `KyberError` in this scope [INFO] [stdout] --> examples/uake.rs:3:25 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() -> Result<(), KyberError> { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::KyberError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Uake` [INFO] [stdout] --> examples/uake.rs:6:21 [INFO] [stdout] | [INFO] [stdout] 6 | let mut alice = Uake::new(); [INFO] [stdout] | ^^^^ use of undeclared type `Uake` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::Uake; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Uake` [INFO] [stdout] --> examples/uake.rs:7:19 [INFO] [stdout] | [INFO] [stdout] 7 | let mut bob = Uake::new(); [INFO] [stdout] | ^^^^ use of undeclared type `Uake` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::Uake; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `keypair` in this scope [INFO] [stdout] --> examples/uake.rs:9:20 [INFO] [stdout] | [INFO] [stdout] 9 | let bob_keys = keypair(&mut rng)?; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::keypair; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `pqc_kyber` [INFO] [stdout] --> tests/kex.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use pqc_kyber::*; [INFO] [stdout] | ^^^^^^^^^ use of undeclared crate or module `pqc_kyber` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `pqc_kyber` [INFO] [stdout] --> examples/ake.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use pqc_kyber::*; [INFO] [stdout] | ^^^^^^^^^ use of undeclared crate or module `pqc_kyber` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `pqc_kyber_kyberslash` (example "uake") due to 6 previous errors [INFO] [stdout] error[E0412]: cannot find type `KyberError` in this scope [INFO] [stdout] --> examples/kem.rs:3:25 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() -> Result<(), KyberError> { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::KyberError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `keypair` in this scope [INFO] [stdout] --> examples/kem.rs:7:22 [INFO] [stdout] | [INFO] [stdout] 7 | let alice_keys = keypair(&mut rng)?; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::keypair; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `encapsulate` in this scope [INFO] [stdout] --> examples/kem.rs:10:43 [INFO] [stdout] | [INFO] [stdout] 10 | let (ciphertext, shared_secret_bob) = encapsulate(&alice_keys.public, &mut rng)?; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::encapsulate; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `decapsulate` in this scope [INFO] [stdout] --> examples/kem.rs:13:31 [INFO] [stdout] | [INFO] [stdout] 13 | let shared_secret_alice = decapsulate(&ciphertext, &alice_keys.secret)?; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::decapsulate; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `pqc_kyber_kyberslash` (example "kem") due to 6 previous errors [INFO] [stdout] error[E0425]: cannot find function `keypair` in this scope [INFO] [stdout] --> tests/kem.rs:8:16 [INFO] [stdout] | [INFO] [stdout] 8 | let keys = keypair(&mut rng).unwrap(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::keypair; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `KyberError` in this scope [INFO] [stdout] --> examples/ake.rs:3:25 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() -> Result<(), KyberError> { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::KyberError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ake` [INFO] [stdout] --> examples/ake.rs:6:21 [INFO] [stdout] | [INFO] [stdout] 6 | let mut alice = Ake::new(); [INFO] [stdout] | ^^^ use of undeclared type `Ake` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::Ake; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ake` [INFO] [stdout] --> examples/ake.rs:7:19 [INFO] [stdout] | [INFO] [stdout] 7 | let mut bob = Ake::new(); [INFO] [stdout] | ^^^ use of undeclared type `Ake` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::Ake; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `keypair` in this scope [INFO] [stdout] --> examples/ake.rs:8:22 [INFO] [stdout] | [INFO] [stdout] 8 | let alice_keys = keypair(&mut rng)?; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::keypair; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `keypair` in this scope [INFO] [stdout] --> examples/ake.rs:9:20 [INFO] [stdout] | [INFO] [stdout] 9 | let bob_keys = keypair(&mut rng)?; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::keypair; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `encapsulate` in this scope [INFO] [stdout] --> tests/kem.rs:9:21 [INFO] [stdout] | [INFO] [stdout] 9 | let (ct, ss1) = encapsulate(&keys.public, &mut rng).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::encapsulate; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `decapsulate` in this scope [INFO] [stdout] --> tests/kem.rs:10:15 [INFO] [stdout] | [INFO] [stdout] 10 | let ss2 = decapsulate(&ct, &keys.secret).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::decapsulate; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `keypair` in this scope [INFO] [stdout] --> tests/kem.rs:17:16 [INFO] [stdout] | [INFO] [stdout] 17 | let keys = keypair(&mut rng).unwrap(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::keypair; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `encapsulate` in this scope [INFO] [stdout] --> tests/kem.rs:18:24 [INFO] [stdout] | [INFO] [stdout] 18 | let (mut ct, ss) = encapsulate(&keys.public, &mut rng).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::encapsulate; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `decapsulate` in this scope [INFO] [stdout] --> tests/kem.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | assert!(decapsulate(&ct, &keys.secret).unwrap() != ss); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::decapsulate; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `KYBER_PUBLICKEYBYTES` in this scope [INFO] [stdout] --> tests/kem.rs:26:18 [INFO] [stdout] | [INFO] [stdout] 26 | let pk: [u8; KYBER_PUBLICKEYBYTES + 3] = [1u8; KYBER_PUBLICKEYBYTES + 3]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::KYBER_PUBLICKEYBYTES; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `KYBER_PUBLICKEYBYTES` in this scope [INFO] [stdout] --> tests/kem.rs:26:52 [INFO] [stdout] | [INFO] [stdout] 26 | let pk: [u8; KYBER_PUBLICKEYBYTES + 3] = [1u8; KYBER_PUBLICKEYBYTES + 3]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::KYBER_PUBLICKEYBYTES; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `encapsulate` in this scope [INFO] [stdout] --> tests/kem.rs:27:16 [INFO] [stdout] | [INFO] [stdout] 27 | assert_eq!(encapsulate(&pk, &mut rng), Err(KyberError::InvalidInput)); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::encapsulate; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `KyberError` [INFO] [stdout] --> tests/kem.rs:27:48 [INFO] [stdout] | [INFO] [stdout] 27 | assert_eq!(encapsulate(&pk, &mut rng), Err(KyberError::InvalidInput)); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `KyberError` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::KyberError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `KYBER_CIPHERTEXTBYTES` in this scope [INFO] [stdout] --> tests/kem.rs:32:18 [INFO] [stdout] | [INFO] [stdout] 32 | let ct: [u8; KYBER_CIPHERTEXTBYTES + 3] = [1u8; KYBER_CIPHERTEXTBYTES + 3]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::KYBER_CIPHERTEXTBYTES; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `KYBER_CIPHERTEXTBYTES` in this scope [INFO] [stdout] --> tests/kem.rs:32:53 [INFO] [stdout] | [INFO] [stdout] 32 | let ct: [u8; KYBER_CIPHERTEXTBYTES + 3] = [1u8; KYBER_CIPHERTEXTBYTES + 3]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::KYBER_CIPHERTEXTBYTES; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `KYBER_SECRETKEYBYTES` in this scope [INFO] [stdout] --> tests/kem.rs:33:18 [INFO] [stdout] | [INFO] [stdout] 33 | let sk: [u8; KYBER_SECRETKEYBYTES] = [1u8; KYBER_SECRETKEYBYTES]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::KYBER_SECRETKEYBYTES; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `KYBER_SECRETKEYBYTES` in this scope [INFO] [stdout] --> tests/kem.rs:33:48 [INFO] [stdout] | [INFO] [stdout] 33 | let sk: [u8; KYBER_SECRETKEYBYTES] = [1u8; KYBER_SECRETKEYBYTES]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::KYBER_SECRETKEYBYTES; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `decapsulate` in this scope [INFO] [stdout] --> tests/kem.rs:34:16 [INFO] [stdout] | [INFO] [stdout] 34 | assert_eq!(decapsulate(&ct, &sk), Err(KyberError::InvalidInput)); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::decapsulate; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `KyberError` [INFO] [stdout] --> tests/kem.rs:34:43 [INFO] [stdout] | [INFO] [stdout] 34 | assert_eq!(decapsulate(&ct, &sk), Err(KyberError::InvalidInput)); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `KyberError` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::KyberError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `KYBER_CIPHERTEXTBYTES` in this scope [INFO] [stdout] --> tests/kem.rs:39:18 [INFO] [stdout] | [INFO] [stdout] 39 | let ct: [u8; KYBER_CIPHERTEXTBYTES] = [1u8; KYBER_CIPHERTEXTBYTES]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::KYBER_CIPHERTEXTBYTES; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `KYBER_CIPHERTEXTBYTES` in this scope [INFO] [stdout] --> tests/kem.rs:39:49 [INFO] [stdout] | [INFO] [stdout] 39 | let ct: [u8; KYBER_CIPHERTEXTBYTES] = [1u8; KYBER_CIPHERTEXTBYTES]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::KYBER_CIPHERTEXTBYTES; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `KYBER_SECRETKEYBYTES` in this scope [INFO] [stdout] --> tests/kem.rs:40:18 [INFO] [stdout] | [INFO] [stdout] 40 | let sk: [u8; KYBER_SECRETKEYBYTES + 3] = [1u8; KYBER_SECRETKEYBYTES + 3]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::KYBER_SECRETKEYBYTES; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `KYBER_SECRETKEYBYTES` in this scope [INFO] [stdout] --> tests/kem.rs:40:52 [INFO] [stdout] | [INFO] [stdout] 40 | let sk: [u8; KYBER_SECRETKEYBYTES + 3] = [1u8; KYBER_SECRETKEYBYTES + 3]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::KYBER_SECRETKEYBYTES; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `decapsulate` in this scope [INFO] [stdout] --> tests/kem.rs:41:16 [INFO] [stdout] | [INFO] [stdout] 41 | assert_eq!(decapsulate(&ct, &sk), Err(KyberError::InvalidInput)); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::decapsulate; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `KyberError` [INFO] [stdout] --> tests/kem.rs:41:43 [INFO] [stdout] | [INFO] [stdout] 41 | assert_eq!(decapsulate(&ct, &sk), Err(KyberError::InvalidInput)); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `KyberError` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::KyberError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `keypair` in this scope [INFO] [stdout] --> tests/kem.rs:47:16 [INFO] [stdout] | [INFO] [stdout] 47 | assert_eq!(keypair(&mut rng), Err(KyberError::RandomBytesGeneration)); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::keypair; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `KyberError` [INFO] [stdout] --> tests/kem.rs:47:39 [INFO] [stdout] | [INFO] [stdout] 47 | assert_eq!(keypair(&mut rng), Err(KyberError::RandomBytesGeneration)); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `KyberError` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::KyberError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `keypair` in this scope [INFO] [stdout] --> tests/kem.rs:53:16 [INFO] [stdout] | [INFO] [stdout] 53 | let keys = keypair(&mut rng).unwrap(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::keypair; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `encapsulate` in this scope [INFO] [stdout] --> tests/kem.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 56 | encapsulate(&keys.public, &mut rng), [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::encapsulate; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `KyberError` [INFO] [stdout] --> tests/kem.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 57 | Err(KyberError::RandomBytesGeneration) [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `KyberError` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::KyberError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `keypair` in this scope [INFO] [stdout] --> tests/kem.rs:64:16 [INFO] [stdout] | [INFO] [stdout] 64 | let keys = keypair(&mut rng).unwrap(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::keypair; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `public` in this scope [INFO] [stdout] --> tests/kem.rs:65:15 [INFO] [stdout] | [INFO] [stdout] 65 | let pk2 = public(&keys.secret); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::public; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `pqc_kyber_kyberslash` (example "ake") due to 7 previous errors [INFO] [stdout] error: aborting due to 30 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stderr] error: could not compile `pqc_kyber_kyberslash` (test "kem") due to 31 previous errors [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Uake` [INFO] [stdout] --> tests/kex.rs:9:21 [INFO] [stdout] | [INFO] [stdout] 9 | let mut alice = Uake::new(); [INFO] [stdout] | ^^^^ use of undeclared type `Uake` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::Uake; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Uake` [INFO] [stdout] --> tests/kex.rs:10:19 [INFO] [stdout] | [INFO] [stdout] 10 | let mut bob = Uake::new(); [INFO] [stdout] | ^^^^ use of undeclared type `Uake` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::Uake; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `keypair` in this scope [INFO] [stdout] --> tests/kex.rs:11:20 [INFO] [stdout] | [INFO] [stdout] 11 | let bob_keys = keypair(&mut rng).unwrap(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::keypair; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Uake` [INFO] [stdout] --> tests/kex.rs:24:21 [INFO] [stdout] | [INFO] [stdout] 24 | let mut alice = Uake::new(); [INFO] [stdout] | ^^^^ use of undeclared type `Uake` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::Uake; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Uake` [INFO] [stdout] --> tests/kex.rs:25:19 [INFO] [stdout] | [INFO] [stdout] 25 | let mut bob = Uake::new(); [INFO] [stdout] | ^^^^ use of undeclared type `Uake` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::Uake; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `keypair` in this scope [INFO] [stdout] --> tests/kex.rs:26:20 [INFO] [stdout] | [INFO] [stdout] 26 | let bob_keys = keypair(&mut rng).unwrap(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::keypair; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `KYBER_PUBLICKEYBYTES` in this scope [INFO] [stdout] --> tests/kex.rs:28:17 [INFO] [stdout] | [INFO] [stdout] 28 | client_init[KYBER_PUBLICKEYBYTES..][..4].copy_from_slice(&[255u8; 4]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::KYBER_PUBLICKEYBYTES; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Uake` [INFO] [stdout] --> tests/kex.rs:39:21 [INFO] [stdout] | [INFO] [stdout] 39 | let mut alice = Uake::new(); [INFO] [stdout] | ^^^^ use of undeclared type `Uake` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::Uake; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Uake` [INFO] [stdout] --> tests/kex.rs:40:19 [INFO] [stdout] | [INFO] [stdout] 40 | let mut bob = Uake::new(); [INFO] [stdout] | ^^^^ use of undeclared type `Uake` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::Uake; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `keypair` in this scope [INFO] [stdout] --> tests/kex.rs:41:20 [INFO] [stdout] | [INFO] [stdout] 41 | let bob_keys = keypair(&mut rng).unwrap(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::keypair; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Uake` [INFO] [stdout] --> tests/kex.rs:55:21 [INFO] [stdout] | [INFO] [stdout] 55 | let mut alice = Uake::new(); [INFO] [stdout] | ^^^^ use of undeclared type `Uake` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::Uake; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Uake` [INFO] [stdout] --> tests/kex.rs:56:19 [INFO] [stdout] | [INFO] [stdout] 56 | let mut bob = Uake::new(); [INFO] [stdout] | ^^^^ use of undeclared type `Uake` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::Uake; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `keypair` in this scope [INFO] [stdout] --> tests/kex.rs:57:20 [INFO] [stdout] | [INFO] [stdout] 57 | let bob_keys = keypair(&mut rng).unwrap(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::keypair; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ake` [INFO] [stdout] --> tests/kex.rs:72:21 [INFO] [stdout] | [INFO] [stdout] 72 | let mut alice = Ake::new(); [INFO] [stdout] | ^^^ use of undeclared type `Ake` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::Ake; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ake` [INFO] [stdout] --> tests/kex.rs:73:19 [INFO] [stdout] | [INFO] [stdout] 73 | let mut bob = Ake::new(); [INFO] [stdout] | ^^^ use of undeclared type `Ake` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::Ake; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `keypair` in this scope [INFO] [stdout] --> tests/kex.rs:74:22 [INFO] [stdout] | [INFO] [stdout] 74 | let alice_keys = keypair(&mut rng).unwrap(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::keypair; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `keypair` in this scope [INFO] [stdout] --> tests/kex.rs:75:20 [INFO] [stdout] | [INFO] [stdout] 75 | let bob_keys = keypair(&mut rng).unwrap(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::keypair; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ake` [INFO] [stdout] --> tests/kex.rs:89:21 [INFO] [stdout] | [INFO] [stdout] 89 | let mut alice = Ake::new(); [INFO] [stdout] | ^^^ use of undeclared type `Ake` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::Ake; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ake` [INFO] [stdout] --> tests/kex.rs:90:19 [INFO] [stdout] | [INFO] [stdout] 90 | let mut bob = Ake::new(); [INFO] [stdout] | ^^^ use of undeclared type `Ake` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::Ake; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `keypair` in this scope [INFO] [stdout] --> tests/kex.rs:91:22 [INFO] [stdout] | [INFO] [stdout] 91 | let alice_keys = keypair(&mut rng).unwrap(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::keypair; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `keypair` in this scope [INFO] [stdout] --> tests/kex.rs:92:20 [INFO] [stdout] | [INFO] [stdout] 92 | let bob_keys = keypair(&mut rng).unwrap(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::keypair; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `KYBER_PUBLICKEYBYTES` in this scope [INFO] [stdout] --> tests/kex.rs:94:17 [INFO] [stdout] | [INFO] [stdout] 94 | client_init[KYBER_PUBLICKEYBYTES..][..4].copy_from_slice(&[255u8; 4]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::KYBER_PUBLICKEYBYTES; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ake` [INFO] [stdout] --> tests/kex.rs:104:21 [INFO] [stdout] | [INFO] [stdout] 104 | let mut alice = Ake::new(); [INFO] [stdout] | ^^^ use of undeclared type `Ake` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::Ake; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ake` [INFO] [stdout] --> tests/kex.rs:105:19 [INFO] [stdout] | [INFO] [stdout] 105 | let mut bob = Ake::new(); [INFO] [stdout] | ^^^ use of undeclared type `Ake` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::Ake; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `keypair` in this scope [INFO] [stdout] --> tests/kex.rs:106:22 [INFO] [stdout] | [INFO] [stdout] 106 | let alice_keys = keypair(&mut rng).unwrap(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::keypair; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `keypair` in this scope [INFO] [stdout] --> tests/kex.rs:107:20 [INFO] [stdout] | [INFO] [stdout] 107 | let bob_keys = keypair(&mut rng).unwrap(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::keypair; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ake` [INFO] [stdout] --> tests/kex.rs:122:21 [INFO] [stdout] | [INFO] [stdout] 122 | let mut alice = Ake::new(); [INFO] [stdout] | ^^^ use of undeclared type `Ake` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::Ake; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ake` [INFO] [stdout] --> tests/kex.rs:123:19 [INFO] [stdout] | [INFO] [stdout] 123 | let mut bob = Ake::new(); [INFO] [stdout] | ^^^ use of undeclared type `Ake` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::Ake; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `keypair` in this scope [INFO] [stdout] --> tests/kex.rs:124:22 [INFO] [stdout] | [INFO] [stdout] 124 | let alice_keys = keypair(&mut rng).unwrap(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::keypair; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `keypair` in this scope [INFO] [stdout] --> tests/kex.rs:125:20 [INFO] [stdout] | [INFO] [stdout] 125 | let bob_keys = keypair(&mut rng).unwrap(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::keypair; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ake` [INFO] [stdout] --> tests/kex.rs:140:21 [INFO] [stdout] | [INFO] [stdout] 140 | let mut alice = Ake::new(); [INFO] [stdout] | ^^^ use of undeclared type `Ake` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::Ake; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ake` [INFO] [stdout] --> tests/kex.rs:141:19 [INFO] [stdout] | [INFO] [stdout] 141 | let mut bob = Ake::new(); [INFO] [stdout] | ^^^ use of undeclared type `Ake` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::Ake; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `keypair` in this scope [INFO] [stdout] --> tests/kex.rs:142:22 [INFO] [stdout] | [INFO] [stdout] 142 | let alice_keys = keypair(&mut rng).unwrap(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::keypair; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `keypair` in this scope [INFO] [stdout] --> tests/kex.rs:143:20 [INFO] [stdout] | [INFO] [stdout] 143 | let bob_keys = keypair(&mut rng).unwrap(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::keypair; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `KYBER_CIPHERTEXTBYTES` in this scope [INFO] [stdout] --> tests/kex.rs:148:17 [INFO] [stdout] | [INFO] [stdout] 148 | server_send[KYBER_CIPHERTEXTBYTES..][..4].copy_from_slice(&[255u8; 4]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::KYBER_CIPHERTEXTBYTES; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `keypair` in this scope [INFO] [stdout] --> tests/kex.rs:156:16 [INFO] [stdout] | [INFO] [stdout] 156 | assert_eq!(keypair(&mut rng), Err(KyberError::RandomBytesGeneration)); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::keypair; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `KyberError` [INFO] [stdout] --> tests/kex.rs:156:39 [INFO] [stdout] | [INFO] [stdout] 156 | assert_eq!(keypair(&mut rng), Err(KyberError::RandomBytesGeneration)); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `KyberError` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::KyberError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Uake` [INFO] [stdout] --> tests/kex.rs:163:21 [INFO] [stdout] | [INFO] [stdout] 163 | let mut alice = Uake::new(); [INFO] [stdout] | ^^^^ use of undeclared type `Uake` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::Uake; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `keypair` in this scope [INFO] [stdout] --> tests/kex.rs:164:20 [INFO] [stdout] | [INFO] [stdout] 164 | let bob_keys = keypair(&mut rng).unwrap(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::keypair; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `KyberError` [INFO] [stdout] --> tests/kex.rs:168:13 [INFO] [stdout] | [INFO] [stdout] 168 | Err(KyberError::RandomBytesGeneration) [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `KyberError` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::KyberError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Uake` [INFO] [stdout] --> tests/kex.rs:176:21 [INFO] [stdout] | [INFO] [stdout] 176 | let mut alice = Uake::new(); [INFO] [stdout] | ^^^^ use of undeclared type `Uake` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::Uake; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Uake` [INFO] [stdout] --> tests/kex.rs:177:19 [INFO] [stdout] | [INFO] [stdout] 177 | let mut bob = Uake::new(); [INFO] [stdout] | ^^^^ use of undeclared type `Uake` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::Uake; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `keypair` in this scope [INFO] [stdout] --> tests/kex.rs:178:20 [INFO] [stdout] | [INFO] [stdout] 178 | let bob_keys = keypair(&mut rng).unwrap(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::keypair; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `KyberError` [INFO] [stdout] --> tests/kex.rs:183:13 [INFO] [stdout] | [INFO] [stdout] 183 | Err(KyberError::RandomBytesGeneration) [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `KyberError` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::KyberError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ake` [INFO] [stdout] --> tests/kex.rs:190:21 [INFO] [stdout] | [INFO] [stdout] 190 | let mut alice = Ake::new(); [INFO] [stdout] | ^^^ use of undeclared type `Ake` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::Ake; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `keypair` in this scope [INFO] [stdout] --> tests/kex.rs:191:20 [INFO] [stdout] | [INFO] [stdout] 191 | let bob_keys = keypair(&mut rng).unwrap(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::keypair; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `KyberError` [INFO] [stdout] --> tests/kex.rs:195:13 [INFO] [stdout] | [INFO] [stdout] 195 | Err(KyberError::RandomBytesGeneration) [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `KyberError` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::KyberError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ake` [INFO] [stdout] --> tests/kex.rs:202:21 [INFO] [stdout] | [INFO] [stdout] 202 | let mut alice = Ake::new(); [INFO] [stdout] | ^^^ use of undeclared type `Ake` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::Ake; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ake` [INFO] [stdout] --> tests/kex.rs:203:19 [INFO] [stdout] | [INFO] [stdout] 203 | let mut bob = Ake::new(); [INFO] [stdout] | ^^^ use of undeclared type `Ake` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::Ake; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `keypair` in this scope [INFO] [stdout] --> tests/kex.rs:204:22 [INFO] [stdout] | [INFO] [stdout] 204 | let alice_keys = keypair(&mut rng).unwrap(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::keypair; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `keypair` in this scope [INFO] [stdout] --> tests/kex.rs:205:20 [INFO] [stdout] | [INFO] [stdout] 205 | let bob_keys = keypair(&mut rng).unwrap(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::keypair; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `KyberError` [INFO] [stdout] --> tests/kex.rs:210:13 [INFO] [stdout] | [INFO] [stdout] 210 | Err(KyberError::RandomBytesGeneration) [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `KyberError` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use pqc_kyber_kyberslash::KyberError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 53 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stderr] error: could not compile `pqc_kyber_kyberslash` (test "kex") due to 54 previous errors [INFO] running `Command { std: "docker" "inspect" "a163caa421c5cd043910706cb8562740c54d3c86f3e8cef2fb484be3a716e3a8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a163caa421c5cd043910706cb8562740c54d3c86f3e8cef2fb484be3a716e3a8", kill_on_drop: false }` [INFO] [stdout] a163caa421c5cd043910706cb8562740c54d3c86f3e8cef2fb484be3a716e3a8