Allow for P-384 use in DICE chain am: 084f43554e am: a1928fedc9 am: 16bcace733
Original change: https://android-review.googlesource.com/c/platform/system/keymint/+/2506678
Change-Id: Ia414e55650aa2ed76d2e1abd626ba922355d51e9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
diff --git a/ta/src/device.rs b/ta/src/device.rs
index bd4dd9c..0e62897 100644
--- a/ta/src/device.rs
+++ b/ta/src/device.rs
@@ -219,6 +219,7 @@
) -> Result<Vec<u8>, Error> {
let cose_sign_algorithm = match signing_algorithm {
CsrSigningAlgorithm::ES256 => iana::Algorithm::ES256,
+ CsrSigningAlgorithm::ES384 => iana::Algorithm::ES384,
CsrSigningAlgorithm::EdDSA => iana::Algorithm::EdDSA,
};
// Construct `SignedData`
@@ -249,6 +250,7 @@
#[derive(Clone, Copy, Debug)]
pub enum CsrSigningAlgorithm {
ES256,
+ ES384,
EdDSA,
}