Home | History | Annotate | Download | only in crypto

Lines Matching full:username_hash

479   bool InitializeNSSForChromeOSUser(const std::string& username_hash,
482 if (chromeos_user_map_.find(username_hash) != chromeos_user_map_.end()) {
484 DVLOG(2) << username_hash << " already initialized.";
490 "%s %s", kUserNSSDatabaseName, username_hash.c_str());
492 chromeos_user_map_[username_hash] =
497 bool ShouldInitializeTPMForChromeOSUser(const std::string& username_hash) {
499 DCHECK(chromeos_user_map_.find(username_hash) != chromeos_user_map_.end());
501 return !chromeos_user_map_[username_hash]
505 void WillInitializeTPMForChromeOSUser(const std::string& username_hash) {
507 DCHECK(chromeos_user_map_.find(username_hash) != chromeos_user_map_.end());
509 chromeos_user_map_[username_hash]
513 void InitializeTPMForChromeOSUser(const std::string& username_hash,
516 DCHECK(chromeos_user_map_.find(username_hash) != chromeos_user_map_.end());
517 DCHECK(chromeos_user_map_[username_hash]->
534 username_hash, base::Passed(&tpm_args)),
539 const std::string& username_hash,
542 DVLOG(2) << "Got tpm slot for " << username_hash << " "
544 chromeos_user_map_[username_hash]->SetPrivateSlot(
549 const std::string& username_hash) {
551 VLOG(1) << "using software private slot for " << username_hash;
552 DCHECK(chromeos_user_map_.find(username_hash) != chromeos_user_map_.end());
553 DCHECK(chromeos_user_map_[username_hash]->
556 chromeos_user_map_[username_hash]->SetPrivateSlot(
557 chromeos_user_map_[username_hash]->GetPublicSlot());
561 const std::string& username_hash) {
564 if (username_hash.empty()) {
565 DVLOG(2) << "empty username_hash";
569 if (chromeos_user_map_.find(username_hash) == chromeos_user_map_.end()) {
570 LOG(ERROR) << username_hash << " not initialized.";
573 return chromeos_user_map_[username_hash]->GetPublicSlot();
577 const std::string& username_hash,
581 if (username_hash.empty()) {
582 DVLOG(2) << "empty username_hash";
590 DCHECK(chromeos_user_map_.find(username_hash) != chromeos_user_map_.end());
592 return chromeos_user_map_[username_hash]->GetPrivateSlot(callback);
595 void CloseChromeOSUserForTesting(const std::string& username_hash) {
597 auto i = chromeos_user_map_.find(username_hash);
926 bool InitializeNSSForChromeOSUser(const std::string& username_hash,
928 return g_nss_singleton.Get().InitializeNSSForChromeOSUser(username_hash,
932 bool ShouldInitializeTPMForChromeOSUser(const std::string& username_hash) {
934 username_hash);
937 void WillInitializeTPMForChromeOSUser(const std::string& username_hash) {
938 g_nss_singleton.Get().WillInitializeTPMForChromeOSUser(username_hash);
942 const std::string& username_hash,
944 g_nss_singleton.Get().InitializeTPMForChromeOSUser(username_hash, slot_id);
948 const std::string& username_hash) {
950 username_hash);
953 ScopedPK11Slot GetPublicSlotForChromeOSUser(const std::string& username_hash) {
954 return g_nss_singleton.Get().GetPublicSlotForChromeOSUser(username_hash);
958 const std::string& username_hash,
960 return g_nss_singleton.Get().GetPrivateSlotForChromeOSUser(username_hash,
964 void CloseChromeOSUserForTesting(const std::string& username_hash) {
965 g_nss_singleton.Get().CloseChromeOSUserForTesting(username_hash);