[dice] Migrate from DICE_COSE_KEY_ALG_VALUE to VM_KEY_ALGORITHM
As the field DICE_COSE_KEY_ALG_VALUE has been removed with the
support of multi-alg version of open-dice.
Going forward, VM_KEY_ALGORITHM will be used as the key
algorithm within different components in VMs.
Test: atest MicrodroidHostTests
Bug: 357008987
Change-Id: I273df743cf2f43a35b749c273e720a058bf7724c
diff --git a/libs/dice/open_dice/Android.bp b/libs/dice/open_dice/Android.bp
index d1129fb..b3cb651 100644
--- a/libs/dice/open_dice/Android.bp
+++ b/libs/dice/open_dice/Android.bp
@@ -14,6 +14,7 @@
name: "libdiced_open_dice_nostd",
defaults: ["libdiced_open_dice_defaults"],
rustlibs: [
+ "libcoset_nostd",
"libopen_dice_android_bindgen_nostd",
"libopen_dice_cbor_bindgen_nostd",
"libzeroize_nostd",
@@ -35,6 +36,7 @@
host_supported: true,
vendor_available: true,
rustlibs: [
+ "libcoset",
"libopen_dice_android_bindgen",
"libopen_dice_cbor_bindgen",
"libserde",
@@ -157,7 +159,6 @@
"--allowlist-var=DICE_PUBLIC_KEY_SIZE",
"--allowlist-var=DICE_PRIVATE_KEY_SIZE",
"--allowlist-var=DICE_SIGNATURE_SIZE",
- "--allowlist-var=DICE_COSE_KEY_ALG_VALUE",
],
}