Lines Matching refs:context_
64 : context_(context), operation_table_(new(std::nothrow) OperationTable(operation_table_size)) {} in AndroidKeymaster()
69 : context_(move(other.context_)), operation_table_(move(other.operation_table_)) {} in AndroidKeymaster()
105 const keymaster_algorithm_t* algorithms = context_->GetSupportedAlgorithms(&algorithm_count); in SupportedAlgorithms()
135 GetSupported(*context_, request.algorithm, request.purpose, in SupportedBlockModes()
141 GetSupported(*context_, request.algorithm, request.purpose, in SupportedPaddingModes()
147 GetSupported(*context_, request.algorithm, request.purpose, &OperationFactory::SupportedDigests, in SupportedDigests()
153 if (response == nullptr || !check_supported(*context_, request.algorithm, response)) in SupportedImportFormats()
158 context_->GetKeyFactory(request.algorithm)->SupportedImportFormats(&count); in SupportedImportFormats()
164 if (response == nullptr || !check_supported(*context_, request.algorithm, response)) in SupportedExportFormats()
169 context_->GetKeyFactory(request.algorithm)->SupportedExportFormats(&count); in SupportedExportFormats()
175 KeymasterEnforcement* policy = context_->enforcement_policy(); in GetHmacSharingParameters()
188 KeymasterEnforcement* policy = context_->enforcement_policy(); in ComputeSharedHmac()
200 KeymasterEnforcement* policy = context_->enforcement_policy(); in VerifyAuthorization()
212 response->error = context_->AddRngEntropy(request.random_data.peek_read(), in AddRngEntropy()
225 !(factory = context_->GetKeyFactory(algorithm))) in GenerateKey()
245 context_->ParseKeyBlob(KeymasterKeyBlob(request.key_blob), request.additional_params, in GetKeyCharacteristics()
254 response->error = CheckVersionInfo(response->enforced, response->unenforced, *context_); in GetKeyCharacteristics()
282 if (context_->enforcement_policy()) { in BeginOperation()
285 if (!context_->enforcement_policy()->CreateKeyId(request.key_blob, &key_id)) return; in BeginOperation()
287 response->error = context_->enforcement_policy()->AuthorizeOperation( in BeginOperation()
312 if (context_->enforcement_policy()) { in UpdateOperation()
313 response->error = context_->enforcement_policy()->AuthorizeOperation( in UpdateOperation()
341 if (context_->enforcement_policy()) { in FinishOperation()
342 response->error = context_->enforcement_policy()->AuthorizeOperation( in FinishOperation()
377 context_->ParseKeyBlob(KeymasterKeyBlob(request.key_blob), request.additional_params, &key); in ExportKey()
408 response->error = context_->GenerateAttestation(*key, request.attest_params, &certchain); in AttestKey()
423 response->error = context_->UpgradeKeyBlob(KeymasterKeyBlob(request.key_blob), in UpgradeKey()
438 !(factory = context_->GetKeyFactory(algorithm))) in ImportKey()
454 response->error = context_->DeleteKey(KeymasterKeyBlob(request.key_blob)); in DeleteKey()
460 response->error = context_->DeleteAllKeys(); in DeleteAllKeys()
466 response->error = context_->SetSystemVersion(request.os_version, request.os_patchlevel); in Configure()
477 keymaster_error_t error = context_->ParseKeyBlob(KeymasterKeyBlob(key_blob), additional_params, in LoadKey()
482 return CheckVersionInfo((*key)->hw_enforced(), (*key)->sw_enforced(), *context_); in LoadKey()
494 context_->UnwrapKey(request.wrapped_key, request.wrapping_key, request.additional_params, in ImportWrappedKey()
519 !(factory = context_->GetKeyFactory(algorithm))) { in ImportWrappedKey()