Commit Graph

5 Commits

Author SHA1 Message Date
Alan Stokes 6472ccd6e5 Migrate to Rust 2021 edition
I only wanted this in one place, but thought we might as well do it
all in one go.

In a couple of places I added an explicit edition instead of using the
default (whatever that is).

See https://doc.rust-lang.org/edition-guide/rust-2021/index.html.

Test: find . -name "Android.bp" -type f|xargs grep edition | grep -v 2021
Test: atest ComposHostTestCases MicrodroidHostTestCases
Change-Id: I4de050078b303cc5614d230e0d36d5454d60a807
2022-08-31 14:40:53 +01:00
Jeff Vander Stoep a8dc271b7f migrate to clap 3.x
Bug: 229854484
Test: atest
Change-Id: Iae1ad1b5f7c2832c11bf2db09e7985ddaaf927d4
2022-07-29 05:48:40 +02:00
Jeff Vander Stoep abc89252bd Temporarily use libclap_deprecated
Temporarily use clap 2.x during the migration process to 3.x.

Bug: 229854484
Test: atest
Change-Id: Ic1991b5b923bf38f8f70e7da07d6d91bc07e1d3c
2022-07-27 00:15:25 +02:00
Andrew Walbran d0ef400bd1 Factor out Rust client library for VirtualizationService.
This reduces code duplication, and will also be useful for Rust tests.

Test: ComposHostTestCases compos_key_tests
Change-Id: I13c41d3b2bbe506495b723e7739f3181cb033f0f
2022-05-23 18:51:14 +00:00
Alan Stokes 16fb8555e8 Rewrite key management & signing
Extend compos_helper to support signing, use it from CompOS.

Expose the public key from the VM. Rename compos_verify_key to
compos_verify and get it to verify the signature against the current
instance's public key.

Also move DICE access to compos_key_main. There's no use having it in
the library - neither the tests nor compos_verify can use it - and it
complicates the build rules.

There's a lot more that can be deleted, but I'll do that in a
follow-up; this is big enough already.

Bug: 218494522
Test: atest CompOsSigningHostTest CompOsDenialHostTest
Change-Id: I2d71f68a595d5ddadb2e7b16937fa6855f5db0ab
2022-02-17 16:58:32 +00:00