Skip to content

Repo: Update rust-crypto crates#3330

Merged
smalis-msft merged 7 commits intomicrosoft:mainfrom
smalis-msft:upd-rsa
Apr 21, 2026
Merged

Repo: Update rust-crypto crates#3330
smalis-msft merged 7 commits intomicrosoft:mainfrom
smalis-msft:upd-rsa

Conversation

@smalis-msft
Copy link
Copy Markdown
Contributor

This resolves component governance warnings.

Copilot AI review requested due to automatic review settings April 20, 2026 16:32
@smalis-msft smalis-msft requested a review from a team as a code owner April 20, 2026 16:32
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates RustCrypto-related dependencies (notably der, rsa, sha2) to address component governance warnings, and adapts OpenVMM/OpenHCL code to the updated APIs.

Changes:

  • Bump workspace crypto crates (der → 0.8, sha2 → 0.11, rsa → 0.10.0-rc.17) and refresh Cargo.lock.
  • Update test IGVM agent crypto shims to match new rand_core/digest APIs and rsa big-int types.
  • Adjust OpenHCL boot hashing configuration to avoid cpuid usage via cfg-based sha2 backend selection.

Reviewed changes

Copilot reviewed 7 out of 8 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
vm/devices/get/test_igvm_agent_lib/src/test_crypto.rs Updates digest/rand-core trait usage for the test-only crypto helpers.
vm/devices/get/test_igvm_agent_lib/src/lib.rs Adapts RSA-OAEP usage and JWK→RSA conversion to updated rsa APIs.
vm/devices/get/test_igvm_agent_lib/Cargo.toml Enables needed rsa features (std, encoding) for this test library.
vm/devices/firmware/firmware_uefi/src/service/nvram/spec_services/auth_var_crypto.rs Updates der API usage for ASN.1 tag number construction.
openhcl/openhcl_boot/build.rs Adds crate-local cfgs to force sha2 “soft” backend for x86_64 boot code.
openhcl/openhcl_boot/Cargo.toml Removes sha2 force-soft feature usage (now handled via cfg).
Cargo.toml Bumps workspace dependency versions for der, rsa, sha2.
Cargo.lock Lockfile updates reflecting new RustCrypto dependency graph.

Comment thread vm/devices/get/test_igvm_agent_lib/src/lib.rs
Comment thread openhcl/openhcl_boot/build.rs Outdated
Copilot AI review requested due to automatic review settings April 20, 2026 17:05
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 7 out of 8 changed files in this pull request and generated 3 comments.

Comment thread openhcl/openhcl_boot/build.rs Outdated
Comment thread openhcl/openhcl_boot/Cargo.toml
Comment thread vm/devices/get/test_igvm_agent_lib/src/lib.rs Outdated
@github-actions
Copy link
Copy Markdown

The previous attempt emitted `cargo:rustc-cfg=sha2_backend="soft"` from
`openhcl_boot`'s build.rs, but those cfgs only apply to the crate that
emits them; they do not propagate to the `sha2` dependency and so did
not force the soft backend. As a result the default backend with runtime
cpuid-based feature detection was still compiled in.

Move the cfgs into `openhcl/minimal_rt/x86_64-config.toml` as target
rustflags, which are applied to every crate in the build (including
sha2), so the software backend is actually selected. Also emit the
matching `--check-cfg` declarations to avoid spurious
`unexpected_cfgs` warnings.
Copilot AI review requested due to automatic review settings April 20, 2026 19:39
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 7 out of 8 changed files in this pull request and generated no new comments.

@smalis-msft smalis-msft added the release-ci-required Add to a PR to trigger PR gates in release mode label Apr 20, 2026
@smalis-msft smalis-msft merged commit 0545701 into microsoft:main Apr 21, 2026
85 of 86 checks passed
@smalis-msft smalis-msft deleted the upd-rsa branch April 21, 2026 18:51
benhillis pushed a commit that referenced this pull request Apr 21, 2026
This resolves component governance warnings.
gurasinghMS pushed a commit to gurasinghMS/openvmm that referenced this pull request Apr 22, 2026
This resolves component governance warnings.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-ci-required Add to a PR to trigger PR gates in release mode

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants