Merge "Secretkeeper: use Ed25519 identity key" into main

This commit is contained in:
David Drysdale
2024-01-10 12:11:35 +00:00
committed by Gerrit Code Review
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)