Lines Matching refs:UserState
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()
699 UserState::Uninitialized => Err(Error::Rc(ResponseCode::UNINITIALIZED)) in super_encrypt_on_key_init()
1064 pub enum UserState { enum
1077 impl UserState { implementation
1083 ) -> Result<UserState> { in get() argument
1085 Some(super_key) => Ok(UserState::LskfUnlocked(super_key)), in get()
1092 Ok(UserState::LskfLocked) in get()
1094 Ok(UserState::Uninitialized) in get()
1107 ) -> Result<UserState> { in get_with_password_changed() argument
1117 Ok(UserState::Uninitialized) in get_with_password_changed()
1121 Ok(UserState::LskfUnlocked(super_key)) in get_with_password_changed()
1141 ) -> Result<UserState> { in get_with_password_unlock() argument
1145 Ok(UserState::LskfUnlocked(super_key)) in get_with_password_unlock()