Lines Matching refs:context_
69 : context_(context), operation_table_(new OperationTable(operation_table_size)) {} in AndroidKeymaster()
112 const keymaster_algorithm_t* algorithms = context_->GetSupportedAlgorithms(&algorithm_count); in SupportedAlgorithms()
142 GetSupported(*context_, request.algorithm, request.purpose, in SupportedBlockModes()
148 GetSupported(*context_, request.algorithm, request.purpose, in SupportedPaddingModes()
154 GetSupported(*context_, request.algorithm, request.purpose, &OperationFactory::SupportedDigests, in SupportedDigests()
160 if (response == NULL || !check_supported(*context_, request.algorithm, response)) in SupportedImportFormats()
165 context_->GetKeyFactory(request.algorithm)->SupportedImportFormats(&count); in SupportedImportFormats()
171 if (response == NULL || !check_supported(*context_, request.algorithm, response)) in SupportedExportFormats()
176 context_->GetKeyFactory(request.algorithm)->SupportedExportFormats(&count); in SupportedExportFormats()
182 response->error = context_->AddRngEntropy(request.random_data.peek_read(), in AddRngEntropy()
195 !(factory = context_->GetKeyFactory(algorithm))) in GenerateKey()
215 context_->ParseKeyBlob(KeymasterKeyBlob(request.key_blob), request.additional_params, in GetKeyCharacteristics()
220 response->error = CheckVersionInfo(response->enforced, response->unenforced, *context_); in GetKeyCharacteristics()
267 if (context_->enforcement_policy()) { in BeginOperation()
270 if (!context_->enforcement_policy()->CreateKeyId(request.key_blob, &key_id)) in BeginOperation()
273 response->error = context_->enforcement_policy()->AuthorizeOperation( in BeginOperation()
299 if (context_->enforcement_policy()) { in UpdateOperation()
300 response->error = context_->enforcement_policy()->AuthorizeOperation( in UpdateOperation()
328 if (context_->enforcement_policy()) { in FinishOperation()
329 response->error = context_->enforcement_policy()->AuthorizeOperation( in FinishOperation()
366 context_->ParseKeyBlob(KeymasterKeyBlob(request.key_blob), request.additional_params, in ExportKey()
373 GetKeyFactory(*context_, hw_enforced, sw_enforced, &algorithm, &response->error); in ExportKey()
411 response->error = key->GenerateAttestation(*context_, request.attest_params, tee_enforced, in AttestKey()
420 response->error = context_->UpgradeKeyBlob(KeymasterKeyBlob(request.key_blob), in UpgradeKey()
435 !(factory = context_->GetKeyFactory(algorithm))) in ImportKey()
451 response->error = context_->DeleteKey(KeymasterKeyBlob(request.key_blob)); in DeleteKey()
457 response->error = context_->DeleteAllKeys(); in DeleteAllKeys()
470 keymaster_error_t error = context_->ParseKeyBlob(KeymasterKeyBlob(key_blob), additional_params, in LoadKey()
475 error = CheckVersionInfo(*hw_enforced, *sw_enforced, *context_); in LoadKey()
480 *factory = GetKeyFactory(*context_, *hw_enforced, *sw_enforced, &algorithm, &error); in LoadKey()