Merge "Secretkeeper: Use byte[64] as SecretId" into main

This commit is contained in:
Shikha Panwar
2023-12-22 10:04:46 +00:00
committed by Gerrit Code Review
3 changed files with 3 additions and 3 deletions

View File

@@ -35,5 +35,5 @@ package android.hardware.security.secretkeeper;
/* @hide */
@VintfStability
parcelable SecretId {
byte[] id;
byte[64] id;
}

View File

@@ -25,5 +25,5 @@ parcelable SecretId {
/**
* 64-byte identifier for a secret.
*/
byte[] id;
byte[64] id;
}

View File

@@ -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();
}