mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
Merge "Secretkeeper: use Ed25519 identity key" into main am: b87fae42d8 am: 1479a638f9
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2900721 Change-Id: I313f3876c40f0a2fa0a06941bf16b351c5579610 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -34,6 +34,7 @@ rust_library {
|
|||||||
"libauthgraph_core",
|
"libauthgraph_core",
|
||||||
"libauthgraph_hal",
|
"libauthgraph_hal",
|
||||||
"libbinder_rs",
|
"libbinder_rs",
|
||||||
|
"libcoset",
|
||||||
"liblog_rust",
|
"liblog_rust",
|
||||||
"libsecretkeeper_core_nostd",
|
"libsecretkeeper_core_nostd",
|
||||||
"libsecretkeeper_comm_nostd",
|
"libsecretkeeper_comm_nostd",
|
||||||
|
|||||||
@@ -53,8 +53,12 @@ impl LocalTa {
|
|||||||
let mut crypto_impls = boring::crypto_trait_impls();
|
let mut crypto_impls = boring::crypto_trait_impls();
|
||||||
let storage_impl = Box::new(store::InMemoryStore::default());
|
let storage_impl = Box::new(store::InMemoryStore::default());
|
||||||
let sk_ta = Rc::new(RefCell::new(
|
let sk_ta = Rc::new(RefCell::new(
|
||||||
SecretkeeperTa::new(&mut crypto_impls, storage_impl)
|
SecretkeeperTa::new(
|
||||||
.expect("Failed to create local Secretkeeper TA"),
|
&mut crypto_impls,
|
||||||
|
storage_impl,
|
||||||
|
coset::iana::EllipticCurve::Ed25519,
|
||||||
|
)
|
||||||
|
.expect("Failed to create local Secretkeeper TA"),
|
||||||
));
|
));
|
||||||
let mut ag_ta = AuthGraphTa::new(
|
let mut ag_ta = AuthGraphTa::new(
|
||||||
AuthGraphParticipant::new(crypto_impls, sk_ta.clone(), MAX_OPENED_SESSIONS)
|
AuthGraphParticipant::new(crypto_impls, sk_ta.clone(), MAX_OPENED_SESSIONS)
|
||||||
|
|||||||
Reference in New Issue
Block a user