Home
last modified time | relevance | path

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

/system/keymaster/
Decdsa_keymaster1_operation.cpp33 Keymaster1Engine::KeyData* key_data = engine_->GetData(ecdsa_key); in Begin()
56 return engine_->device()->begin(engine_->device(), purpose_, &key_data->key_material, in Begin()
63 Keymaster1Engine::KeyData* key_data = engine_->GetData(ecdsa_key); in PrepareFinish()
75 return engine_->device()->abort(engine_->device(), operation_handle_); in Abort()
79 Keymaster1Engine::KeyData* key_data = engine_->GetData(ecdsa_key); in GetError()
113 return new EcdsaKeymaster1Operation<EcdsaSignOperation>(digest, ecdsa.release(), engine_); in CreateOperation()
Drsa_keymaster1_operation.cpp33 Keymaster1Engine::KeyData* key_data = engine_->GetData(rsa_key); in Begin()
72 return engine_->device()->begin(engine_->device(), purpose_, &key_data->key_material, in Begin()
79 Keymaster1Engine::KeyData* key_data = engine_->GetData(rsa_key); in PrepareFinish()
91 return engine_->device()->abort(engine_->device(), operation_handle_); in Abort()
95 Keymaster1Engine::KeyData* key_data = engine_->GetData(rsa_key); // key_data is owned by rsa in GetError()
134 engine_); in CreateOperation()
137 engine_); in CreateOperation()
Dec_keymaster0_key.cpp34 : EcKeyFactory(context), 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()
Dec_keymaster1_key.cpp32 : EcKeyFactory(context), engine_(engine), in EcdsaKeymaster1KeyFactory()
70 return engine_->GenerateKey(key_params_copy, key_blob, hw_enforced, sw_enforced); in GenerateKey()
79 return engine_->ImportKey(key_params_copy, input_key_material_format, input_key_material, in ImportKey()
93 engine_->BuildEcKey(key_material, additional_params, &error)); in LoadKey()
Drsa_keymaster1_key.cpp32 : RsaKeyFactory(context), engine_(engine), in RsaKeymaster1KeyFactory()
91 return engine_->GenerateKey(key_params_copy, key_blob, hw_enforced, sw_enforced); in GenerateKey()
100 return engine_->ImportKey(key_params_copy, input_key_material_format, input_key_material, in ImportKey()
113 unique_ptr<RSA, RSA_Delete> rsa(engine_->BuildRsaKey(key_material, additional_params, &error)); in LoadKey()
Drsa_keymaster0_key.cpp34 : RsaKeyFactory(context), 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()
112 unique_ptr<RSA, RSA_Delete> rsa(engine_->BlobToRsaKey(key_material)); in LoadKey()
Decdsa_keymaster1_operation.h33 : purpose_(purpose), operation_handle_(0), engine_(engine) {} in EcdsaKeymaster1WrappedOperation()
49 const Keymaster1Engine* engine_; variable
104 : purpose_(purpose), engine_(engine) {} in EcdsaKeymaster1OperationFactory()
115 const Keymaster1Engine* engine_; variable
Drsa_keymaster1_operation.h33 : purpose_(purpose), operation_handle_(0), engine_(engine) {} in RsaKeymaster1WrappedOperation()
49 const Keymaster1Engine* engine_; variable
104 : purpose_(purpose), engine_(engine) {} in RsaKeymaster1OperationFactory()
115 const Keymaster1Engine* engine_; variable
Dkeymaster0_engine.cpp42 : keymaster0_device_(keymaster0_device), engine_(ENGINE_new()), supports_ec_(false) { in Keymaster0Engine()
70 ENGINE_set_RSA_method(engine_, &rsa_method_, sizeof(rsa_method_)); in Keymaster0Engine()
85 ENGINE_set_ECDSA_method(engine_, &ecdsa_method_, sizeof(ecdsa_method_)); in Keymaster0Engine()
93 ENGINE_free(engine_); in ~Keymaster0Engine()
182 unique_ptr<RSA, RSA_Delete> rsa(RSA_new_method(engine_)); in BlobToRsaKey()
207 unique_ptr<EC_KEY, EC_KEY_Delete> ec_key(EC_KEY_new_method(engine_)); in BlobToEcKey()
Dkeymaster1_engine.cpp44 : keymaster1_device_(keymaster1_device), engine_(ENGINE_new()), in Keymaster1Engine()
59 ENGINE_set_RSA_method(engine_.get(), &rsa_method_, sizeof(rsa_method_)); in Keymaster1Engine()
60 ENGINE_set_ECDSA_method(engine_.get(), &ecdsa_method_, sizeof(ecdsa_method_)); in Keymaster1Engine()
140 unique_ptr<RSA, RSA_Delete> rsa(RSA_new_method(engine_.get())); in BuildRsaKey()
182 unique_ptr<EC_KEY, EC_KEY_Delete> ec_key(EC_KEY_new_method(engine_.get())); in BuildEcKey()
Drsa_keymaster0_key.h58 const Keymaster0Engine* engine_;
Dec_keymaster0_key.h58 const Keymaster0Engine* engine_;
Dec_keymaster1_key.h64 const Keymaster1Engine* engine_;
Drsa_keymaster1_key.h64 const Keymaster1Engine* engine_;
Dkeymaster0_engine.h92 ENGINE* const engine_; variable
Dkeymaster1_engine.h111 const std::unique_ptr<ENGINE, ENGINE_Delete> engine_; variable
/system/security/keystore-engine/
Dandroid_engine.cpp90 engine_(ENGINE_new()) { in KeystoreEngine()
92 engine_, &keystore_rsa_method, sizeof(keystore_rsa_method)); in KeystoreEngine()
94 engine_, &keystore_ecdsa_method, sizeof(keystore_ecdsa_method)); in KeystoreEngine()
100 const ENGINE* engine() const { return engine_; } in engine()
105 ENGINE* const engine_; member in __anonaa278e8e0111::KeystoreEngine