Lines Matching refs:e
101 static EVP_PKEY* keystore_loadkey(ENGINE* e, const char* key_id, UI_METHOD* ui_method, in keystore_loadkey() argument
107 ALOGV("keystore_loadkey(%p, \"%s\", %p, %p)", e, key_id, ui_method, callback_data); in keystore_loadkey()
142 dsa_pkey_setup(e, pkey.get(), key_id); in keystore_loadkey()
146 rsa_pkey_setup(e, pkey.get(), key_id); in keystore_loadkey()
150 ecdsa_pkey_setup(e, pkey.get(), key_id); in keystore_loadkey()
165 static int keystore_engine_setup(ENGINE* e) { in keystore_engine_setup() argument
168 if (!ENGINE_set_id(e, kKeystoreEngineId) in keystore_engine_setup()
169 || !ENGINE_set_name(e, kKeystoreEngineDesc) in keystore_engine_setup()
170 || !ENGINE_set_load_privkey_function(e, keystore_loadkey) in keystore_engine_setup()
171 || !ENGINE_set_load_pubkey_function(e, keystore_loadkey) in keystore_engine_setup()
172 || !ENGINE_set_flags(e, 0) in keystore_engine_setup()
173 || !ENGINE_set_cmd_defns(e, keystore_cmd_defns)) { in keystore_engine_setup()
185 if (!dsa_register(e)) { in keystore_engine_setup()
188 } else if (!ecdsa_register(e)) { in keystore_engine_setup()
191 } else if (!rsa_register(e)) { in keystore_engine_setup()
214 static int keystore_bind_fn(ENGINE *e, const char *id) { in keystore_bind_fn() argument
225 if (!keystore_engine_setup(e)) { in keystore_bind_fn()