Lines Matching refs:key_label
96 LOG(INFO) << "Creating attested key: " << request.key_label(); in CreateGoogleAttestedKeyTask()
125 if (!CreateKey(request.username(), request.key_label(), request.key_type(), in CreateGoogleAttestedKeyTask()
147 request.key_label(), message_id, &key, in CreateGoogleAttestedKeyTask()
175 if (!FindKeyByLabel(request.username(), request.key_label(), &key)) { in GetKeyInfoTask()
356 if (!CreateKey(request.username(), request.key_label(), request.key_type(), in CreateCertifiableKeyTask()
388 if (!FindKeyByLabel(request.username(), request.key_label(), &key)) { in DecryptTask()
414 if (!FindKeyByLabel(request.username(), request.key_label(), &key)) { in SignTask()
443 if (!FindKeyByLabel(request.username(), request.key_label(), &key)) { in RegisterKeyWithChapsTokenTask()
447 if (!key_store_->Register(request.username(), request.key_label(), in RegisterKeyWithChapsTokenTask()
466 DeleteKey(request.username(), request.key_label()); in RegisterKeyWithChapsTokenTask()
589 const std::string& key_label, in FinishCertificateRequest() argument
618 if (!SaveKey(username, key_label, *key)) { in FinishCertificateRequest()
647 const std::string& key_label, in FindKeyByLabel() argument
651 if (!key_store_->Read(username, key_label, &key_data)) { in FindKeyByLabel()
652 LOG(INFO) << "Key not found: " << key_label; in FindKeyByLabel()
656 LOG(ERROR) << "Failed to parse key: " << key_label; in FindKeyByLabel()
663 if (database_pb.device_keys(i).key_name() == key_label) { in FindKeyByLabel()
668 LOG(INFO) << "Key not found: " << key_label; in FindKeyByLabel()
673 const std::string& key_label, in CreateKey() argument
696 key->set_key_name(key_label); in CreateKey()
700 return SaveKey(username, key_label, *key); in CreateKey()
704 const std::string& key_label, in SaveKey() argument
712 if (!key_store_->Write(username, key_label, key_data)) { in SaveKey()
717 if (!AddDeviceKey(key_label, key)) { in SaveKey()
726 const std::string& key_label) { in DeleteKey() argument
728 key_store_->Delete(username, key_label); in DeleteKey()
730 RemoveDeviceKey(key_label); in DeleteKey()
734 bool AttestationService::AddDeviceKey(const std::string& key_label, in AddDeviceKey() argument
740 if (database_pb->device_keys(i).key_name() == key_label) { in AddDeviceKey()
751 void AttestationService::RemoveDeviceKey(const std::string& key_label) { in RemoveDeviceKey() argument
755 if (database_pb->device_keys(i).key_name() == key_label) { in RemoveDeviceKey()