Home
last modified time | relevance | path

Searched refs:ENGINE (Results 1 – 25 of 153) sorted by relevance

1234567

/external/openssl/include/openssl/
Dengine.h70 #error ENGINE is disabled.
285 typedef int (*ENGINE_GEN_INT_FUNC_PTR)(ENGINE *);
287 typedef int (*ENGINE_CTRL_FUNC_PTR)(ENGINE *, int, long, void *, void (*f)(void));
289 typedef EVP_PKEY * (*ENGINE_LOAD_KEY_PTR)(ENGINE *, const char *,
291 typedef int (*ENGINE_SSL_CLIENT_CERT_PTR)(ENGINE *, SSL *ssl,
306 typedef int (*ENGINE_CIPHERS_PTR)(ENGINE *, const EVP_CIPHER **, const int **, int);
307 typedef int (*ENGINE_DIGESTS_PTR)(ENGINE *, const EVP_MD **, const int **, int);
308 typedef int (*ENGINE_PKEY_METHS_PTR)(ENGINE *, EVP_PKEY_METHOD **, const int **, int);
309 typedef int (*ENGINE_PKEY_ASN1_METHS_PTR)(ENGINE *, EVP_PKEY_ASN1_METHOD **, const int **, int);
321 ENGINE *ENGINE_get_first(void);
[all …]
/external/openssl/crypto/engine/
Dengine.h70 #error ENGINE is disabled.
285 typedef int (*ENGINE_GEN_INT_FUNC_PTR)(ENGINE *);
287 typedef int (*ENGINE_CTRL_FUNC_PTR)(ENGINE *, int, long, void *, void (*f)(void));
289 typedef EVP_PKEY * (*ENGINE_LOAD_KEY_PTR)(ENGINE *, const char *,
291 typedef int (*ENGINE_SSL_CLIENT_CERT_PTR)(ENGINE *, SSL *ssl,
306 typedef int (*ENGINE_CIPHERS_PTR)(ENGINE *, const EVP_CIPHER **, const int **, int);
307 typedef int (*ENGINE_DIGESTS_PTR)(ENGINE *, const EVP_MD **, const int **, int);
308 typedef int (*ENGINE_PKEY_METHS_PTR)(ENGINE *, EVP_PKEY_METHOD **, const int **, int);
309 typedef int (*ENGINE_PKEY_ASN1_METHS_PTR)(ENGINE *, EVP_PKEY_ASN1_METHOD **, const int **, int);
321 ENGINE *ENGINE_get_first(void);
[all …]
Deng_lib.c64 ENGINE *ENGINE_new(void) in ENGINE_new()
66 ENGINE *ret; in ENGINE_new()
68 ret = (ENGINE *)OPENSSL_malloc(sizeof(ENGINE)); in ENGINE_new()
74 memset(ret, 0, sizeof(ENGINE)); in ENGINE_new()
84 void engine_set_all_null(ENGINE *e) in engine_set_all_null()
105 int engine_free_util(ENGINE *e, int locked) in engine_free_util()
140 int ENGINE_free(ENGINE *e) in ENGINE_free()
211 int ENGINE_set_ex_data(ENGINE *e, int idx, void *arg) in ENGINE_set_ex_data()
216 void *ENGINE_get_ex_data(const ENGINE *e, int idx) in ENGINE_get_ex_data()
224 int ENGINE_set_id(ENGINE *e, const char *id) in ENGINE_set_id()
[all …]
Deng_list.c76 static ENGINE *engine_list_head = NULL;
77 static ENGINE *engine_list_tail = NULL;
84 ENGINE *iterator = engine_list_head; in engine_list_cleanup()
96 static int engine_list_add(ENGINE *e) in engine_list_add()
99 ENGINE *iterator = NULL; in engine_list_add()
157 static int engine_list_remove(ENGINE *e) in engine_list_remove()
159 ENGINE *iterator; in engine_list_remove()
192 ENGINE *ENGINE_get_first(void) in ENGINE_get_first()
194 ENGINE *ret; in ENGINE_get_first()
207 ENGINE *ENGINE_get_last(void) in ENGINE_get_last()
[all …]
Deng_int.h110 DECLARE_STACK_OF(ENGINE)
121 ENGINE *e, const int *nids, int num_nids, int setdefault);
122 void engine_table_unregister(ENGINE_TABLE **table, ENGINE *e);
125 ENGINE *engine_table_select(ENGINE_TABLE **table, int nid);
127 ENGINE *engine_table_select_tmp(ENGINE_TABLE **table, int nid, const char *f, int l);
130 typedef void (engine_table_doall_cb)(int nid, STACK_OF(ENGINE) *sk, ENGINE *def, void *arg);
136 int engine_unlocked_init(ENGINE *e);
137 int engine_unlocked_finish(ENGINE *e, int unlock_for_handlers);
138 int engine_free_util(ENGINE *e, int locked);
143 void engine_set_all_null(ENGINE *e);
[all …]
Dtb_asnmth.c67 void ENGINE_unregister_pkey_asn1_meths(ENGINE *e) in ENGINE_unregister_pkey_asn1_meths()
77 int ENGINE_register_pkey_asn1_meths(ENGINE *e) in ENGINE_register_pkey_asn1_meths()
93 ENGINE *e; in ENGINE_register_all_pkey_asn1_meths()
99 int ENGINE_set_default_pkey_asn1_meths(ENGINE *e) in ENGINE_set_default_pkey_asn1_meths()
116 ENGINE *ENGINE_get_pkey_asn1_meth_engine(int nid) in ENGINE_get_pkey_asn1_meth_engine()
122 const EVP_PKEY_ASN1_METHOD *ENGINE_get_pkey_asn1_meth(ENGINE *e, int nid) in ENGINE_get_pkey_asn1_meth()
136 ENGINE_PKEY_ASN1_METHS_PTR ENGINE_get_pkey_asn1_meths(const ENGINE *e) in ENGINE_get_pkey_asn1_meths()
142 int ENGINE_set_pkey_asn1_meths(ENGINE *e, ENGINE_PKEY_ASN1_METHS_PTR f) in ENGINE_set_pkey_asn1_meths()
152 void engine_pkey_asn1_meths_free(ENGINE *e) in engine_pkey_asn1_meths_free()
177 const EVP_PKEY_ASN1_METHOD *ENGINE_get_pkey_asn1_meth_str(ENGINE *e, in ENGINE_get_pkey_asn1_meth_str()
[all …]
Dtb_pkmeth.c65 void ENGINE_unregister_pkey_meths(ENGINE *e) in ENGINE_unregister_pkey_meths()
75 int ENGINE_register_pkey_meths(ENGINE *e) in ENGINE_register_pkey_meths()
91 ENGINE *e; in ENGINE_register_all_pkey_meths()
97 int ENGINE_set_default_pkey_meths(ENGINE *e) in ENGINE_set_default_pkey_meths()
114 ENGINE *ENGINE_get_pkey_meth_engine(int nid) in ENGINE_get_pkey_meth_engine()
120 const EVP_PKEY_METHOD *ENGINE_get_pkey_meth(ENGINE *e, int nid) in ENGINE_get_pkey_meth()
134 ENGINE_PKEY_METHS_PTR ENGINE_get_pkey_meths(const ENGINE *e) in ENGINE_get_pkey_meths()
140 int ENGINE_set_pkey_meths(ENGINE *e, ENGINE_PKEY_METHS_PTR f) in ENGINE_set_pkey_meths()
150 void engine_pkey_meths_free(ENGINE *e) in engine_pkey_meths_free()
Dtb_digest.c64 void ENGINE_unregister_digests(ENGINE *e) in ENGINE_unregister_digests()
74 int ENGINE_register_digests(ENGINE *e) in ENGINE_register_digests()
90 ENGINE *e; in ENGINE_register_all_digests()
96 int ENGINE_set_default_digests(ENGINE *e) in ENGINE_set_default_digests()
113 ENGINE *ENGINE_get_digest_engine(int nid) in ENGINE_get_digest_engine()
119 const EVP_MD *ENGINE_get_digest(ENGINE *e, int nid) in ENGINE_get_digest()
133 ENGINE_DIGESTS_PTR ENGINE_get_digests(const ENGINE *e) in ENGINE_get_digests()
139 int ENGINE_set_digests(ENGINE *e, ENGINE_DIGESTS_PTR f) in ENGINE_set_digests()
Dtb_cipher.c64 void ENGINE_unregister_ciphers(ENGINE *e) in ENGINE_unregister_ciphers()
74 int ENGINE_register_ciphers(ENGINE *e) in ENGINE_register_ciphers()
90 ENGINE *e; in ENGINE_register_all_ciphers()
96 int ENGINE_set_default_ciphers(ENGINE *e) in ENGINE_set_default_ciphers()
113 ENGINE *ENGINE_get_cipher_engine(int nid) in ENGINE_get_cipher_engine()
119 const EVP_CIPHER *ENGINE_get_cipher(ENGINE *e, int nid) in ENGINE_get_cipher()
133 ENGINE_CIPHERS_PTR ENGINE_get_ciphers(const ENGINE *e) in ENGINE_get_ciphers()
139 int ENGINE_set_ciphers(ENGINE *e, ENGINE_CIPHERS_PTR f) in ENGINE_set_ciphers()
Dtb_store.c65 void ENGINE_unregister_STORE(ENGINE *e) in ENGINE_unregister_STORE()
75 int ENGINE_register_STORE(ENGINE *e) in ENGINE_register_STORE()
85 ENGINE *e; in ENGINE_register_all_STORE()
93 int ENGINE_set_default_STORE(ENGINE *e)
106 ENGINE *ENGINE_get_default_STORE(void)
113 const STORE_METHOD *ENGINE_get_STORE(const ENGINE *e) in ENGINE_get_STORE()
119 int ENGINE_set_STORE(ENGINE *e, const STORE_METHOD *store_meth) in ENGINE_set_STORE()
Dtb_dh.c65 void ENGINE_unregister_DH(ENGINE *e) in ENGINE_unregister_DH()
75 int ENGINE_register_DH(ENGINE *e) in ENGINE_register_DH()
85 ENGINE *e; in ENGINE_register_all_DH()
91 int ENGINE_set_default_DH(ENGINE *e) in ENGINE_set_default_DH()
102 ENGINE *ENGINE_get_default_DH(void) in ENGINE_get_default_DH()
108 const DH_METHOD *ENGINE_get_DH(const ENGINE *e) in ENGINE_get_DH()
114 int ENGINE_set_DH(ENGINE *e, const DH_METHOD *dh_meth) in ENGINE_set_DH()
Dtb_rand.c65 void ENGINE_unregister_RAND(ENGINE *e) in ENGINE_unregister_RAND()
75 int ENGINE_register_RAND(ENGINE *e) in ENGINE_register_RAND()
85 ENGINE *e; in ENGINE_register_all_RAND()
91 int ENGINE_set_default_RAND(ENGINE *e) in ENGINE_set_default_RAND()
102 ENGINE *ENGINE_get_default_RAND(void) in ENGINE_get_default_RAND()
108 const RAND_METHOD *ENGINE_get_RAND(const ENGINE *e) in ENGINE_get_RAND()
114 int ENGINE_set_RAND(ENGINE *e, const RAND_METHOD *rand_meth) in ENGINE_set_RAND()
Dtb_dsa.c65 void ENGINE_unregister_DSA(ENGINE *e) in ENGINE_unregister_DSA()
75 int ENGINE_register_DSA(ENGINE *e) in ENGINE_register_DSA()
85 ENGINE *e; in ENGINE_register_all_DSA()
91 int ENGINE_set_default_DSA(ENGINE *e) in ENGINE_set_default_DSA()
102 ENGINE *ENGINE_get_default_DSA(void) in ENGINE_get_default_DSA()
108 const DSA_METHOD *ENGINE_get_DSA(const ENGINE *e) in ENGINE_get_DSA()
114 int ENGINE_set_DSA(ENGINE *e, const DSA_METHOD *dsa_meth) in ENGINE_set_DSA()
Dtb_ecdsa.c65 void ENGINE_unregister_ECDSA(ENGINE *e) in ENGINE_unregister_ECDSA()
75 int ENGINE_register_ECDSA(ENGINE *e) in ENGINE_register_ECDSA()
85 ENGINE *e; in ENGINE_register_all_ECDSA()
91 int ENGINE_set_default_ECDSA(ENGINE *e) in ENGINE_set_default_ECDSA()
102 ENGINE *ENGINE_get_default_ECDSA(void) in ENGINE_get_default_ECDSA()
108 const ECDSA_METHOD *ENGINE_get_ECDSA(const ENGINE *e) in ENGINE_get_ECDSA()
114 int ENGINE_set_ECDSA(ENGINE *e, const ECDSA_METHOD *ecdsa_meth) in ENGINE_set_ECDSA()
Dtb_rsa.c65 void ENGINE_unregister_RSA(ENGINE *e) in ENGINE_unregister_RSA()
75 int ENGINE_register_RSA(ENGINE *e) in ENGINE_register_RSA()
85 ENGINE *e; in ENGINE_register_all_RSA()
91 int ENGINE_set_default_RSA(ENGINE *e) in ENGINE_set_default_RSA()
102 ENGINE *ENGINE_get_default_RSA(void) in ENGINE_get_default_RSA()
108 const RSA_METHOD *ENGINE_get_RSA(const ENGINE *e) in ENGINE_get_RSA()
114 int ENGINE_set_RSA(ENGINE *e, const RSA_METHOD *rsa_meth) in ENGINE_set_RSA()
Dtb_ecdh.c80 void ENGINE_unregister_ECDH(ENGINE *e) in ENGINE_unregister_ECDH()
90 int ENGINE_register_ECDH(ENGINE *e) in ENGINE_register_ECDH()
100 ENGINE *e; in ENGINE_register_all_ECDH()
106 int ENGINE_set_default_ECDH(ENGINE *e) in ENGINE_set_default_ECDH()
117 ENGINE *ENGINE_get_default_ECDH(void) in ENGINE_get_default_ECDH()
123 const ECDH_METHOD *ENGINE_get_ECDH(const ENGINE *e) in ENGINE_get_ECDH()
129 int ENGINE_set_ECDH(ENGINE *e, const ECDH_METHOD *ecdh_meth) in ENGINE_set_ECDH()
Deng_pkey.c60 int ENGINE_set_load_privkey_function(ENGINE *e, ENGINE_LOAD_KEY_PTR loadpriv_f) in ENGINE_set_load_privkey_function()
66 int ENGINE_set_load_pubkey_function(ENGINE *e, ENGINE_LOAD_KEY_PTR loadpub_f) in ENGINE_set_load_pubkey_function()
72 int ENGINE_set_load_ssl_client_cert_function(ENGINE *e, in ENGINE_set_load_ssl_client_cert_function()
79 ENGINE_LOAD_KEY_PTR ENGINE_get_load_privkey_function(const ENGINE *e) in ENGINE_get_load_privkey_function()
84 ENGINE_LOAD_KEY_PTR ENGINE_get_load_pubkey_function(const ENGINE *e) in ENGINE_get_load_pubkey_function()
89 ENGINE_SSL_CLIENT_CERT_PTR ENGINE_get_ssl_client_cert_function(const ENGINE *e) in ENGINE_get_ssl_client_cert_function()
96 EVP_PKEY *ENGINE_load_private_key(ENGINE *e, const char *key_id, in ENGINE_load_private_key()
132 EVP_PKEY *ENGINE_load_public_key(ENGINE *e, const char *key_id, in ENGINE_load_public_key()
168 int ENGINE_load_ssl_client_cert(ENGINE *e, SSL *s, in ENGINE_load_ssl_client_cert()
DREADME7 the "ENGINE" code. So it serves a double purpose of being a "ENGINE internals
49 into ENGINE is storage - the OBJ_NAME-based storage used by EVP to register
53 solution is necessarily that ENGINE-provided ciphers simply are not registered,
55 especially necessary considering the fact ENGINE uses reference counts to allow
59 Another sticking point for integrating cipher support into ENGINE is linkage.
60 Already there is a problem with the way ENGINE supports RSA, DSA, etc whereby
61 they are available *because* they're part of a giant ENGINE called "openssl".
62 Ie. all implementations *have* to come from an ENGINE, but we get round that by
63 having a giant ENGINE with all the software support encapsulated. This creates
66 ENGINE code being linked in *and* because of that DSA, DH, and RAND also. If we
[all …]
Deng_openssl.c113 static int openssl_ciphers(ENGINE *e, const EVP_CIPHER **cipher,
117 static int openssl_digests(ENGINE *e, const EVP_MD **digest,
122 static EVP_PKEY *openssl_load_privkey(ENGINE *eng, const char *key_id,
132 static int bind_helper(ENGINE *e) in bind_helper()
170 static ENGINE *engine_openssl(void) in engine_openssl()
172 ENGINE *ret = ENGINE_new(); in engine_openssl()
185 ENGINE *toadd = engine_openssl(); in ENGINE_load_openssl()
197 static int bind_fn(ENGINE *e, const char *id) in bind_fn()
277 static int openssl_ciphers(ENGINE *e, const EVP_CIPHER **cipher, in openssl_ciphers()
345 static int openssl_digests(ENGINE *e, const EVP_MD **digest, in openssl_digests()
[all …]
Deng_dyn.c67 static int dynamic_init(ENGINE *e);
68 static int dynamic_finish(ENGINE *e);
69 static int dynamic_ctrl(ENGINE *e, int cmd, long i, void *p, void (*f)(void));
73 static int dynamic_load(ENGINE *e, dynamic_data_ctx *ctx);
186 static int dynamic_set_data_ctx(ENGINE *e, dynamic_data_ctx **ctx) in dynamic_set_data_ctx()
232 static dynamic_data_ctx *dynamic_get_data_ctx(ENGINE *e) in dynamic_get_data_ctx()
268 static ENGINE *engine_dynamic(void) in engine_dynamic()
270 ENGINE *ret = ENGINE_new(); in engine_dynamic()
289 ENGINE *toadd = engine_dynamic(); in ENGINE_load_dynamic()
301 static int dynamic_init(ENGINE *e) in dynamic_init()
[all …]
Denginetest.c77 ENGINE *h; in display_engine_list()
97 ENGINE *block[512]; in main()
100 ENGINE *ptr; in main()
103 ENGINE *new_h1 = NULL; in main()
104 ENGINE *new_h2 = NULL; in main()
105 ENGINE *new_h3 = NULL; in main()
106 ENGINE *new_h4 = NULL; in main()
122 memset(block, 0, 512 * sizeof(ENGINE *)); in main()
Deng_table.c66 STACK_OF(ENGINE) *sk;
68 ENGINE *funct;
131 ENGINE *e, const int *nids, int num_nids, int setdefault) in engine_table_register()
189 static void int_unregister_cb_doall_arg(ENGINE_PILE *pile, ENGINE *e) in int_unregister_cb_doall_arg()
204 static IMPLEMENT_LHASH_DOALL_ARG_FN(int_unregister_cb, ENGINE_PILE, ENGINE) in IMPLEMENT_LHASH_DOALL_ARG_FN() argument
206 void engine_table_unregister(ENGINE_TABLE **table, ENGINE *e) in IMPLEMENT_LHASH_DOALL_ARG_FN()
212 ENGINE, e); in IMPLEMENT_LHASH_DOALL_ARG_FN()
240 ENGINE *engine_table_select(ENGINE_TABLE **table, int nid) in engine_table_select()
242 ENGINE *engine_table_select_tmp(ENGINE_TABLE **table, int nid, const char *f, int l) in engine_table_select()
245 ENGINE *ret = NULL; in engine_table_select()
Deng_init.c60 int engine_unlocked_init(ENGINE *e) in engine_unlocked_init()
82 int engine_unlocked_finish(ENGINE *e, int unlock_for_handlers) in engine_unlocked_finish()
121 int ENGINE_init(ENGINE *e) in ENGINE_init()
136 int ENGINE_finish(ENGINE *e) in ENGINE_finish()
/external/chromium_org/third_party/boringssl/src/crypto/engine/
Dengine.c32 ENGINE *ENGINE_new(void) { in ENGINE_new()
33 ENGINE *engine = OPENSSL_malloc(sizeof(ENGINE)); in ENGINE_new()
38 memset(engine, 0, sizeof(ENGINE)); in ENGINE_new()
42 void ENGINE_free(ENGINE *engine) { in ENGINE_free()
73 int ENGINE_set_DH_method(ENGINE *engine, const DH_METHOD *method, in ENGINE_set_DH_method()
79 DH_METHOD *ENGINE_get_DH_method(const ENGINE *engine) { in ENGINE_get_DH_method()
83 int ENGINE_set_DSA_method(ENGINE *engine, const DSA_METHOD *method, in ENGINE_set_DSA_method()
89 DSA_METHOD *ENGINE_get_DSA_method(const ENGINE *engine) { in ENGINE_get_DSA_method()
93 int ENGINE_set_RSA_method(ENGINE *engine, const RSA_METHOD *method, in ENGINE_set_RSA_method()
99 RSA_METHOD *ENGINE_get_RSA_method(const ENGINE *engine) { in ENGINE_get_RSA_method()
[all …]
/external/chromium_org/third_party/boringssl/src/include/openssl/
Dengine.h40 OPENSSL_EXPORT ENGINE *ENGINE_new(void);
44 OPENSSL_EXPORT void ENGINE_free(ENGINE *engine);
56 OPENSSL_EXPORT int ENGINE_set_DH_method(ENGINE *engine, const DH_METHOD *method,
58 OPENSSL_EXPORT DH_METHOD *ENGINE_get_DH_method(const ENGINE *engine);
60 OPENSSL_EXPORT int ENGINE_set_DSA_method(ENGINE *engine,
63 OPENSSL_EXPORT DSA_METHOD *ENGINE_get_DSA_method(const ENGINE *engine);
65 OPENSSL_EXPORT int ENGINE_set_RSA_method(ENGINE *engine,
68 OPENSSL_EXPORT RSA_METHOD *ENGINE_get_RSA_method(const ENGINE *engine);
70 OPENSSL_EXPORT int ENGINE_set_ECDSA_method(ENGINE *engine,
73 OPENSSL_EXPORT ECDSA_METHOD *ENGINE_get_ECDSA_method(const ENGINE *engine);

1234567