Merge "Secretkeeper: use Ed25519 identity key" into main am: b87fae42d8 am: 1479a638f9 am: c703fefad0

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2900721

Change-Id: I7cc3158152888b5544827ee09b7e6f7cded915c2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
David Drysdale
2024-01-10 13:52:23 +00:00
committed by Automerger Merge Worker
2 changed files with 7 additions and 2 deletions

View File

@@ -34,6 +34,7 @@ rust_library {
"libauthgraph_core",
"libauthgraph_hal",
"libbinder_rs",
"libcoset",
"liblog_rust",
"libsecretkeeper_core_nostd",
"libsecretkeeper_comm_nostd",

View File

@@ -53,8 +53,12 @@ impl LocalTa {
let mut crypto_impls = boring::crypto_trait_impls();
let storage_impl = Box::new(store::InMemoryStore::default());
let sk_ta = Rc::new(RefCell::new(
SecretkeeperTa::new(&mut crypto_impls, storage_impl)
.expect("Failed to create local Secretkeeper TA"),
SecretkeeperTa::new(
&mut crypto_impls,
storage_impl,
coset::iana::EllipticCurve::Ed25519,
)
.expect("Failed to create local Secretkeeper TA"),
));
let mut ag_ta = AuthGraphTa::new(
AuthGraphParticipant::new(crypto_impls, sk_ta.clone(), MAX_OPENED_SESSIONS)