Searched refs:UserState (Results 1 – 7 of 7) sorted by relevance
/system/security/keystore/ |
D | user_state.h | 40 class UserState; variable 42 template <typename UserState> using LockedUserState = ProxyLock<UnlockProxyLockHelper<UserState>>; 44 class UserState { 46 explicit UserState(uid_t userId); 63 ResponseCode copyMasterKey(LockedUserState<UserState>* src); 64 ResponseCode copyMasterKeyFile(LockedUserState<UserState>* src); 72 bool operator<(const UserState& rhs) const; 99 bool operator<(uid_t userId, const UserState& rhs); 103 LockedUserState<UserState> getUserState(uid_t userId); 104 LockedUserState<UserState> getUserStateByUid(uid_t uid); [all …]
|
D | user_state.cpp | 38 UserState::UserState(uid_t userId) in UserState() function in keystore::UserState 42 bool UserState::operator<(const UserState& rhs) const { in operator <() 46 bool UserState::operator<(uid_t userId) const { in operator <() 50 bool operator<(uid_t userId, const UserState& rhs) { in operator <() 54 bool UserState::initialize() { in initialize() 70 void UserState::setState(State state) { in setState() 74 void UserState::zeroizeMasterKeysInMemory() { in zeroizeMasterKeysInMemory() 79 bool UserState::deleteMasterKey() { in deleteMasterKey() 85 ResponseCode UserState::initialize(const android::String8& pw) { in initialize() 97 ResponseCode UserState::copyMasterKey(LockedUserState<UserState>* src) { in copyMasterKey() [all …]
|
/system/security/keystore2/src/ |
D | maintenance.rs | 24 use crate::super_key::UserState; 30 UserState::UserState as AidlUserState, 83 UserState::get_with_password_changed( in on_user_password_changed() 93 UserState::LskfLocked => { in on_user_password_changed() 110 UserState::reset_user( in add_or_remove_user() 144 UserState::get(&mut db.borrow_mut(), &LEGACY_MIGRATOR, &SUPER_KEY, user_id as u32) in get_state() 149 UserState::Uninitialized => Ok(AidlUserState::UNINITIALIZED), in get_state() 150 UserState::LskfUnlocked(_) => Ok(AidlUserState::LSKF_UNLOCKED), in get_state() 151 UserState::LskfLocked => Ok(AidlUserState::LSKF_LOCKED), in get_state()
|
D | super_key.rs | 525 ) -> Result<UserState> { in check_and_unlock_super_key() argument 536 Ok(UserState::LskfUnlocked(super_key)) in check_and_unlock_super_key() 538 None => Ok(UserState::Uninitialized), in check_and_unlock_super_key() 554 ) -> Result<UserState> { in check_and_initialize_super_key() argument 560 Ok(UserState::LskfLocked) in check_and_initialize_super_key() 588 Ok(UserState::LskfUnlocked(super_key)) in check_and_initialize_super_key() 590 Ok(UserState::Uninitialized) in check_and_initialize_super_key() 689 match UserState::get(db, legacy_migrator, self, user_id) in super_encrypt_on_key_init() 692 UserState::LskfUnlocked(super_key) => { in super_encrypt_on_key_init() 696 UserState::LskfLocked => { in super_encrypt_on_key_init() [all …]
|
D | authorization.rs | 20 use crate::super_key::UserState; 160 if let UserState::Uninitialized = DB in on_lock_screen_event() 162 UserState::get_with_password_unlock( in on_lock_screen_event()
|
/system/security/keystore2/aidl/android/security/maintenance/ |
D | IKeystoreMaintenance.aidl | 19 import android.security.maintenance.UserState; 90 UserState getState(in int userId); in getState()
|
D | UserState.aidl | 19 enum UserState { enum
|