mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
Merge "Secretkeeper: Use byte[64] as SecretId" into main
This commit is contained in:
@@ -35,5 +35,5 @@ package android.hardware.security.secretkeeper;
|
||||
/* @hide */
|
||||
@VintfStability
|
||||
parcelable SecretId {
|
||||
byte[] id;
|
||||
byte[64] id;
|
||||
}
|
||||
|
||||
@@ -25,5 +25,5 @@ parcelable SecretId {
|
||||
/**
|
||||
* 64-byte identifier for a secret.
|
||||
*/
|
||||
byte[] id;
|
||||
byte[64] id;
|
||||
}
|
||||
|
||||
@@ -233,7 +233,7 @@ impl SkClient {
|
||||
fn delete(&self, ids: &[&Id]) {
|
||||
let ids: Vec<SecretId> = ids
|
||||
.iter()
|
||||
.map(|id| SecretId { id: id.0.to_vec() })
|
||||
.map(|id| SecretId { id: id.0 })
|
||||
.collect();
|
||||
self.sk.deleteIds(&ids).unwrap();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user