Home
last modified time | relevance | path

Searched refs:request (Results 1 – 25 of 116) sorted by relevance

12345

/system/tpm/attestation/server/
Ddbus_service_test.cc76 CreateGoogleAttestedKeyRequest request; in TEST_F() local
77 request.set_key_label("label"); in TEST_F()
78 request.set_key_type(KEY_TYPE_ECC); in TEST_F()
79 request.set_key_usage(KEY_USAGE_SIGN); in TEST_F()
80 request.set_certificate_profile(ENTERPRISE_MACHINE_CERTIFICATE); in TEST_F()
81 request.set_username("username"); in TEST_F()
82 request.set_origin("origin"); in TEST_F()
85 const CreateGoogleAttestedKeyRequest& request, in TEST_F()
88 EXPECT_EQ("label", request.key_label()); in TEST_F()
89 EXPECT_EQ(KEY_TYPE_ECC, request.key_type()); in TEST_F()
[all …]
Dattestation_service_test.cc109 CreateGoogleAttestedKeyRequest request; in GetCreateRequest() local
110 request.set_key_label("label"); in GetCreateRequest()
111 request.set_key_type(KEY_TYPE_ECC); in GetCreateRequest()
112 request.set_key_usage(KEY_USAGE_SIGN); in GetCreateRequest()
113 request.set_certificate_profile(ENTERPRISE_MACHINE_CERTIFICATE); in GetCreateRequest()
114 request.set_username("user"); in GetCreateRequest()
115 request.set_origin("origin"); in GetCreateRequest()
116 return request; in GetCreateRequest()
140 const ServerRequest& request, in FakeCAEnroll() argument
143 EXPECT_TRUE(request_pb.ParseFromString(request.GetDataAsString())); in FakeCAEnroll()
[all …]
Dattestation_service.cc82 const CreateGoogleAttestedKeyRequest& request, in CreateGoogleAttestedKey() argument
88 request, in CreateGoogleAttestedKey()
99 const CreateGoogleAttestedKeyRequest& request, in CreateGoogleAttestedKeyTask() argument
101 LOG(INFO) << "Creating attested key: " << request.key_label(); in CreateGoogleAttestedKeyTask()
132 if (!CreateKey(request.username(), request.key_label(), request.key_type(), in CreateGoogleAttestedKeyTask()
133 request.key_usage(), &key)) { in CreateGoogleAttestedKeyTask()
139 if (!CreateCertificateRequest(request.username(), in CreateGoogleAttestedKeyTask()
141 request.certificate_profile(), in CreateGoogleAttestedKeyTask()
142 request.origin(), in CreateGoogleAttestedKeyTask()
158 request.username(), in CreateGoogleAttestedKeyTask()
[all …]
Dattestation_service.h72 const CreateGoogleAttestedKeyRequest& request,
74 void GetKeyInfo(const GetKeyInfoRequest& request,
76 void GetEndorsementInfo(const GetEndorsementInfoRequest& request,
79 const GetAttestationKeyInfoRequest& request,
82 const ActivateAttestationKeyRequest& request,
85 const CreateCertifiableKeyRequest& request,
87 void Decrypt(const DecryptRequest& request,
89 void Sign(const SignRequest& request, const SignCallback& callback) override;
91 const RegisterKeyWithChapsTokenRequest& request,
139 const CreateGoogleAttestedKeyRequest& request,
[all …]
Ddbus_service.cc77 const CreateGoogleAttestedKeyRequest& request) { in HandleCreateGoogleAttestedKey() argument
89 request, in HandleCreateGoogleAttestedKey()
95 const GetKeyInfoRequest& request) { in HandleGetKeyInfo() argument
107 request, in HandleGetKeyInfo()
114 const GetEndorsementInfoRequest& request) { in HandleGetEndorsementInfo() argument
126 request, in HandleGetEndorsementInfo()
133 const GetAttestationKeyInfoRequest& request) { in HandleGetAttestationKeyInfo() argument
145 request, in HandleGetAttestationKeyInfo()
152 const ActivateAttestationKeyRequest& request) { in HandleActivateAttestationKey() argument
164 request, in HandleActivateAttestationKey()
[all …]
/system/tpm/tpm_manager/server/
Ddbus_service_test.cc62 const RequestProtobufType& request, in ExecuteMethod() argument
68 writer.AppendProtoAsArrayOfBytes(request); in ExecuteMethod()
100 GetTpmStatusRequest request; in TEST_F() local
102 ExecuteMethod(kGetTpmStatus, request, &reply, kTpmOwnershipInterface); in TEST_F()
106 GetTpmStatusRequest request; in TEST_F() local
109 const GetTpmStatusRequest& request, in TEST_F()
122 ExecuteMethod(kGetTpmStatus, request, &reply, kTpmOwnershipInterface); in TEST_F()
135 const TakeOwnershipRequest& request, in TEST_F()
141 TakeOwnershipRequest request; in TEST_F() local
143 ExecuteMethod(kTakeOwnership, request, &reply, kTpmOwnershipInterface); in TEST_F()
[all …]
Dtpm_manager_service.cc62 void TpmManagerService::GetTpmStatus(const GetTpmStatusRequest& request, in GetTpmStatus() argument
65 request, callback, &TpmManagerService::GetTpmStatusTask); in GetTpmStatus()
69 const GetTpmStatusRequest& request, in GetTpmStatusTask() argument
93 void TpmManagerService::TakeOwnership(const TakeOwnershipRequest& request, in TakeOwnership() argument
96 request, callback, &TpmManagerService::TakeOwnershipTask); in TakeOwnership()
100 const TakeOwnershipRequest& request, in TakeOwnershipTask() argument
115 const RemoveOwnerDependencyRequest& request, in RemoveOwnerDependency() argument
118 request, callback, &TpmManagerService::RemoveOwnerDependencyTask); in RemoveOwnerDependency()
122 const RemoveOwnerDependencyRequest& request, in RemoveOwnerDependencyTask() argument
130 RemoveOwnerDependency(request.owner_dependency(), &local_data); in RemoveOwnerDependencyTask()
[all …]
Dtpm_manager_service.h73 void GetTpmStatus(const GetTpmStatusRequest& request,
75 void TakeOwnership(const TakeOwnershipRequest& request,
78 const RemoveOwnerDependencyRequest& request,
82 void DefineNvram(const DefineNvramRequest& request,
84 void DestroyNvram(const DestroyNvramRequest& request,
86 void WriteNvram(const WriteNvramRequest& request,
88 void ReadNvram(const ReadNvramRequest& request,
90 void IsNvramDefined(const IsNvramDefinedRequest& request,
92 void IsNvramLocked(const IsNvramLockedRequest& request,
94 void GetNvramSize(const GetNvramSizeRequest& request,
[all …]
/system/keymaster/include/keymaster/
Dandroid_keymaster.h53 void GetVersion(const GetVersionRequest& request, GetVersionResponse* response);
54 void SupportedAlgorithms(const SupportedAlgorithmsRequest& request,
56 void SupportedBlockModes(const SupportedBlockModesRequest& request,
58 void SupportedPaddingModes(const SupportedPaddingModesRequest& request,
60 void SupportedDigests(const SupportedDigestsRequest& request,
62 void SupportedImportFormats(const SupportedImportFormatsRequest& request,
64 void SupportedExportFormats(const SupportedExportFormatsRequest& request,
67 void AddRngEntropy(const AddEntropyRequest& request, AddEntropyResponse* response);
68 void GenerateKey(const GenerateKeyRequest& request, GenerateKeyResponse* response);
69 void GetKeyCharacteristics(const GetKeyCharacteristicsRequest& request,
[all …]
/system/keymaster/
Dandroid_keymaster.cpp140 void AndroidKeymaster::SupportedBlockModes(const SupportedBlockModesRequest& request, in SupportedBlockModes() argument
142 GetSupported(*context_, request.algorithm, request.purpose, in SupportedBlockModes()
146 void AndroidKeymaster::SupportedPaddingModes(const SupportedPaddingModesRequest& request, in SupportedPaddingModes() argument
148 GetSupported(*context_, request.algorithm, request.purpose, in SupportedPaddingModes()
152 void AndroidKeymaster::SupportedDigests(const SupportedDigestsRequest& request, in SupportedDigests() argument
154 GetSupported(*context_, request.algorithm, request.purpose, &OperationFactory::SupportedDigests, in SupportedDigests()
158 void AndroidKeymaster::SupportedImportFormats(const SupportedImportFormatsRequest& request, in SupportedImportFormats() argument
160 if (response == NULL || !check_supported(*context_, request.algorithm, response)) in SupportedImportFormats()
165 context_->GetKeyFactory(request.algorithm)->SupportedImportFormats(&count); in SupportedImportFormats()
169 void AndroidKeymaster::SupportedExportFormats(const SupportedExportFormatsRequest& request, in SupportedExportFormats() argument
[all …]
/system/tpm/tpm_manager/client/
Dtpm_nvram_dbus_proxy_test.cc55 DefineNvramRequest request; in TEST_F() local
56 EXPECT_TRUE(reader.PopArrayOfBytesAsProto(&request)); in TEST_F()
57 EXPECT_TRUE(request.has_index()); in TEST_F()
58 EXPECT_EQ(nvram_index, request.index()); in TEST_F()
59 EXPECT_TRUE(request.has_length()); in TEST_F()
60 EXPECT_EQ(nvram_length, request.length()); in TEST_F()
77 DefineNvramRequest request; in TEST_F() local
78 request.set_index(nvram_index); in TEST_F()
79 request.set_length(nvram_length); in TEST_F()
80 proxy_.DefineNvram(request, base::Bind(callback)); in TEST_F()
[all …]
Dtpm_nvram_dbus_proxy.cc50 void TpmNvramDBusProxy::DefineNvram(const DefineNvramRequest& request, in DefineNvram() argument
52 CallMethod<DefineNvramReply>(tpm_manager::kDefineNvram, request, callback); in DefineNvram()
55 void TpmNvramDBusProxy::DestroyNvram(const DestroyNvramRequest& request, in DestroyNvram() argument
57 CallMethod<DestroyNvramReply>(tpm_manager::kDestroyNvram, request, callback); in DestroyNvram()
60 void TpmNvramDBusProxy::WriteNvram(const WriteNvramRequest& request, in WriteNvram() argument
62 CallMethod<WriteNvramReply>(tpm_manager::kWriteNvram, request, callback); in WriteNvram()
65 void TpmNvramDBusProxy::ReadNvram(const ReadNvramRequest& request, in ReadNvram() argument
67 CallMethod<ReadNvramReply>(tpm_manager::kReadNvram, request, callback); in ReadNvram()
70 void TpmNvramDBusProxy::IsNvramDefined(const IsNvramDefinedRequest& request, in IsNvramDefined() argument
73 tpm_manager::kIsNvramDefined, request, callback); in IsNvramDefined()
[all …]
Dmain.cc227 GetTpmStatusRequest request; in HandleGetTpmStatus() local
229 request, in HandleGetTpmStatus()
235 TakeOwnershipRequest request; in HandleTakeOwnership() local
237 request, in HandleTakeOwnership()
243 RemoveOwnerDependencyRequest request; in HandleRemoveOwnerDependency() local
244 request.set_owner_dependency(owner_dependency); in HandleRemoveOwnerDependency()
246 request, in HandleRemoveOwnerDependency()
252 DefineNvramRequest request; in HandleDefineNvram() local
253 request.set_index(index); in HandleDefineNvram()
254 request.set_length(length); in HandleDefineNvram()
[all …]
Dtpm_ownership_dbus_proxy_test.cc53 GetTpmStatusRequest request; in TEST_F() local
54 EXPECT_TRUE(reader.PopArrayOfBytesAsProto(&request)); in TEST_F()
84 GetTpmStatusRequest request; in TEST_F() local
85 proxy_.GetTpmStatus(request, base::Bind(callback)); in TEST_F()
95 TakeOwnershipRequest request; in TEST_F() local
96 EXPECT_TRUE(reader.PopArrayOfBytesAsProto(&request)); in TEST_F()
114 TakeOwnershipRequest request; in TEST_F() local
115 proxy_.TakeOwnership(request, base::Bind(callback)); in TEST_F()
126 RemoveOwnerDependencyRequest request; in TEST_F() local
127 EXPECT_TRUE(reader.PopArrayOfBytesAsProto(&request)); in TEST_F()
[all …]
Dtpm_nvram_dbus_proxy.h48 void DefineNvram(const DefineNvramRequest& request,
50 void DestroyNvram(const DestroyNvramRequest& request,
52 void WriteNvram(const WriteNvramRequest& request,
54 void ReadNvram(const ReadNvramRequest& request,
56 void IsNvramDefined(const IsNvramDefinedRequest& request,
58 void IsNvramLocked(const IsNvramLockedRequest& request,
60 void GetNvramSize(const GetNvramSizeRequest& request,
73 const RequestProtobufType& request,
/system/update_engine/payload_consumer/
Dxz_extent_writer.cc76 xz_buf request; in Write() local
77 request.in = input; in Write()
78 request.in_pos = 0; in Write()
79 request.in_size = count; in Write()
82 request.out = output_buffer.data(); in Write()
83 request.out_size = output_buffer.size(); in Write()
85 request.out_pos = 0; in Write()
87 xz_ret ret = xz_dec_run(stream_, &request); in Write()
93 if (request.out_pos == 0) in Write()
97 underlying_writer_->Write(output_buffer.data(), request.out_pos)); in Write()
[all …]
/system/core/debuggerd/
Ddebuggerd.cpp77 static void wait_for_user_action(const debugger_request_t& request) { in wait_for_user_action() argument
88 request.pid, request.tid); in wait_for_user_action()
100 ALOGI("debuggerd resuming process %d", request.pid); in wait_for_user_action()
154 static bool selinux_action_allowed(int s, debugger_request_t* request) in selinux_action_allowed() argument
161 …if (request->action <= 0 || request->action >= (sizeof(debuggerd_perms)/sizeof(debuggerd_perms[0])… in selinux_action_allowed()
162 ALOGE("SELinux: No permission defined for debugger action %d", request->action); in selinux_action_allowed()
166 perm = debuggerd_perms[request->action]; in selinux_action_allowed()
173 if (getpidcon(request->tid, &tcon) < 0) { in selinux_action_allowed()
174 ALOGE("Cannot get context for tid %d\n", request->tid); in selinux_action_allowed()
178 allowed = (selinux_check_access(scon, tcon, tclass, perm, reinterpret_cast<void*>(request)) == 0); in selinux_action_allowed()
[all …]
/system/tpm/attestation/client/
Dmain.cc289 CreateGoogleAttestedKeyRequest request; in CallCreateGoogleAttestedKey() local
290 request.set_key_label(label); in CallCreateGoogleAttestedKey()
291 request.set_key_type(KEY_TYPE_RSA); in CallCreateGoogleAttestedKey()
292 request.set_key_usage(KEY_USAGE_SIGN); in CallCreateGoogleAttestedKey()
293 request.set_certificate_profile(ENTERPRISE_MACHINE_CERTIFICATE); in CallCreateGoogleAttestedKey()
294 request.set_username(username); in CallCreateGoogleAttestedKey()
296 request, in CallCreateGoogleAttestedKey()
302 GetKeyInfoRequest request; in CallGetKeyInfo() local
303 request.set_key_label(label); in CallGetKeyInfo()
304 request.set_username(username); in CallGetKeyInfo()
[all …]
Ddbus_proxy_test.cc82 CreateGoogleAttestedKeyRequest request; in TEST_F() local
83 request.set_key_label("label"); in TEST_F()
84 request.set_key_type(KEY_TYPE_ECC); in TEST_F()
85 request.set_key_usage(KEY_USAGE_SIGN); in TEST_F()
86 request.set_certificate_profile(ENTERPRISE_MACHINE_CERTIFICATE); in TEST_F()
87 request.set_username("user"); in TEST_F()
88 request.set_origin("origin"); in TEST_F()
89 proxy_.CreateGoogleAttestedKey(request, base::Bind(callback)); in TEST_F()
132 GetKeyInfoRequest request; in TEST_F() local
133 request.set_key_label("label"); in TEST_F()
[all …]
Ddbus_proxy.h43 const CreateGoogleAttestedKeyRequest& request,
45 void GetKeyInfo(const GetKeyInfoRequest& request,
47 void GetEndorsementInfo(const GetEndorsementInfoRequest& request,
50 const GetAttestationKeyInfoRequest& request,
53 const ActivateAttestationKeyRequest& request,
56 const CreateCertifiableKeyRequest& request,
58 void Decrypt(const DecryptRequest& request,
60 void Sign(const SignRequest& request, const SignCallback& callback) override;
62 const RegisterKeyWithChapsTokenRequest& request,
Ddbus_proxy.cc52 const CreateGoogleAttestedKeyRequest& request, in CreateGoogleAttestedKey() argument
66 request); in CreateGoogleAttestedKey()
69 void DBusProxy::GetKeyInfo(const GetKeyInfoRequest& request, in GetKeyInfo() argument
83 request); in GetKeyInfo()
86 void DBusProxy::GetEndorsementInfo(const GetEndorsementInfoRequest& request, in GetEndorsementInfo() argument
100 request); in GetEndorsementInfo()
104 const GetAttestationKeyInfoRequest& request, in GetAttestationKeyInfo() argument
118 request); in GetAttestationKeyInfo()
122 const ActivateAttestationKeyRequest& request, in ActivateAttestationKey() argument
136 request); in ActivateAttestationKey()
[all …]
/system/webservd/webservd/
Ddbus_request_handler.cc32 void OnError(Request* request, in OnError() argument
39 request->Complete(brillo::http::status_code::InternalServerError, {}, in OnError()
51 void DBusRequestHandler::HandleRequest(Request* request) { in HandleRequest() argument
53 for (const auto& pair : request->GetHeaders()) in HandleRequest()
59 for (const auto& file : request->GetFileInfo()) { in HandleRequest()
65 for (const auto& pair : request->GetDataGet()) in HandleRequest()
68 for (const auto& pair : request->GetDataPost()) in HandleRequest()
72 base::Unretained(request), in HandleRequest()
75 auto request_id = std::make_tuple(request->GetProtocolHandlerID(), in HandleRequest()
76 request->GetRequestHandlerID(), in HandleRequest()
[all …]
/system/tpm/attestation/common/
Dattestation_interface.h45 const CreateGoogleAttestedKeyRequest& request,
50 virtual void GetKeyInfo(const GetKeyInfoRequest& request,
58 const GetEndorsementInfoRequest& request,
66 const GetAttestationKeyInfoRequest& request,
74 const ActivateAttestationKeyRequest& request,
82 const CreateCertifiableKeyRequest& request,
87 virtual void Decrypt(const DecryptRequest& request,
92 virtual void Sign(const SignRequest& request,
100 const RegisterKeyWithChapsTokenRequest& request,
/system/update_engine/
Dtest_http_server.cc83 bool ParseRequest(int fd, HttpRequest* request) { in ParseRequest() argument
98 request->raw_headers = headers; in ParseRequest()
111 request->url = terms[1]; in ParseRequest()
112 LOG(INFO) << "URL: " << request->url; in ParseRequest()
126 request->start_offset = atoll(range.c_str() + strlen("bytes=")); in ParseRequest()
129 request->end_offset = atoll(range.c_str() + range.find('-') + 1) + 1; in ParseRequest()
130 request->return_code = kHttpResponsePartialContent; in ParseRequest()
133 (intmax_t)request->start_offset); in ParseRequest()
134 if (request->end_offset > 0) in ParseRequest()
136 (intmax_t)request->end_offset); in ParseRequest()
[all …]
/system/tpm/tpm_manager/common/
Dmock_tpm_nvram_interface.h31 MOCK_METHOD2(DefineNvram, void(const DefineNvramRequest& request,
33 MOCK_METHOD2(DestroyNvram, void(const DestroyNvramRequest& request,
35 MOCK_METHOD2(WriteNvram, void(const WriteNvramRequest& request,
37 MOCK_METHOD2(ReadNvram, void(const ReadNvramRequest& request,
39 MOCK_METHOD2(IsNvramDefined, void(const IsNvramDefinedRequest& request,
41 MOCK_METHOD2(IsNvramLocked, void(const IsNvramLockedRequest& request,
43 MOCK_METHOD2(GetNvramSize, void(const GetNvramSizeRequest& request,

12345