Home
last modified time | relevance | path

Searched refs:engine_ (Results 1 – 21 of 21) sorted by relevance

/system/keymaster/legacy_support/
Decdsa_keymaster1_operation.cpp32 Keymaster1Engine::KeyData* key_data = engine_->GetData(ecdsa_key); in Begin()
55 return engine_->device()->begin(engine_->device(), purpose_, &key_data->key_material, in Begin()
62 Keymaster1Engine::KeyData* key_data = engine_->GetData(ecdsa_key); in PrepareFinish()
74 return engine_->device()->abort(engine_->device(), operation_handle_); in Abort()
78 Keymaster1Engine::KeyData* key_data = engine_->GetData(ecdsa_key); in GetError()
111 key.hw_enforced_move(), key.sw_enforced_move(), digest, ecdsa.release(), engine_)); in CreateOperation()
Dec_keymaster0_key.cpp34 : EcKeyFactory(blob_maker), engine_(engine) {} in EcdsaKeymaster0KeyFactory()
43 if (!engine_ || !engine_->supports_ec()) in GenerateKey()
54 if (!engine_->GenerateEcKey(key_size, &key_material)) in GenerateKey()
75 if (!engine_ || !engine_->supports_ec()) in ImportKey()
87 if (!engine_->ImportKey(input_key_material_format, input_key_material, &imported_hw_key)) in ImportKey()
111 unique_ptr<EC_KEY, EC_KEY_Delete> ec_key(engine_->BlobToEcKey(key_material)); in LoadKey()
Drsa_keymaster1_operation.cpp32 Keymaster1Engine::KeyData* key_data = engine_->GetData(rsa_key); in Begin()
76 return engine_->device()->begin(engine_->device(), purpose_, &key_data->key_material, in Begin()
83 Keymaster1Engine::KeyData* key_data = engine_->GetData(rsa_key); in PrepareFinish()
95 return engine_->device()->abort(engine_->device(), operation_handle_); in Abort()
99 Keymaster1Engine::KeyData* key_data = engine_->GetData(rsa_key); // key_data is owned by rsa in GetError()
136 engine_)); in CreateOperation()
140 engine_)); in CreateOperation()
Dec_keymaster1_key.cpp32 : EcKeyFactory(blob_maker), engine_(engine), in EcdsaKeymaster1KeyFactory()
79 return engine_->GenerateKey(key_params_copy, key_blob, hw_enforced, sw_enforced); in GenerateKey()
88 return engine_->ImportKey(key_params_copy, input_key_material_format, input_key_material, in ImportKey()
102 engine_->BuildEcKey(key_material, additional_params, &error)); in LoadKey()
Decdsa_keymaster1_operation.h33 : purpose_(purpose), operation_handle_(0), engine_(engine) {} in EcdsaKeymaster1WrappedOperation()
49 const Keymaster1Engine* engine_; variable
107 : purpose_(purpose), engine_(engine) {} in EcdsaKeymaster1OperationFactory()
118 const Keymaster1Engine* engine_; variable
Drsa_keymaster0_key.cpp34 : RsaKeyFactory(blob_maker), engine_(engine) {} in RsaKeymaster0KeyFactory()
56 if (!engine_->GenerateRsaKey(public_exponent, key_size, &key_material)) in GenerateKey()
87 if (!engine_->ImportKey(input_key_material_format, input_key_material, &imported_hw_key)) in ImportKey()
113 unique_ptr<RSA, RSA_Delete> rsa(engine_->BlobToRsaKey(key_material)); in LoadKey()
Drsa_keymaster1_key.cpp29 : RsaKeyFactory(blob_maker), engine_(engine), in RsaKeymaster1KeyFactory()
88 return engine_->GenerateKey(key_params_copy, key_blob, hw_enforced, sw_enforced); in GenerateKey()
97 return engine_->ImportKey(key_params_copy, input_key_material_format, input_key_material, in ImportKey()
110 RSA_Ptr rsa(engine_->BuildRsaKey(key_material, additional_params, &error)); in LoadKey()
Drsa_keymaster1_operation.h33 : purpose_(purpose), operation_handle_(0), engine_(engine) {} in RsaKeymaster1WrappedOperation()
49 const Keymaster1Engine* engine_; variable
107 : purpose_(purpose), engine_(engine) {} in RsaKeymaster1OperationFactory()
118 const Keymaster1Engine* engine_; variable
Dkeymaster_passthrough_key.cpp34 additional_params, engine_)); in LoadKey()
74 keymaster_error_t error = engine_->ExportKey(format, key_material(), client_id, app_data, in formatted_key_material()
Dkeymaster0_engine.cpp43 : keymaster0_device_(keymaster0_device), engine_(ENGINE_new()), supports_ec_(false) { in Keymaster0Engine()
57 ENGINE_set_RSA_method(engine_, &rsa_method_, sizeof(rsa_method_)); in Keymaster0Engine()
67 ENGINE_set_ECDSA_method(engine_, &ecdsa_method_, sizeof(ecdsa_method_)); in Keymaster0Engine()
75 ENGINE_free(engine_); in ~Keymaster0Engine()
164 unique_ptr<RSA, RSA_Delete> rsa(RSA_new_method(engine_)); in BlobToRsaKey()
189 unique_ptr<EC_KEY, EC_KEY_Delete> ec_key(EC_KEY_new_method(engine_)); in BlobToEcKey()
Dkeymaster1_engine.cpp43 : keymaster1_device_(keymaster1_device), engine_(ENGINE_new()), in Keymaster1Engine()
58 ENGINE_set_RSA_method(engine_.get(), &rsa_method_, sizeof(rsa_method_)); in Keymaster1Engine()
59 ENGINE_set_ECDSA_method(engine_.get(), &ecdsa_method_, sizeof(ecdsa_method_)); in Keymaster1Engine()
139 unique_ptr<RSA, RSA_Delete> rsa(RSA_new_method(engine_.get())); in BuildRsaKey()
179 unique_ptr<EC_KEY, EC_KEY_Delete> ec_key(EC_KEY_new_method(engine_.get())); in BuildEcKey()
/system/keymaster/include/keymaster/legacy_support/
Dkeymaster_passthrough_key.h41 : KeyFactory(), engine_(engine), algorithm_(algorithm) {} in KeymasterPassthroughKeyFactory()
46 return engine_->GenerateKey(key_description, key_blob, hw_enforced, sw_enforced); in GenerateKey()
54 return engine_->ImportKey(key_description, input_key_material_format, input_key_material, in ImportKey()
65 return engine_->GetOperationFactory(purpose, algorithm_); in GetOperationFactory()
72 const engine_t* engine_;
84 additional_parameters_(additional_parameters), engine_(engine) { in KeymasterPassthroughKey()
99 const KeymasterPassthroughEngine* engine_; variable
Drsa_keymaster0_key.h57 const Keymaster0Engine* engine_;
Dec_keymaster0_key.h57 const Keymaster0Engine* engine_;
Dec_keymaster1_key.h63 const Keymaster1Engine* engine_;
Drsa_keymaster1_key.h64 const Keymaster1Engine* engine_;
Dkeymaster0_engine.h93 ENGINE* const engine_; variable
Dkeymaster1_engine.h111 const std::unique_ptr<ENGINE, ENGINE_Delete> engine_; variable
/system/security/keystore-engine/
Dandroid_engine.cpp197 engine_(ENGINE_new()) { in KeystoreEngine()
202 ENGINE_set_RSA_method(engine_, &rsa_method_, sizeof(rsa_method_)); in KeystoreEngine()
208 ENGINE_set_ECDSA_method(engine_, &ecdsa_method_, sizeof(ecdsa_method_)); in KeystoreEngine()
214 const ENGINE* engine() const { return engine_; } in engine()
221 ENGINE* const engine_; member in __anon392670090111::KeystoreEngine
/system/keymaster/contexts/
Dkeymaster2_passthrough_context.cpp26 : device_(dev), engine_(KeymasterPassthroughEngine::createInstance(dev)) { in Keymaster2PassthroughContext()
46 result.reset(new KeymasterPassthroughKeyFactory(engine_.get(), algorithm)); in GetKeyFactory()
/system/keymaster/include/keymaster/contexts/
Dkeymaster2_passthrough_context.h115 UniquePtr<KeymasterPassthroughEngine> engine_; variable