Searched refs:KeyPermSet (Results 1 – 4 of 4) sorted by relevance
/system/security/keystore2/src/ |
D | permission.rs | 182 pub struct KeyPermSet(pub i32); struct 188 vec: KeyPermSet, 193 pub fn new(v: KeyPermSet) -> Self { in new() 216 impl From<KeyPerm> for KeyPermSet { implementation 223 impl From<i32> for KeyPermSet { implementation 229 impl From<KeyPermSet> for i32 { 230 fn from(p: KeyPermSet) -> i32 { in from() 235 impl KeyPermSet { implementation 237 pub fn includes<T: Into<KeyPermSet>>(&self, other: T) -> bool { in includes() 238 let o: KeyPermSet = other.into(); in includes() [all …]
|
D | utils.rs | 22 use crate::permission::{KeyPerm, KeyPermSet, KeystorePerm}; 66 pub fn check_grant_permission(access_vec: KeyPermSet, key: &KeyDescriptor) -> anyhow::Result<()> { in check_grant_permission() argument 84 access_vector: &Option<KeyPermSet>, in check_key_permission() argument
|
D | database.rs | 54 use crate::permission::KeyPermSet; 2402 ) -> Result<(i64, KeyDescriptor, Option<KeyPermSet>)> { in load_access_tuple() argument 2479 let access_vector: Option<KeyPermSet> = in load_access_tuple() 2640 check_permission: impl Fn(&KeyDescriptor, Option<KeyPermSet>) -> Result<()>, in load_key_entry() 2671 check_permission: &impl Fn(&KeyDescriptor, Option<KeyPermSet>) -> Result<()>, in load_key_entry_internal() 2768 check_permission: impl Fn(&KeyDescriptor, Option<KeyPermSet>) -> Result<()>, in unbind_key() 3088 access_vector: KeyPermSet, in grant() argument 3089 check_permission: impl Fn(&KeyDescriptor, &KeyPermSet) -> Result<()>, in grant() 3272 use crate::permission::{KeyPerm, KeyPermSet}; 3776 const PVEC1: KeyPermSet = key_perm_set![KeyPerm::Use, KeyPerm::GetInfo]; in test_grant_ungrant() [all …]
|
D | service.rs | 337 access_vector: permission::KeyPermSet, in grant() argument
|