Home | History | Annotate | Download | only in keymaster

Lines Matching defs:error

65         response->error = KM_ERROR_UNSUPPORTED_ALGORITHM;
78 rsp->error = KM_ERROR_OK;
86 response->error = KM_ERROR_OK;
95 response->error = KM_ERROR_MEMORY_ALLOCATION_FAILED;
108 response->error = KM_ERROR_UNSUPPORTED_PURPOSE;
159 response->error = context_->AddRngEntropy(request.random_data.peek_read(),
173 response->error = KM_ERROR_UNSUPPORTED_ALGORITHM;
178 response->error = factory->GenerateKey(request.key_description, &key_blob,
180 if (response->error == KM_ERROR_OK)
191 response->error =
194 if (response->error != KM_ERROR_OK)
201 keymaster_algorithm_t* algorithm, keymaster_error_t* error) {
202 *error = KM_ERROR_UNSUPPORTED_ALGORITHM;
208 *error = KM_ERROR_OK;
222 response->error = LoadKey(request.key_blob, request.additional_params, &hw_enforced,
224 if (response->error != KM_ERROR_OK)
227 response->error = KM_ERROR_UNKNOWN_ERROR;
232 response->error = KM_ERROR_UNSUPPORTED_PURPOSE;
238 factory->CreateOperation(*key, request.additional_params, &response->error));
244 response->error = KM_ERROR_UNKNOWN_ERROR;
248 response->error = context_->enforcement_policy()->AuthorizeOperation(
251 if (response->error != KM_ERROR_OK)
256 response->error = operation->Begin(request.additional_params, &response->output_params);
257 if (response->error != KM_ERROR_OK)
261 response->error = operation_table_->Add(operation.release(), &response->op_handle);
269 response->error = KM_ERROR_INVALID_OPERATION_HANDLE;
275 response->error = context_->enforcement_policy()->AuthorizeOperation(
278 if (response->error != KM_ERROR_OK)
282 response->error =
285 if (response->error != KM_ERROR_OK) {
286 // Any error invalidates the operation.
296 response->error = KM_ERROR_INVALID_OPERATION_HANDLE;
302 response->error = context_->enforcement_policy()->AuthorizeOperation(
305 if (response->error != KM_ERROR_OK)
309 response->error = operation->Finish(request.additional_params, request.signature,
321 response->error = KM_ERROR_INVALID_OPERATION_HANDLE;
325 response->error = operation->Abort();
336 response->error =
339 if (response->error != KM_ERROR_OK)
344 GetKeyFactory(*context_, hw_enforced, sw_enforced, &algorithm, &response->error);
349 response->error = key_factory->LoadKey(key_material, hw_enforced, sw_enforced, &key);
350 if (response->error != KM_ERROR_OK)
355 response->error = key->formatted_key_material(request.key_format, &out_key, &size);
356 if (response->error == KM_ERROR_OK) {
371 response->error = KM_ERROR_UNSUPPORTED_ALGORITHM;
375 response->error = factory->ImportKey(request.key_description, request.key_format,
378 if (response->error == KM_ERROR_OK)
386 response->error = context_->DeleteKey(KeymasterKeyBlob(request.key_blob));
392 response->error = context_->DeleteAllKeys();
401 keymaster_error_t error = context_->ParseKeyBlob(KeymasterKeyBlob(key_blob), additional_params,
403 if (error != KM_ERROR_OK)
404 return error;
407 *factory = GetKeyFactory(*context_, *hw_enforced, *sw_enforced, &algorithm, &error);
408 if (error != KM_ERROR_OK)
409 return error;