commit | 90cd4f158f70ab97f2e3d9e1bab1826315e19125 | [log] [tgz] |
---|---|---|
author | Pierre-Clément Tosi <ptosi@google.com> | Fri Feb 17 11:19:56 2023 +0000 |
committer | Pierre-Clément Tosi <ptosi@google.com> | Fri Feb 24 14:18:26 2023 +0000 |
tree | 326f8d3c0c234f593e7943311337b800096ba438 | |
parent | 1cc5eb7ae9c3144b39e21351855397d3b6e46f6e [diff] |
pvmfw: Encrypt instance.img entries As the host owns the files backing the virtio-blk devices, encrypt the entries in a tamper-evident way. Derive the private key used for encryption from the sealing CDI. Note that this patch uses a _randnonce() AEAD but doesn't provide entropy, which will be added in a future patch. Implement a wrapper for BoringSSL AEAD functions, key derivation, hashing, and error handling. Implement the CRYPTO_sysrand* symbols those require. Add sterror(), required by ERR_reason_error_string, to vmbase instead of using the Bionic version, which is harder to integrate due to thread-safety support and TLS layout. Error reporting also requires the standard bsearch() function. Note: Entries added to an instance.img before applying this patch will now be rejected. Bug: 249723852 Test: atest MicrodroidHostTests Change-Id: If41aa8e1961121d9aee116c14b54d983dd10f61e
This repository contains userspace services related to running virtual machines on Android, especially protected virtual machines. See the getting started documentation and Microdroid README for more information.