• Home
  • Raw
  • Download

Lines Matching refs:alias

553         alias: &str,  in read_characteristics_file()
556 let blob = Self::read_generic_blob(&self.make_chr_filename(uid, alias, prefix)) in read_characteristics_file()
611 fn read_km_blob_file(&self, uid: u32, alias: &str) -> Result<Option<(Blob, String)>> { in read_km_blob_file()
617 Self::read_generic_blob(&self.make_blob_filename(uid, alias, prefix)) in read_km_blob_file()
643 pub fn read_legacy_keystore_entry(&self, uid: u32, alias: &str) -> Result<Option<Vec<u8>>> { in read_legacy_keystore_entry()
644 let path = match self.make_legacy_keystore_entry_filename(uid, alias) { in read_legacy_keystore_entry()
662 pub fn remove_legacy_keystore_entry(&self, uid: u32, alias: &str) -> Result<()> { in remove_legacy_keystore_entry()
663 let path = match self.make_legacy_keystore_entry_filename(uid, alias) { in remove_legacy_keystore_entry()
741 if let Some(alias) = Self::extract_legacy_alias(&v[sep_pos + 1..]) { in list_legacy_keystore_entries_for_user()
743 entry.insert(alias); in list_legacy_keystore_entries_for_user()
755 fn make_legacy_keystore_entry_filename(&self, uid: u32, alias: &str) -> Option<PathBuf> { in make_legacy_keystore_entry_filename()
757 if Self::is_keystore_alias(alias) { in make_legacy_keystore_entry_filename()
766 let encoded_alias = Self::encode_alias(alias); in make_legacy_keystore_entry_filename()
774 fn make_blob_filename(&self, uid: u32, alias: &str, prefix: &str) -> PathBuf { in make_blob_filename()
776 let encoded_alias = Self::encode_alias(&format!("{}_{}", prefix, alias)); in make_blob_filename()
784 fn make_chr_filename(&self, uid: u32, alias: &str, prefix: &str) -> PathBuf { in make_chr_filename()
786 let encoded_alias = Self::encode_alias(&format!("{}_{}", prefix, alias)); in make_chr_filename()
838 if let Some(alias) = encoded_alias.strip_prefix(prefix) { in extract_keystore_alias()
839 return Self::decode_alias(&alias).ok(); in extract_keystore_alias()
885 if let Some(alias) = Self::extract_keystore_alias(&v[sep_pos + 1..]) { in list_keystore_entries_for_user()
887 entry.insert(alias); in list_keystore_entries_for_user()
939 pub fn remove_keystore_entry(&self, uid: u32, alias: &str) -> Result<bool> { in remove_keystore_entry()
943 let path = self.make_blob_filename(uid, alias, prefix); in remove_keystore_entry()
952 let path = self.make_chr_filename(uid, alias, prefix); in remove_keystore_entry()
970 let path = self.make_blob_filename(uid, alias, prefix); in remove_keystore_entry()
1006 alias: &str, in load_by_uid_alias()
1009 let km_blob = self.read_km_blob_file(uid, alias).context("In load_by_uid_alias.")?; in load_by_uid_alias()
1051 .read_characteristics_file(uid, &prefix, alias, hw_sec_level) in load_by_uid_alias()
1059 match Self::read_generic_blob(&self.make_blob_filename(uid, alias, "USRCERT")) in load_by_uid_alias()
1071 let ca_cert = match Self::read_generic_blob(&self.make_blob_filename(uid, alias, "CACERT")) in load_by_uid_alias()