[INFO] cloning repository https://github.com/tungtose/window-sec-play [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/tungtose/window-sec-play" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftungtose%2Fwindow-sec-play", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftungtose%2Fwindow-sec-play'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f85c8499b9895425f29108ec0d0e183198385729 [INFO] checking tungtose/window-sec-play against try#38c2997544af84fe301d600d6896397738163002 for pr-154205-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftungtose%2Fwindow-sec-play" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/tungtose/window-sec-play [INFO] finished tweaking git repo https://github.com/tungtose/window-sec-play [INFO] tweaked toml for git repo https://github.com/tungtose/window-sec-play written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/tungtose/window-sec-play on toolchain 38c2997544af84fe301d600d6896397738163002 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+38c2997544af84fe301d600d6896397738163002" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/tungtose/window-sec-play 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" "+38c2997544af84fe301d600d6896397738163002" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded syn v2.0.91 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+38c2997544af84fe301d600d6896397738163002" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 66cf943da1848580c44f97e316ee9ecf48cfa319320cfed07d44c3c98d63200f [INFO] running `Command { std: "docker" "start" "-a" "66cf943da1848580c44f97e316ee9ecf48cfa319320cfed07d44c3c98d63200f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "66cf943da1848580c44f97e316ee9ecf48cfa319320cfed07d44c3c98d63200f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "66cf943da1848580c44f97e316ee9ecf48cfa319320cfed07d44c3c98d63200f", kill_on_drop: false }` [INFO] [stdout] 66cf943da1848580c44f97e316ee9ecf48cfa319320cfed07d44c3c98d63200f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+38c2997544af84fe301d600d6896397738163002" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 241978b7234f9e07ae96428e3326941b6585f58690db2d40ecf2c7cb6fad17ba [INFO] running `Command { std: "docker" "start" "-a" "241978b7234f9e07ae96428e3326941b6585f58690db2d40ecf2c7cb6fad17ba", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.92 [INFO] [stderr] Compiling unicode-ident v1.0.14 [INFO] [stderr] Checking windows-result v0.2.0 [INFO] [stderr] Checking windows-strings v0.1.0 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling syn v2.0.91 [INFO] [stderr] Compiling windows-interface v0.58.0 [INFO] [stderr] Compiling windows-implement v0.58.0 [INFO] [stderr] Checking windows-core v0.58.0 [INFO] [stderr] Checking windows v0.58.0 [INFO] [stderr] Checking winplay v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: cannot find `Win32` in `windows` [INFO] [stdout] --> src/crypto.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | use windows::Win32::Foundation::NTSTATUS; [INFO] [stdout] | ^^^^^ could not find `Win32` in `windows` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `Win32` in `windows` [INFO] [stdout] --> src/crypto.rs:7:14 [INFO] [stdout] | [INFO] [stdout] 7 | use windows::Win32::Security::Cryptography::*; [INFO] [stdout] | ^^^^^ could not find `Win32` in `windows` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `Win32` in `windows` [INFO] [stdout] --> src/handles.rs:5:14 [INFO] [stdout] | [INFO] [stdout] 5 | use windows::Win32::Security::Cryptography::*; [INFO] [stdout] | ^^^^^ could not find `Win32` in `windows` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `Win32` in `windows` [INFO] [stdout] --> src/main.rs:7:14 [INFO] [stdout] | [INFO] [stdout] 7 | use windows::Win32::Security::Cryptography::*; [INFO] [stdout] | ^^^^^ could not find `Win32` in `windows` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `windows::core` [INFO] [stdout] --> src/crypto.rs:5:14 [INFO] [stdout] | [INFO] [stdout] 5 | use windows::core::PCWSTR; [INFO] [stdout] | ^^^^ could not find `core` in `windows` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `Win32` in `windows` [INFO] [stdout] --> src/crypto.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | use windows::Win32::Foundation::NTSTATUS; [INFO] [stdout] | ^^^^^ could not find `Win32` in `windows` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `Win32` in `windows` [INFO] [stdout] --> src/crypto.rs:7:14 [INFO] [stdout] | [INFO] [stdout] 7 | use windows::Win32::Security::Cryptography::*; [INFO] [stdout] | ^^^^^ could not find `Win32` in `windows` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `Win32` in `windows` [INFO] [stdout] --> src/handles.rs:5:14 [INFO] [stdout] | [INFO] [stdout] 5 | use windows::Win32::Security::Cryptography::*; [INFO] [stdout] | ^^^^^ could not find `Win32` in `windows` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `Win32` in `windows` [INFO] [stdout] --> src/main.rs:7:14 [INFO] [stdout] | [INFO] [stdout] 7 | use windows::Win32::Security::Cryptography::*; [INFO] [stdout] | ^^^^^ could not find `Win32` in `windows` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `windows::core` [INFO] [stdout] --> src/crypto.rs:5:14 [INFO] [stdout] | [INFO] [stdout] 5 | use windows::core::PCWSTR; [INFO] [stdout] | ^^^^ could not find `core` in `windows` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `BCRYPT_ALG_HANDLE` in this scope [INFO] [stdout] --> src/crypto.rs:38:35 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn hash_data(alg_hash_handle: BCRYPT_ALG_HANDLE, rgb_msg: &[u8]) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `BCRYPT_OBJECT_LENGTH` in this scope [INFO] [stdout] --> src/crypto.rs:46:13 [INFO] [stdout] | [INFO] [stdout] 46 | BCRYPT_OBJECT_LENGTH, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `BCRYPT_HASH_LENGTH` in this scope [INFO] [stdout] --> src/crypto.rs:83:13 [INFO] [stdout] | [INFO] [stdout] 83 | BCRYPT_HASH_LENGTH, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MS_PLATFORM_CRYPTO_PROVIDER` in this scope [INFO] [stdout] --> src/crypto.rs:109:60 [INFO] [stdout] | [INFO] [stdout] 109 | NCryptOpenStorageProvider(&mut h_prov_raii.handle, MS_PLATFORM_CRYPTO_PROVIDER, 0) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `NCRYPT_KEY_HANDLE` in this scope [INFO] [stdout] --> src/crypto.rs:122:34 [INFO] [stdout] | [INFO] [stdout] 122 | pub fn sign_data_with_key(h_key: NCRYPT_KEY_HANDLE, hash_buffer: &[u8]) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `BCRYPT_KEY_HANDLE` in this scope [INFO] [stdout] --> src/crypto.rs:159:16 [INFO] [stdout] | [INFO] [stdout] 159 | h_tmp_key: BCRYPT_KEY_HANDLE, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `NCRYPT_PROV_HANDLE` in this scope [INFO] [stdout] --> src/crypto.rs:173:35 [INFO] [stdout] | [INFO] [stdout] 173 | pub fn create_or_open_key(h_prov: NCRYPT_PROV_HANDLE, key_name: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `NCRYPT_ECDSA_P256_ALGORITHM` in this scope [INFO] [stdout] --> src/crypto.rs:182:13 [INFO] [stdout] | [INFO] [stdout] 182 | NCRYPT_ECDSA_P256_ALGORITHM, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `NCRYPT_KEY_HANDLE` in this scope [INFO] [stdout] --> src/crypto.rs:231:41 [INFO] [stdout] | [INFO] [stdout] 231 | pub fn export_public_key_to_blob(h_key: NCRYPT_KEY_HANDLE) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `BCRYPT_ECCPUBLIC_BLOB` in this scope [INFO] [stdout] --> src/crypto.rs:239:13 [INFO] [stdout] | [INFO] [stdout] 239 | BCRYPT_ECCPUBLIC_BLOB, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `BCRYPT_ECCPUBLIC_BLOB` in this scope [INFO] [stdout] --> src/crypto.rs:262:13 [INFO] [stdout] | [INFO] [stdout] 262 | BCRYPT_ECCPUBLIC_BLOB, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `BCRYPT_ALG_HANDLE` in this scope [INFO] [stdout] --> src/crypto.rs:280:40 [INFO] [stdout] | [INFO] [stdout] 280 | pub fn import_keypair(alg_sign_handle: BCRYPT_ALG_HANDLE, blob: &[u8]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `BCRYPT_ECCPUBLIC_BLOB` in this scope [INFO] [stdout] --> src/crypto.rs:288:13 [INFO] [stdout] | [INFO] [stdout] 288 | BCRYPT_ECCPUBLIC_BLOB, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `BCRYPT_ALG_HANDLE` in this scope [INFO] [stdout] --> src/handles.rs:8:17 [INFO] [stdout] | [INFO] [stdout] 8 | pub handle: BCRYPT_ALG_HANDLE, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `BCRYPT_ALG_HANDLE` in this scope [INFO] [stdout] --> src/handles.rs:12:24 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn new(handle: BCRYPT_ALG_HANDLE) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `BCRYPT_HASH_HANDLE` in this scope [INFO] [stdout] --> src/handles.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | pub handle: BCRYPT_HASH_HANDLE, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `BCRYPT_HASH_HANDLE` in this scope [INFO] [stdout] --> src/handles.rs:29:24 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn new(handle: BCRYPT_HASH_HANDLE) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `NCRYPT_PROV_HANDLE` in this scope [INFO] [stdout] --> src/handles.rs:44:17 [INFO] [stdout] | [INFO] [stdout] 44 | pub handle: NCRYPT_PROV_HANDLE, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `NCRYPT_PROV_HANDLE` in this scope [INFO] [stdout] --> src/handles.rs:48:24 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn new(handle: NCRYPT_PROV_HANDLE) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `NCRYPT_KEY_HANDLE` in this scope [INFO] [stdout] --> src/handles.rs:63:17 [INFO] [stdout] | [INFO] [stdout] 63 | pub handle: NCRYPT_KEY_HANDLE, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [FMTARGS] {"crate":"winplay","loc":"src/crypto.rs:16:12","p":1,"ph":1,"wa":0,"pa":0,"a":1,"pos":1,"named":0,"cap":0,"ucap":0,"dup":0,"const":0,"constparam":0,"other_dup":0,"d2":0,"d3":0,"d4p":0,"deduped":0,"remaining":0,"a_old":1,"a_opt":1,"sz_no_dedup":16,"sz_old":16,"sz_opt":16} [INFO] [stdout] error[E0425]: cannot find type `NCRYPT_KEY_HANDLE` in this scope [INFO] [stdout] --> src/handles.rs:67:24 [INFO] [stdout] | [INFO] [stdout] 67 | pub fn new(handle: NCRYPT_KEY_HANDLE) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [FMTARGS] {"crate":"winplay","loc":"src/crypto.rs:114:12","p":1,"ph":1,"wa":0,"pa":0,"a":1,"pos":1,"named":0,"cap":0,"ucap":0,"dup":0,"const":0,"constparam":0,"other_dup":0,"d2":0,"d3":0,"d4p":0,"deduped":0,"remaining":0,"a_old":1,"a_opt":1,"sz_no_dedup":16,"sz_old":16,"sz_opt":16} [INFO] [stdout] error[E0425]: cannot find type `BCRYPT_KEY_HANDLE` in this scope [INFO] [stdout] --> src/handles.rs:82:17 [INFO] [stdout] | [INFO] [stdout] 82 | pub handle: BCRYPT_KEY_HANDLE, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [FMTARGS] {"crate":"winplay","loc":"src/crypto.rs:136:57","p":1,"ph":1,"wa":0,"pa":0,"a":1,"pos":1,"named":0,"cap":0,"ucap":0,"dup":0,"const":0,"constparam":0,"other_dup":0,"d2":0,"d3":0,"d4p":0,"deduped":0,"remaining":0,"a_old":1,"a_opt":1,"sz_no_dedup":16,"sz_old":16,"sz_opt":16} [INFO] [stdout] error[E0425]: cannot find type `BCRYPT_KEY_HANDLE` in this scope [INFO] [stdout] --> src/handles.rs:86:24 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn new(handle: BCRYPT_KEY_HANDLE) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [FMTARGS] {"crate":"winplay","loc":"src/crypto.rs:152:57","p":1,"ph":1,"wa":0,"pa":0,"a":1,"pos":1,"named":0,"cap":0,"ucap":0,"dup":0,"const":0,"constparam":0,"other_dup":0,"d2":0,"d3":0,"d4p":0,"deduped":0,"remaining":0,"a_old":1,"a_opt":1,"sz_no_dedup":16,"sz_old":16,"sz_opt":16} [INFO] [stdout] error[E0425]: cannot find value `BCRYPT_SHA1_ALGORITHM` in this scope [INFO] [stdout] --> src/main.rs:13:56 [INFO] [stdout] | [INFO] [stdout] 13 | let alg_hash_handle_raii = init_algorithm_provider(BCRYPT_SHA1_ALGORITHM)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [FMTARGS] {"crate":"winplay","loc":"src/crypto.rs:194:20","p":1,"ph":1,"wa":0,"pa":0,"a":1,"pos":1,"named":0,"cap":0,"ucap":0,"dup":0,"const":0,"constparam":0,"other_dup":0,"d2":0,"d3":0,"d4p":0,"deduped":0,"remaining":0,"a_old":1,"a_opt":1,"sz_no_dedup":16,"sz_old":16,"sz_opt":16} [INFO] [stdout] error[E0425]: cannot find value `BCRYPT_ECDSA_P256_ALGORITHM` in this scope [INFO] [stdout] --> src/main.rs:15:56 [INFO] [stdout] | [INFO] [stdout] 15 | let alg_sign_handle_raii = init_algorithm_provider(BCRYPT_ECDSA_P256_ALGORITHM)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [FMTARGS] {"crate":"winplay","loc":"src/crypto.rs:216:20","p":1,"ph":1,"wa":0,"pa":0,"a":1,"pos":1,"named":0,"cap":0,"ucap":0,"dup":0,"const":0,"constparam":0,"other_dup":0,"d2":0,"d3":0,"d4p":0,"deduped":0,"remaining":0,"a_old":1,"a_opt":1,"sz_no_dedup":16,"sz_old":16,"sz_opt":16} [INFO] [stderr] [FMTARGS] {"crate":"winplay","loc":"src/crypto.rs:224:16","p":1,"ph":1,"wa":0,"pa":0,"a":1,"pos":1,"named":0,"cap":0,"ucap":0,"dup":0,"const":0,"constparam":0,"other_dup":0,"d2":0,"d3":0,"d4p":0,"deduped":0,"remaining":0,"a_old":1,"a_opt":1,"sz_no_dedup":16,"sz_old":16,"sz_opt":16} [INFO] [stderr] [FMTARGS] {"crate":"winplay","loc":"src/crypto.rs:249:12","p":1,"ph":1,"wa":0,"pa":0,"a":1,"pos":1,"named":0,"cap":0,"ucap":0,"dup":0,"const":0,"constparam":0,"other_dup":0,"d2":0,"d3":0,"d4p":0,"deduped":0,"remaining":0,"a_old":1,"a_opt":1,"sz_no_dedup":16,"sz_old":16,"sz_opt":16} [INFO] [stderr] [FMTARGS] {"crate":"winplay","loc":"src/crypto.rs:272:12","p":1,"ph":1,"wa":0,"pa":0,"a":1,"pos":1,"named":0,"cap":0,"ucap":0,"dup":0,"const":0,"constparam":0,"other_dup":0,"d2":0,"d3":0,"d4p":0,"deduped":0,"remaining":0,"a_old":1,"a_opt":1,"sz_no_dedup":16,"sz_old":16,"sz_opt":16} [INFO] [stderr] [FMTARGS] {"crate":"winplay","loc":"src/errors.rs:13:58","p":1,"ph":1,"wa":0,"pa":0,"a":1,"pos":1,"named":0,"cap":0,"ucap":0,"dup":0,"const":0,"constparam":0,"other_dup":0,"d2":0,"d3":0,"d4p":0,"deduped":0,"remaining":0,"a_old":1,"a_opt":1,"sz_no_dedup":16,"sz_old":16,"sz_opt":16} [INFO] [stderr] [FMTARGS] {"crate":"winplay","loc":"src/errors.rs:15:26","p":1,"ph":1,"wa":0,"pa":0,"a":1,"pos":1,"named":0,"cap":0,"ucap":0,"dup":0,"const":0,"constparam":0,"other_dup":0,"d2":0,"d3":0,"d4p":0,"deduped":0,"remaining":0,"a_old":1,"a_opt":1,"sz_no_dedup":16,"sz_old":16,"sz_opt":16} [INFO] [stderr] [FMTARGS] {"crate":"winplay","loc":"src/errors.rs:17:61","p":1,"ph":1,"wa":0,"pa":0,"a":1,"pos":1,"named":0,"cap":0,"ucap":0,"dup":0,"const":0,"constparam":0,"other_dup":0,"d2":0,"d3":0,"d4p":0,"deduped":0,"remaining":0,"a_old":1,"a_opt":1,"sz_no_dedup":16,"sz_old":16,"sz_opt":16} [INFO] [stderr] [FMTARGS] {"crate":"winplay","loc":"src/handles.rs:20:17","p":1,"ph":0,"wa":0,"pa":0,"a":0,"pos":0,"named":0,"cap":0,"ucap":0,"dup":0,"const":0,"constparam":0,"other_dup":0,"d2":0,"d3":0,"d4p":0,"deduped":0,"remaining":0,"a_old":0,"a_opt":0,"sz_no_dedup":0,"sz_old":0,"sz_opt":0} [INFO] [stderr] [FMTARGS] {"crate":"winplay","loc":"src/handles.rs:38:21","p":1,"ph":0,"wa":0,"pa":0,"a":0,"pos":0,"named":0,"cap":0,"ucap":0,"dup":0,"const":0,"constparam":0,"other_dup":0,"d2":0,"d3":0,"d4p":0,"deduped":0,"remaining":0,"a_old":0,"a_opt":0,"sz_no_dedup":0,"sz_old":0,"sz_opt":0} [INFO] [stderr] [FMTARGS] {"crate":"winplay","loc":"src/handles.rs:57:21","p":1,"ph":0,"wa":0,"pa":0,"a":0,"pos":0,"named":0,"cap":0,"ucap":0,"dup":0,"const":0,"constparam":0,"other_dup":0,"d2":0,"d3":0,"d4p":0,"deduped":0,"remaining":0,"a_old":0,"a_opt":0,"sz_no_dedup":0,"sz_old":0,"sz_opt":0} [INFO] [stderr] [FMTARGS] {"crate":"winplay","loc":"src/handles.rs:76:21","p":1,"ph":0,"wa":0,"pa":0,"a":0,"pos":0,"named":0,"cap":0,"ucap":0,"dup":0,"const":0,"constparam":0,"other_dup":0,"d2":0,"d3":0,"d4p":0,"deduped":0,"remaining":0,"a_old":0,"a_opt":0,"sz_no_dedup":0,"sz_old":0,"sz_opt":0} [INFO] [stderr] [FMTARGS] {"crate":"winplay","loc":"src/handles.rs:95:21","p":1,"ph":0,"wa":0,"pa":0,"a":0,"pos":0,"named":0,"cap":0,"ucap":0,"dup":0,"const":0,"constparam":0,"other_dup":0,"d2":0,"d3":0,"d4p":0,"deduped":0,"remaining":0,"a_old":0,"a_opt":0,"sz_no_dedup":0,"sz_old":0,"sz_opt":0} [INFO] [stderr] [FMTARGS] {"crate":"winplay","loc":"src/main.rs:37:13","p":1,"ph":0,"wa":0,"pa":0,"a":0,"pos":0,"named":0,"cap":0,"ucap":0,"dup":0,"const":0,"constparam":0,"other_dup":0,"d2":0,"d3":0,"d4p":0,"deduped":0,"remaining":0,"a_old":0,"a_opt":0,"sz_no_dedup":0,"sz_old":0,"sz_opt":0} [INFO] [stdout] error[E0433]: cannot find type `BCRYPT_ALG_HANDLE` in this scope [INFO] [stdout] --> src/crypto.rs:23:43 [INFO] [stdout] | [INFO] [stdout] 23 | let mut handle_raii = BAlgHandle::new(BCRYPT_ALG_HANDLE::default()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ use of undeclared type `BCRYPT_ALG_HANDLE` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `BCRYPT_OPEN_ALGORITHM_PROVIDER_FLAGS` in this scope [INFO] [stdout] --> src/crypto.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | BCRYPT_OPEN_ALGORITHM_PROVIDER_FLAGS(0), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `BCryptOpenAlgorithmProvider` in this scope [INFO] [stdout] --> src/crypto.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | BCryptOpenAlgorithmProvider( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `BCryptGetProperty` in this scope [INFO] [stdout] --> src/crypto.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | BCryptGetProperty( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `BCRYPT_HASH_HANDLE` in this scope [INFO] [stdout] --> src/crypto.rs:60:50 [INFO] [stdout] | [INFO] [stdout] 60 | let mut bhash_handle_raii = BHashHandle::new(BCRYPT_HASH_HANDLE::default()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ use of undeclared type `BCRYPT_HASH_HANDLE` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `BCryptCreateHash` in this scope [INFO] [stdout] --> src/crypto.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | BCryptCreateHash( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `BCryptHashData` in this scope [INFO] [stdout] --> src/crypto.rs:74:32 [INFO] [stdout] | [INFO] [stdout] 74 | let hash_status = unsafe { BCryptHashData(bhash_handle_raii.handle, rgb_msg, 0) }; [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `BCryptGetProperty` in this scope [INFO] [stdout] --> src/crypto.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 81 | BCryptGetProperty( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `BCryptFinishHash` in this scope [INFO] [stdout] --> src/crypto.rs:98:18 [INFO] [stdout] | [INFO] [stdout] 98 | unsafe { BCryptFinishHash(bhash_handle_raii.handle, &mut hash_buffer, 0) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `NCRYPT_PROV_HANDLE` in this scope [INFO] [stdout] --> src/crypto.rs:106:54 [INFO] [stdout] | [INFO] [stdout] 106 | let mut h_prov_raii = StorageProviderHandle::new(NCRYPT_PROV_HANDLE::default()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ use of undeclared type `NCRYPT_PROV_HANDLE` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `NCryptOpenStorageProvider` in this scope [INFO] [stdout] --> src/crypto.rs:109:9 [INFO] [stdout] | [INFO] [stdout] 109 | NCryptOpenStorageProvider(&mut h_prov_raii.handle, MS_PLATFORM_CRYPTO_PROVIDER, 0) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `NCRYPT_FLAGS` in this scope [INFO] [stdout] --> src/crypto.rs:131:13 [INFO] [stdout] | [INFO] [stdout] 131 | NCRYPT_FLAGS(0), [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `NCryptSignHash` in this scope [INFO] [stdout] --> src/crypto.rs:125:9 [INFO] [stdout] | [INFO] [stdout] 125 | NCryptSignHash( [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `NCRYPT_FLAGS` in this scope [INFO] [stdout] --> src/crypto.rs:147:13 [INFO] [stdout] | [INFO] [stdout] 147 | NCRYPT_FLAGS(0), [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `NCryptSignHash` in this scope [INFO] [stdout] --> src/crypto.rs:141:9 [INFO] [stdout] | [INFO] [stdout] 141 | NCryptSignHash( [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `BCRYPT_FLAGS` in this scope [INFO] [stdout] --> src/crypto.rs:164:81 [INFO] [stdout] | [INFO] [stdout] 164 | unsafe { BCryptVerifySignature(h_tmp_key, None, hash_buffer, signature, BCRYPT_FLAGS(0)) }; [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `BCryptVerifySignature` in this scope [INFO] [stdout] --> src/crypto.rs:164:18 [INFO] [stdout] | [INFO] [stdout] 164 | unsafe { BCryptVerifySignature(h_tmp_key, None, hash_buffer, signature, BCRYPT_FLAGS(0)) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `NCRYPT_KEY_HANDLE` in this scope [INFO] [stdout] --> src/crypto.rs:175:47 [INFO] [stdout] | [INFO] [stdout] 175 | let mut h_key_raii = NCryptKeyHandle::new(NCRYPT_KEY_HANDLE::default()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ use of undeclared type `NCRYPT_KEY_HANDLE` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CERT_KEY_SPEC` in this scope [INFO] [stdout] --> src/crypto.rs:184:13 [INFO] [stdout] | [INFO] [stdout] 184 | CERT_KEY_SPEC(0), [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `NCRYPT_FLAGS` in this scope [INFO] [stdout] --> src/crypto.rs:185:13 [INFO] [stdout] | [INFO] [stdout] 185 | NCRYPT_FLAGS(0), [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `NCryptCreatePersistedKey` in this scope [INFO] [stdout] --> src/crypto.rs:179:9 [INFO] [stdout] | [INFO] [stdout] 179 | NCryptCreatePersistedKey( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `NCRYPT_FLAGS` in this scope [INFO] [stdout] --> src/crypto.rs:192:77 [INFO] [stdout] | [INFO] [stdout] 192 | if let Err(err) = unsafe { NCryptFinalizeKey(h_key_raii.handle, NCRYPT_FLAGS(0)) } { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `NCryptFinalizeKey` in this scope [INFO] [stdout] --> src/crypto.rs:192:40 [INFO] [stdout] | [INFO] [stdout] 192 | if let Err(err) = unsafe { NCryptFinalizeKey(h_key_raii.handle, NCRYPT_FLAGS(0)) } { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CERT_KEY_SPEC` in this scope [INFO] [stdout] --> src/crypto.rs:208:21 [INFO] [stdout] | [INFO] [stdout] 208 | CERT_KEY_SPEC(0), [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `NCRYPT_FLAGS` in this scope [INFO] [stdout] --> src/crypto.rs:209:21 [INFO] [stdout] | [INFO] [stdout] 209 | NCRYPT_FLAGS(0), [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `NCryptOpenKey` in this scope [INFO] [stdout] --> src/crypto.rs:204:17 [INFO] [stdout] | [INFO] [stdout] 204 | NCryptOpenKey( [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `BCRYPT_ALG_HANDLE` in this scope [INFO] [stdout] --> src/crypto.rs:38:35 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn hash_data(alg_hash_handle: BCRYPT_ALG_HANDLE, rgb_msg: &[u8]) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `BCRYPT_OBJECT_LENGTH` in this scope [INFO] [stdout] --> src/crypto.rs:46:13 [INFO] [stdout] | [INFO] [stdout] 46 | BCRYPT_OBJECT_LENGTH, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `BCRYPT_HASH_LENGTH` in this scope [INFO] [stdout] --> src/crypto.rs:83:13 [INFO] [stdout] | [INFO] [stdout] 83 | BCRYPT_HASH_LENGTH, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MS_PLATFORM_CRYPTO_PROVIDER` in this scope [INFO] [stdout] --> src/crypto.rs:109:60 [INFO] [stdout] | [INFO] [stdout] 109 | NCryptOpenStorageProvider(&mut h_prov_raii.handle, MS_PLATFORM_CRYPTO_PROVIDER, 0) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `NCRYPT_KEY_HANDLE` in this scope [INFO] [stdout] --> src/crypto.rs:122:34 [INFO] [stdout] | [INFO] [stdout] 122 | pub fn sign_data_with_key(h_key: NCRYPT_KEY_HANDLE, hash_buffer: &[u8]) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `BCRYPT_KEY_HANDLE` in this scope [INFO] [stdout] --> src/crypto.rs:159:16 [INFO] [stdout] | [INFO] [stdout] 159 | h_tmp_key: BCRYPT_KEY_HANDLE, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `NCRYPT_PROV_HANDLE` in this scope [INFO] [stdout] --> src/crypto.rs:173:35 [INFO] [stdout] | [INFO] [stdout] 173 | pub fn create_or_open_key(h_prov: NCRYPT_PROV_HANDLE, key_name: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `NCRYPT_ECDSA_P256_ALGORITHM` in this scope [INFO] [stdout] --> src/crypto.rs:182:13 [INFO] [stdout] | [INFO] [stdout] 182 | NCRYPT_ECDSA_P256_ALGORITHM, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `NCRYPT_KEY_HANDLE` in this scope [INFO] [stdout] --> src/crypto.rs:231:41 [INFO] [stdout] | [INFO] [stdout] 231 | pub fn export_public_key_to_blob(h_key: NCRYPT_KEY_HANDLE) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `BCRYPT_ECCPUBLIC_BLOB` in this scope [INFO] [stdout] --> src/crypto.rs:239:13 [INFO] [stdout] | [INFO] [stdout] 239 | BCRYPT_ECCPUBLIC_BLOB, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `BCRYPT_ECCPUBLIC_BLOB` in this scope [INFO] [stdout] --> src/crypto.rs:262:13 [INFO] [stdout] | [INFO] [stdout] 262 | BCRYPT_ECCPUBLIC_BLOB, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `BCRYPT_ALG_HANDLE` in this scope [INFO] [stdout] --> src/crypto.rs:280:40 [INFO] [stdout] | [INFO] [stdout] 280 | pub fn import_keypair(alg_sign_handle: BCRYPT_ALG_HANDLE, blob: &[u8]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `BCRYPT_ECCPUBLIC_BLOB` in this scope [INFO] [stdout] --> src/crypto.rs:288:13 [INFO] [stdout] | [INFO] [stdout] 288 | BCRYPT_ECCPUBLIC_BLOB, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `BCRYPT_ALG_HANDLE` in this scope [INFO] [stdout] --> src/handles.rs:8:17 [INFO] [stdout] | [INFO] [stdout] 8 | pub handle: BCRYPT_ALG_HANDLE, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `BCRYPT_ALG_HANDLE` in this scope [INFO] [stdout] --> src/handles.rs:12:24 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn new(handle: BCRYPT_ALG_HANDLE) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `BCRYPT_HASH_HANDLE` in this scope [INFO] [stdout] --> src/handles.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | pub handle: BCRYPT_HASH_HANDLE, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `NCRYPT_FLAGS` in this scope [INFO] [stdout] --> src/crypto.rs:243:13 [INFO] [stdout] | [INFO] [stdout] 243 | NCRYPT_FLAGS(0), [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `NCryptExportKey` in this scope [INFO] [stdout] --> src/crypto.rs:236:9 [INFO] [stdout] | [INFO] [stdout] 236 | NCryptExportKey( [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `NCRYPT_FLAGS` in this scope [INFO] [stdout] --> src/crypto.rs:266:13 [INFO] [stdout] | [INFO] [stdout] 266 | NCRYPT_FLAGS(0), [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `NCryptExportKey` in this scope [INFO] [stdout] --> src/crypto.rs:259:9 [INFO] [stdout] | [INFO] [stdout] 259 | NCryptExportKey( [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `BCRYPT_KEY_HANDLE` in this scope [INFO] [stdout] --> src/crypto.rs:281:51 [INFO] [stdout] | [INFO] [stdout] 281 | let mut h_tmp_key_raii = BCryptKeyHandle::new(BCRYPT_KEY_HANDLE::default()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ use of undeclared type `BCRYPT_KEY_HANDLE` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `BCryptImportKeyPair` in this scope [INFO] [stdout] --> src/crypto.rs:285:9 [INFO] [stdout] | [INFO] [stdout] 285 | BCryptImportKeyPair( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `BCryptCloseAlgorithmProvider` in this scope [INFO] [stdout] --> src/handles.rs:19:26 [INFO] [stdout] | [INFO] [stdout] 19 | let _ = unsafe { BCryptCloseAlgorithmProvider(self.handle, 0) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `BCryptDestroyHash` in this scope [INFO] [stdout] --> src/handles.rs:37:21 [INFO] [stdout] | [INFO] [stdout] 37 | let _ = BCryptDestroyHash(self.handle); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `NCryptFreeObject` in this scope [INFO] [stdout] --> src/handles.rs:56:21 [INFO] [stdout] | [INFO] [stdout] 56 | let _ = NCryptFreeObject(self.handle); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `NCryptFreeObject` in this scope [INFO] [stdout] --> src/handles.rs:75:21 [INFO] [stdout] | [INFO] [stdout] 75 | let _ = NCryptFreeObject(self.handle); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `BCryptDestroyKey` in this scope [INFO] [stdout] --> src/handles.rs:94:21 [INFO] [stdout] | [INFO] [stdout] 94 | let _ = BCryptDestroyKey(self.handle); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `BCRYPT_HASH_HANDLE` in this scope [INFO] [stdout] --> src/handles.rs:29:24 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn new(handle: BCRYPT_HASH_HANDLE) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `NCRYPT_PROV_HANDLE` in this scope [INFO] [stdout] --> src/handles.rs:44:17 [INFO] [stdout] | [INFO] [stdout] 44 | pub handle: NCRYPT_PROV_HANDLE, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `NCRYPT_PROV_HANDLE` in this scope [INFO] [stdout] --> src/handles.rs:48:24 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn new(handle: NCRYPT_PROV_HANDLE) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [FMTARGS] {"crate":"winplay","loc":"src/crypto.rs:16:12","p":1,"ph":1,"wa":0,"pa":0,"a":1,"pos":1,"named":0,"cap":0,"ucap":0,"dup":0,"const":0,"constparam":0,"other_dup":0,"d2":0,"d3":0,"d4p":0,"deduped":0,"remaining":0,"a_old":1,"a_opt":1,"sz_no_dedup":16,"sz_old":16,"sz_opt":16} [INFO] [stdout] error[E0425]: cannot find type `NCRYPT_KEY_HANDLE` in this scope [INFO] [stdout] --> src/handles.rs:63:17 [INFO] [stdout] | [INFO] [stdout] 63 | pub handle: NCRYPT_KEY_HANDLE, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [FMTARGS] {"crate":"winplay","loc":"src/crypto.rs:114:12","p":1,"ph":1,"wa":0,"pa":0,"a":1,"pos":1,"named":0,"cap":0,"ucap":0,"dup":0,"const":0,"constparam":0,"other_dup":0,"d2":0,"d3":0,"d4p":0,"deduped":0,"remaining":0,"a_old":1,"a_opt":1,"sz_no_dedup":16,"sz_old":16,"sz_opt":16} [INFO] [stdout] error[E0425]: cannot find type `NCRYPT_KEY_HANDLE` in this scope [INFO] [stdout] --> src/handles.rs:67:24 [INFO] [stdout] | [INFO] [stdout] 67 | pub fn new(handle: NCRYPT_KEY_HANDLE) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [FMTARGS] {"crate":"winplay","loc":"src/crypto.rs:136:57","p":1,"ph":1,"wa":0,"pa":0,"a":1,"pos":1,"named":0,"cap":0,"ucap":0,"dup":0,"const":0,"constparam":0,"other_dup":0,"d2":0,"d3":0,"d4p":0,"deduped":0,"remaining":0,"a_old":1,"a_opt":1,"sz_no_dedup":16,"sz_old":16,"sz_opt":16} [INFO] [stdout] error[E0425]: cannot find type `BCRYPT_KEY_HANDLE` in this scope [INFO] [stdout] --> src/handles.rs:82:17 [INFO] [stdout] | [INFO] [stdout] 82 | pub handle: BCRYPT_KEY_HANDLE, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [FMTARGS] {"crate":"winplay","loc":"src/crypto.rs:152:57","p":1,"ph":1,"wa":0,"pa":0,"a":1,"pos":1,"named":0,"cap":0,"ucap":0,"dup":0,"const":0,"constparam":0,"other_dup":0,"d2":0,"d3":0,"d4p":0,"deduped":0,"remaining":0,"a_old":1,"a_opt":1,"sz_no_dedup":16,"sz_old":16,"sz_opt":16} [INFO] [stdout] error[E0425]: cannot find type `BCRYPT_KEY_HANDLE` in this scope [INFO] [stdout] --> src/handles.rs:86:24 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn new(handle: BCRYPT_KEY_HANDLE) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [FMTARGS] {"crate":"winplay","loc":"src/crypto.rs:194:20","p":1,"ph":1,"wa":0,"pa":0,"a":1,"pos":1,"named":0,"cap":0,"ucap":0,"dup":0,"const":0,"constparam":0,"other_dup":0,"d2":0,"d3":0,"d4p":0,"deduped":0,"remaining":0,"a_old":1,"a_opt":1,"sz_no_dedup":16,"sz_old":16,"sz_opt":16} [INFO] [stdout] Some errors have detailed explanations: E0425, E0432, E0433. [INFO] [stdout] [INFO] [stderr] [FMTARGS] {"crate":"winplay","loc":"src/crypto.rs:216:20","p":1,"ph":1,"wa":0,"pa":0,"a":1,"pos":1,"named":0,"cap":0,"ucap":0,"dup":0,"const":0,"constparam":0,"other_dup":0,"d2":0,"d3":0,"d4p":0,"deduped":0,"remaining":0,"a_old":1,"a_opt":1,"sz_no_dedup":16,"sz_old":16,"sz_opt":16} [INFO] [stdout] error[E0425]: cannot find value `BCRYPT_SHA1_ALGORITHM` in this scope [INFO] [stdout] --> src/main.rs:13:56 [INFO] [stdout] | [INFO] [stdout] 13 | let alg_hash_handle_raii = init_algorithm_provider(BCRYPT_SHA1_ALGORITHM)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [FMTARGS] {"crate":"winplay","loc":"src/crypto.rs:224:16","p":1,"ph":1,"wa":0,"pa":0,"a":1,"pos":1,"named":0,"cap":0,"ucap":0,"dup":0,"const":0,"constparam":0,"other_dup":0,"d2":0,"d3":0,"d4p":0,"deduped":0,"remaining":0,"a_old":1,"a_opt":1,"sz_no_dedup":16,"sz_old":16,"sz_opt":16} [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `BCRYPT_ECDSA_P256_ALGORITHM` in this scope [INFO] [stdout] --> src/main.rs:15:56 [INFO] [stdout] | [INFO] [stdout] 15 | let alg_sign_handle_raii = init_algorithm_provider(BCRYPT_ECDSA_P256_ALGORITHM)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `Win32` in `windows` [INFO] [stdout] --> examples/hash.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | use windows::Win32::Security::Cryptography::*; [INFO] [stdout] | ^^^^^ could not find `Win32` in `windows` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [FMTARGS] {"crate":"winplay","loc":"src/crypto.rs:249:12","p":1,"ph":1,"wa":0,"pa":0,"a":1,"pos":1,"named":0,"cap":0,"ucap":0,"dup":0,"const":0,"constparam":0,"other_dup":0,"d2":0,"d3":0,"d4p":0,"deduped":0,"remaining":0,"a_old":1,"a_opt":1,"sz_no_dedup":16,"sz_old":16,"sz_opt":16} [INFO] [stdout] error[E0433]: cannot find type `BCRYPT_ALG_HANDLE` in this scope [INFO] [stdout] --> src/crypto.rs:23:43 [INFO] [stdout] | [INFO] [stdout] 23 | let mut handle_raii = BAlgHandle::new(BCRYPT_ALG_HANDLE::default()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ use of undeclared type `BCRYPT_ALG_HANDLE` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [FMTARGS] {"crate":"winplay","loc":"src/crypto.rs:272:12","p":1,"ph":1,"wa":0,"pa":0,"a":1,"pos":1,"named":0,"cap":0,"ucap":0,"dup":0,"const":0,"constparam":0,"other_dup":0,"d2":0,"d3":0,"d4p":0,"deduped":0,"remaining":0,"a_old":1,"a_opt":1,"sz_no_dedup":16,"sz_old":16,"sz_opt":16} [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `BCRYPT_OPEN_ALGORITHM_PROVIDER_FLAGS` in this scope [INFO] [stdout] --> src/crypto.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | BCRYPT_OPEN_ALGORITHM_PROVIDER_FLAGS(0), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [FMTARGS] {"crate":"winplay","loc":"src/errors.rs:13:58","p":1,"ph":1,"wa":0,"pa":0,"a":1,"pos":1,"named":0,"cap":0,"ucap":0,"dup":0,"const":0,"constparam":0,"other_dup":0,"d2":0,"d3":0,"d4p":0,"deduped":0,"remaining":0,"a_old":1,"a_opt":1,"sz_no_dedup":16,"sz_old":16,"sz_opt":16} [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `BCryptOpenAlgorithmProvider` in this scope [INFO] [stdout] --> src/crypto.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | BCryptOpenAlgorithmProvider( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [FMTARGS] {"crate":"winplay","loc":"src/errors.rs:15:26","p":1,"ph":1,"wa":0,"pa":0,"a":1,"pos":1,"named":0,"cap":0,"ucap":0,"dup":0,"const":0,"constparam":0,"other_dup":0,"d2":0,"d3":0,"d4p":0,"deduped":0,"remaining":0,"a_old":1,"a_opt":1,"sz_no_dedup":16,"sz_old":16,"sz_opt":16} [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `BCryptGetProperty` in this scope [INFO] [stdout] --> src/crypto.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | BCryptGetProperty( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [FMTARGS] {"crate":"winplay","loc":"src/errors.rs:17:61","p":1,"ph":1,"wa":0,"pa":0,"a":1,"pos":1,"named":0,"cap":0,"ucap":0,"dup":0,"const":0,"constparam":0,"other_dup":0,"d2":0,"d3":0,"d4p":0,"deduped":0,"remaining":0,"a_old":1,"a_opt":1,"sz_no_dedup":16,"sz_old":16,"sz_opt":16} [INFO] [stdout] error[E0433]: cannot find type `BCRYPT_HASH_HANDLE` in this scope [INFO] [stdout] --> src/crypto.rs:60:50 [INFO] [stdout] | [INFO] [stdout] 60 | let mut bhash_handle_raii = BHashHandle::new(BCRYPT_HASH_HANDLE::default()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ use of undeclared type `BCRYPT_HASH_HANDLE` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [FMTARGS] {"crate":"winplay","loc":"src/handles.rs:20:17","p":1,"ph":0,"wa":0,"pa":0,"a":0,"pos":0,"named":0,"cap":0,"ucap":0,"dup":0,"const":0,"constparam":0,"other_dup":0,"d2":0,"d3":0,"d4p":0,"deduped":0,"remaining":0,"a_old":0,"a_opt":0,"sz_no_dedup":0,"sz_old":0,"sz_opt":0} [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `BCryptCreateHash` in this scope [INFO] [stdout] --> src/crypto.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | BCryptCreateHash( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [FMTARGS] {"crate":"winplay","loc":"src/handles.rs:38:21","p":1,"ph":0,"wa":0,"pa":0,"a":0,"pos":0,"named":0,"cap":0,"ucap":0,"dup":0,"const":0,"constparam":0,"other_dup":0,"d2":0,"d3":0,"d4p":0,"deduped":0,"remaining":0,"a_old":0,"a_opt":0,"sz_no_dedup":0,"sz_old":0,"sz_opt":0} [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `BCryptHashData` in this scope [INFO] [stdout] --> src/crypto.rs:74:32 [INFO] [stdout] | [INFO] [stdout] 74 | let hash_status = unsafe { BCryptHashData(bhash_handle_raii.handle, rgb_msg, 0) }; [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [FMTARGS] {"crate":"winplay","loc":"src/handles.rs:57:21","p":1,"ph":0,"wa":0,"pa":0,"a":0,"pos":0,"named":0,"cap":0,"ucap":0,"dup":0,"const":0,"constparam":0,"other_dup":0,"d2":0,"d3":0,"d4p":0,"deduped":0,"remaining":0,"a_old":0,"a_opt":0,"sz_no_dedup":0,"sz_old":0,"sz_opt":0} [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `BCryptGetProperty` in this scope [INFO] [stdout] --> src/crypto.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 81 | BCryptGetProperty( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [FMTARGS] {"crate":"winplay","loc":"src/handles.rs:76:21","p":1,"ph":0,"wa":0,"pa":0,"a":0,"pos":0,"named":0,"cap":0,"ucap":0,"dup":0,"const":0,"constparam":0,"other_dup":0,"d2":0,"d3":0,"d4p":0,"deduped":0,"remaining":0,"a_old":0,"a_opt":0,"sz_no_dedup":0,"sz_old":0,"sz_opt":0} [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `BCryptFinishHash` in this scope [INFO] [stdout] --> src/crypto.rs:98:18 [INFO] [stdout] | [INFO] [stdout] 98 | unsafe { BCryptFinishHash(bhash_handle_raii.handle, &mut hash_buffer, 0) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [FMTARGS] {"crate":"winplay","loc":"src/handles.rs:95:21","p":1,"ph":0,"wa":0,"pa":0,"a":0,"pos":0,"named":0,"cap":0,"ucap":0,"dup":0,"const":0,"constparam":0,"other_dup":0,"d2":0,"d3":0,"d4p":0,"deduped":0,"remaining":0,"a_old":0,"a_opt":0,"sz_no_dedup":0,"sz_old":0,"sz_opt":0} [INFO] [stdout] error[E0433]: cannot find type `NCRYPT_PROV_HANDLE` in this scope [INFO] [stdout] --> src/crypto.rs:106:54 [INFO] [stdout] | [INFO] [stdout] 106 | let mut h_prov_raii = StorageProviderHandle::new(NCRYPT_PROV_HANDLE::default()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ use of undeclared type `NCRYPT_PROV_HANDLE` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [FMTARGS] {"crate":"winplay","loc":"src/main.rs:37:13","p":1,"ph":0,"wa":0,"pa":0,"a":0,"pos":0,"named":0,"cap":0,"ucap":0,"dup":0,"const":0,"constparam":0,"other_dup":0,"d2":0,"d3":0,"d4p":0,"deduped":0,"remaining":0,"a_old":0,"a_opt":0,"sz_no_dedup":0,"sz_old":0,"sz_opt":0} [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `NCryptOpenStorageProvider` in this scope [INFO] [stdout] --> src/crypto.rs:109:9 [INFO] [stdout] | [INFO] [stdout] 109 | NCryptOpenStorageProvider(&mut h_prov_raii.handle, MS_PLATFORM_CRYPTO_PROVIDER, 0) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `winplay` (bin "winplay") due to 67 previous errors [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `NCRYPT_FLAGS` in this scope [INFO] [stdout] --> src/crypto.rs:131:13 [INFO] [stdout] | [INFO] [stdout] 131 | NCRYPT_FLAGS(0), [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `NCryptSignHash` in this scope [INFO] [stdout] --> src/crypto.rs:125:9 [INFO] [stdout] | [INFO] [stdout] 125 | NCryptSignHash( [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `NCRYPT_FLAGS` in this scope [INFO] [stdout] --> src/crypto.rs:147:13 [INFO] [stdout] | [INFO] [stdout] 147 | NCRYPT_FLAGS(0), [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `NCryptSignHash` in this scope [INFO] [stdout] --> src/crypto.rs:141:9 [INFO] [stdout] | [INFO] [stdout] 141 | NCryptSignHash( [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `BCRYPT_FLAGS` in this scope [INFO] [stdout] --> src/crypto.rs:164:81 [INFO] [stdout] | [INFO] [stdout] 164 | unsafe { BCryptVerifySignature(h_tmp_key, None, hash_buffer, signature, BCRYPT_FLAGS(0)) }; [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `BCryptVerifySignature` in this scope [INFO] [stdout] --> src/crypto.rs:164:18 [INFO] [stdout] | [INFO] [stdout] 164 | unsafe { BCryptVerifySignature(h_tmp_key, None, hash_buffer, signature, BCRYPT_FLAGS(0)) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `NCRYPT_KEY_HANDLE` in this scope [INFO] [stdout] --> src/crypto.rs:175:47 [INFO] [stdout] | [INFO] [stdout] 175 | let mut h_key_raii = NCryptKeyHandle::new(NCRYPT_KEY_HANDLE::default()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ use of undeclared type `NCRYPT_KEY_HANDLE` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CERT_KEY_SPEC` in this scope [INFO] [stdout] --> src/crypto.rs:184:13 [INFO] [stdout] | [INFO] [stdout] 184 | CERT_KEY_SPEC(0), [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `NCRYPT_FLAGS` in this scope [INFO] [stdout] --> src/crypto.rs:185:13 [INFO] [stdout] | [INFO] [stdout] 185 | NCRYPT_FLAGS(0), [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `NCryptCreatePersistedKey` in this scope [INFO] [stdout] --> src/crypto.rs:179:9 [INFO] [stdout] | [INFO] [stdout] 179 | NCryptCreatePersistedKey( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `NCRYPT_FLAGS` in this scope [INFO] [stdout] --> src/crypto.rs:192:77 [INFO] [stdout] | [INFO] [stdout] 192 | if let Err(err) = unsafe { NCryptFinalizeKey(h_key_raii.handle, NCRYPT_FLAGS(0)) } { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `NCryptFinalizeKey` in this scope [INFO] [stdout] --> src/crypto.rs:192:40 [INFO] [stdout] | [INFO] [stdout] 192 | if let Err(err) = unsafe { NCryptFinalizeKey(h_key_raii.handle, NCRYPT_FLAGS(0)) } { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CERT_KEY_SPEC` in this scope [INFO] [stdout] --> src/crypto.rs:208:21 [INFO] [stdout] | [INFO] [stdout] 208 | CERT_KEY_SPEC(0), [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `NCRYPT_FLAGS` in this scope [INFO] [stdout] --> src/crypto.rs:209:21 [INFO] [stdout] | [INFO] [stdout] 209 | NCRYPT_FLAGS(0), [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `NCryptOpenKey` in this scope [INFO] [stdout] --> src/crypto.rs:204:17 [INFO] [stdout] | [INFO] [stdout] 204 | NCryptOpenKey( [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `NCRYPT_FLAGS` in this scope [INFO] [stdout] --> src/crypto.rs:243:13 [INFO] [stdout] | [INFO] [stdout] 243 | NCRYPT_FLAGS(0), [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `NCryptExportKey` in this scope [INFO] [stdout] --> src/crypto.rs:236:9 [INFO] [stdout] | [INFO] [stdout] 236 | NCryptExportKey( [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `NCRYPT_FLAGS` in this scope [INFO] [stdout] --> src/crypto.rs:266:13 [INFO] [stdout] | [INFO] [stdout] 266 | NCRYPT_FLAGS(0), [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `NCryptExportKey` in this scope [INFO] [stdout] --> src/crypto.rs:259:9 [INFO] [stdout] | [INFO] [stdout] 259 | NCryptExportKey( [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `BCRYPT_KEY_HANDLE` in this scope [INFO] [stdout] --> src/crypto.rs:281:51 [INFO] [stdout] | [INFO] [stdout] 281 | let mut h_tmp_key_raii = BCryptKeyHandle::new(BCRYPT_KEY_HANDLE::default()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ use of undeclared type `BCRYPT_KEY_HANDLE` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `BCryptImportKeyPair` in this scope [INFO] [stdout] --> src/crypto.rs:285:9 [INFO] [stdout] | [INFO] [stdout] 285 | BCryptImportKeyPair( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `BCryptCloseAlgorithmProvider` in this scope [INFO] [stdout] --> src/handles.rs:19:26 [INFO] [stdout] | [INFO] [stdout] 19 | let _ = unsafe { BCryptCloseAlgorithmProvider(self.handle, 0) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `BCryptDestroyHash` in this scope [INFO] [stdout] --> src/handles.rs:37:21 [INFO] [stdout] | [INFO] [stdout] 37 | let _ = BCryptDestroyHash(self.handle); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `NCryptFreeObject` in this scope [INFO] [stdout] --> src/handles.rs:56:21 [INFO] [stdout] | [INFO] [stdout] 56 | let _ = NCryptFreeObject(self.handle); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [FMTARGS] {"crate":"hash","loc":"examples/hash.rs:18:31","p":1,"ph":1,"wa":0,"pa":0,"a":1,"pos":1,"named":0,"cap":0,"ucap":0,"dup":0,"const":0,"constparam":0,"other_dup":0,"d2":0,"d3":0,"d4p":0,"deduped":0,"remaining":0,"a_old":1,"a_opt":1,"sz_no_dedup":16,"sz_old":16,"sz_opt":16} [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `NCryptFreeObject` in this scope [INFO] [stdout] --> src/handles.rs:75:21 [INFO] [stdout] | [INFO] [stdout] 75 | let _ = NCryptFreeObject(self.handle); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [FMTARGS] {"crate":"hash","loc":"examples/hash.rs:34:16","p":1,"ph":1,"wa":0,"pa":0,"a":1,"pos":1,"named":0,"cap":0,"ucap":0,"dup":0,"const":0,"constparam":0,"other_dup":0,"d2":0,"d3":0,"d4p":0,"deduped":0,"remaining":0,"a_old":1,"a_opt":1,"sz_no_dedup":16,"sz_old":16,"sz_opt":16} [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `BCryptDestroyKey` in this scope [INFO] [stdout] --> src/handles.rs:94:21 [INFO] [stdout] | [INFO] [stdout] 94 | let _ = BCryptDestroyKey(self.handle); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [FMTARGS] {"crate":"hash","loc":"examples/hash.rs:52:16","p":1,"ph":1,"wa":0,"pa":0,"a":1,"pos":1,"named":0,"cap":0,"ucap":0,"dup":0,"const":0,"constparam":0,"other_dup":0,"d2":0,"d3":0,"d4p":0,"deduped":0,"remaining":0,"a_old":1,"a_opt":1,"sz_no_dedup":16,"sz_old":16,"sz_opt":16} [INFO] [stdout] Some errors have detailed explanations: E0425, E0432, E0433. [INFO] [stdout] [INFO] [stderr] [FMTARGS] {"crate":"hash","loc":"examples/hash.rs:68:31","p":1,"ph":1,"wa":0,"pa":0,"a":1,"pos":1,"named":0,"cap":0,"ucap":0,"dup":0,"const":0,"constparam":0,"other_dup":0,"d2":0,"d3":0,"d4p":0,"deduped":0,"remaining":0,"a_old":1,"a_opt":1,"sz_no_dedup":16,"sz_old":16,"sz_opt":16} [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stderr] [FMTARGS] {"crate":"hash","loc":"examples/hash.rs:74:31","p":1,"ph":1,"wa":0,"pa":0,"a":1,"pos":1,"named":0,"cap":0,"ucap":0,"dup":0,"const":0,"constparam":0,"other_dup":0,"d2":0,"d3":0,"d4p":0,"deduped":0,"remaining":0,"a_old":1,"a_opt":1,"sz_no_dedup":16,"sz_old":16,"sz_opt":16} [INFO] [stdout] error[E0425]: cannot find type `BCRYPT_ALG_HANDLE` in this scope [INFO] [stdout] --> examples/hash.rs:9:29 [INFO] [stdout] | [INFO] [stdout] 9 | let mut alg_handle: BCRYPT_ALG_HANDLE = BCRYPT_ALG_HANDLE::default(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [FMTARGS] {"crate":"hash","loc":"examples/hash.rs:82:31","p":1,"ph":1,"wa":0,"pa":0,"a":1,"pos":1,"named":0,"cap":0,"ucap":0,"dup":0,"const":0,"constparam":0,"other_dup":0,"d2":0,"d3":0,"d4p":0,"deduped":0,"remaining":0,"a_old":1,"a_opt":1,"sz_no_dedup":16,"sz_old":16,"sz_opt":16} [INFO] [stdout] error[E0425]: cannot find value `BCRYPT_SHA256_ALGORITHM` in this scope [INFO] [stdout] --> examples/hash.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | BCRYPT_SHA256_ALGORITHM, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [FMTARGS] {"crate":"hash","loc":"examples/hash.rs:85:17","p":2,"ph":1,"wa":0,"pa":0,"a":1,"pos":1,"named":0,"cap":0,"ucap":0,"dup":0,"const":0,"constparam":0,"other_dup":0,"d2":0,"d3":0,"d4p":0,"deduped":0,"remaining":0,"a_old":1,"a_opt":1,"sz_no_dedup":16,"sz_old":16,"sz_opt":16} [INFO] [stdout] error[E0425]: cannot find value `BCRYPT_OBJECT_LENGTH` in this scope [INFO] [stdout] --> examples/hash.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | BCRYPT_OBJECT_LENGTH, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `BCRYPT_HASH_LENGTH` in this scope [INFO] [stdout] --> examples/hash.rs:44:13 [INFO] [stdout] | [INFO] [stdout] 44 | BCRYPT_HASH_LENGTH, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `BCRYPT_ALG_HANDLE` in this scope [INFO] [stdout] --> examples/hash.rs:9:49 [INFO] [stdout] | [INFO] [stdout] 9 | let mut alg_handle: BCRYPT_ALG_HANDLE = BCRYPT_ALG_HANDLE::default(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ use of undeclared type `BCRYPT_ALG_HANDLE` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `BCRYPT_OPEN_ALGORITHM_PROVIDER_FLAGS` in this scope [INFO] [stdout] --> examples/hash.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | BCRYPT_OPEN_ALGORITHM_PROVIDER_FLAGS(0), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `BCryptOpenAlgorithmProvider` in this scope [INFO] [stdout] --> examples/hash.rs:10:39 [INFO] [stdout] | [INFO] [stdout] 10 | let open_al_provider_status = BCryptOpenAlgorithmProvider( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `BCryptGetProperty` in this scope [INFO] [stdout] --> examples/hash.rs:24:37 [INFO] [stdout] | [INFO] [stdout] 24 | let get_object_len_status = BCryptGetProperty( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `BCryptGetProperty` in this scope [INFO] [stdout] --> examples/hash.rs:42:35 [INFO] [stdout] | [INFO] [stdout] 42 | let get_hash_len_status = BCryptGetProperty( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `BCRYPT_HASH_HANDLE` in this scope [INFO] [stdout] --> examples/hash.rs:60:32 [INFO] [stdout] | [INFO] [stdout] 60 | let mut bhash_handle = BCRYPT_HASH_HANDLE::default(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ use of undeclared type `BCRYPT_HASH_HANDLE` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `BCryptCreateHash` in this scope [INFO] [stdout] --> examples/hash.rs:65:13 [INFO] [stdout] | [INFO] [stdout] 65 | BCryptCreateHash(alg_handle, &mut bhash_handle, Some(&mut buffer), None, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `BCryptHashData` in this scope [INFO] [stdout] --> examples/hash.rs:72:27 [INFO] [stdout] | [INFO] [stdout] 72 | let hash_status = BCryptHashData(bhash_handle, &RGB_MSG, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `BCryptFinishHash` in this scope [INFO] [stdout] --> examples/hash.rs:79:23 [INFO] [stdout] | [INFO] [stdout] 79 | let fn_hash = BCryptFinishHash(bhash_handle, &mut hash_buffer, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `BCryptCloseAlgorithmProvider` in this scope [INFO] [stdout] --> examples/hash.rs:88:17 [INFO] [stdout] | [INFO] [stdout] 88 | let _ = BCryptCloseAlgorithmProvider(alg_handle, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `BCryptDestroyHash` in this scope [INFO] [stdout] --> examples/hash.rs:89:17 [INFO] [stdout] | [INFO] [stdout] 89 | let _ = BCryptDestroyHash(bhash_handle); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stderr] error: could not compile `winplay` (example "hash") due to 16 previous errors [INFO] [stderr] error: could not compile `winplay` (bin "winplay" test) due to 67 previous errors [INFO] running `Command { std: "docker" "inspect" "241978b7234f9e07ae96428e3326941b6585f58690db2d40ecf2c7cb6fad17ba", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "241978b7234f9e07ae96428e3326941b6585f58690db2d40ecf2c7cb6fad17ba", kill_on_drop: false }` [INFO] [stdout] 241978b7234f9e07ae96428e3326941b6585f58690db2d40ecf2c7cb6fad17ba