Home
last modified time | relevance | path

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

12345

/onnv-gate/usr/src/common/openssl/crypto/engine/
H A Dengine.h77 #error ENGINE is disabled.
282 typedef int (*ENGINE_GEN_INT_FUNC_PTR)(ENGINE *);
284 typedef int (*ENGINE_CTRL_FUNC_PTR)(ENGINE *, int, long, void *, void (*f)(void));
286 typedef EVP_PKEY * (*ENGINE_LOAD_KEY_PTR)(ENGINE *, const char *,
300 typedef int (*ENGINE_CIPHERS_PTR)(ENGINE *, const EVP_CIPHER **, const int **, int);
301 typedef int (*ENGINE_DIGESTS_PTR)(ENGINE *, const EVP_MD **, const int **, int);
314 ENGINE *ENGINE_get_first(void);
315 ENGINE *ENGINE_get_last(void);
317 ENGINE *ENGINE_get_next(ENGINE *e);
318 ENGINE *ENGINE_get_prev(ENGINE *e);
[all …]
H A 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()
137 int ENGINE_free(ENGINE *e) in ENGINE_free()
208 int ENGINE_set_ex_data(ENGINE *e, int idx, void *arg) in ENGINE_set_ex_data()
213 void *ENGINE_get_ex_data(const ENGINE *e, int idx) in ENGINE_get_ex_data()
221 int ENGINE_set_id(ENGINE *e, const char *id) in ENGINE_set_id()
[all …]
H A 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 …]
H A 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()
H A 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()
H A 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()
H A 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()
H A 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()
H A 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()
H A 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()
H A 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()
H A 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()
H A 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);
134 int engine_unlocked_init(ENGINE *e);
135 int engine_unlocked_finish(ENGINE *e, int unlock_for_handlers);
136 int engine_free_util(ENGINE *e, int locked);
141 void engine_set_all_null(ENGINE *e);
H A 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 …]
H A 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 …]
H A 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 …]
H A 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 ENGINE_LOAD_KEY_PTR ENGINE_get_load_privkey_function(const ENGINE *e) in ENGINE_get_load_privkey_function()
77 ENGINE_LOAD_KEY_PTR ENGINE_get_load_pubkey_function(const ENGINE *e) in ENGINE_get_load_pubkey_function()
84 EVP_PKEY *ENGINE_load_private_key(ENGINE *e, const char *key_id, in ENGINE_load_private_key()
120 EVP_PKEY *ENGINE_load_public_key(ENGINE *e, const char *key_id, in ENGINE_load_public_key()
H A 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()
H A Deng_table.c66 STACK_OF(ENGINE) *sk;
68 ENGINE *funct;
118 ENGINE *e, const int *nids, int num_nids, int setdefault) in engine_table_register()
175 static void int_unregister_cb(ENGINE_PILE *pile, ENGINE *e) in int_unregister_cb()
191 static IMPLEMENT_LHASH_DOALL_ARG_FN(int_unregister_cb,ENGINE_PILE *,ENGINE *) in IMPLEMENT_LHASH_DOALL_ARG_FN() argument
192 void engine_table_unregister(ENGINE_TABLE **table, ENGINE *e) in IMPLEMENT_LHASH_DOALL_ARG_FN()
223 ENGINE *engine_table_select(ENGINE_TABLE **table, int nid) in engine_table_select()
225 ENGINE *engine_table_select_tmp(ENGINE_TABLE **table, int nid, const char *f, int l) in engine_table_select()
228 ENGINE *ret = NULL; in engine_table_select()
/onnv-gate/usr/src/common/openssl/doc/crypto/
H A Dengine.pod5 engine - ENGINE cryptographic module support
11 ENGINE *ENGINE_get_first(void);
12 ENGINE *ENGINE_get_last(void);
13 ENGINE *ENGINE_get_next(ENGINE *e);
14 ENGINE *ENGINE_get_prev(ENGINE *e);
16 int ENGINE_add(ENGINE *e);
17 int ENGINE_remove(ENGINE *e);
19 ENGINE *ENGINE_by_id(const char *id);
21 int ENGINE_init(ENGINE *e);
22 int ENGINE_finish(ENGINE *e);
[all …]
H A DDH_set_method.pod19 DH *DH_new_method(ENGINE *engine);
29 of B<ENGINE> API calls.
35 structures created later. B<NB>: This is true only whilst no ENGINE has been set
39 However, the meaningfulness of this result is dependant on whether the ENGINE
44 was supplied by an ENGINE, the handle to that ENGINE will be released during the
46 implementations (eg. from an ENGINE module that supports embedded
51 be used for the DH operations. If B<engine> is NULL, the default ENGINE for DH
52 operations is used, and if no default ENGINE is set, the DH_METHOD controlled by
93 the method for B<dh> (including unloading the ENGINE handle if the previous
94 method was supplied by an ENGINE).
[all …]
H A DDSA_set_method.pod19 DSA *DSA_new_method(ENGINE *engine);
29 of B<ENGINE> API calls.
35 structures created later. B<NB>: This is true only whilst no ENGINE has
40 whether the ENGINE API is being used, so this function is no longer
45 previous method was supplied by an ENGINE, the handle to that ENGINE will
47 work with certain DSA_METHOD implementations (eg. from an ENGINE module
54 for DSA operations is used, and if no default ENGINE is set, the DSA_METHOD
107 the method for B<dsa> (including unloading the ENGINE handle if the previous
108 method was supplied by an ENGINE).
117 algorithmic APIs (eg. RSA_METHOD, EVP_CIPHER, etc) in B<ENGINE> modules. If a
[all …]
H A DRAND_set_rand_method.pod23 B<ENGINE> API calls.
29 true only whilst no ENGINE has been set as a default for RAND, so this function
33 However, the meaningfulness of this result is dependant on whether the ENGINE
61 algorithmic APIs (eg. RSA_METHOD, EVP_CIPHER, etc) in B<ENGINE> modules. If a
62 default ENGINE is specified for RAND functionality using an ENGINE API function,
64 RAND_set_rand_method()). For this reason, the ENGINE API is the recommended way
78 take an ENGINE pointer as its argument. As of version 0.9.7, that has been
79 reverted as the ENGINE API transparently overrides RAND defaults if used,
H A DRSA_set_method.pod35 use of B<ENGINE> API calls.
41 structures created later. B<NB>: This is true only whilst no ENGINE has
46 whether the ENGINE API is being used, so this function is no longer
51 previous method was supplied by an ENGINE, the handle to that ENGINE will
53 work with certain RSA_METHOD implementations (eg. from an ENGINE module
59 This method may or may not be supplied by an ENGINE implementation, but if
69 default ENGINE for RSA operations is used, and if no default ENGINE is set,
148 because if it was supplied by an ENGINE, the pointer could be invalidated
149 at any time if the ENGINE is unloaded (in fact it could be unloaded as a
151 ENGINE). For this reason, the return type may be replaced with a B<void>
[all …]
/onnv-gate/usr/src/common/openssl/
H A DREADME.ENGINE1 ENGINE
6 crypto devices (eg. accelerator cards). This component is called ENGINE,
10 the ENGINE code has been merged into the main branch and will be present
13 There are currently built-in ENGINE implementations for the following
22 In addition, dynamic binding to external ENGINE implementations is now
23 provided by a special ENGINE called "dynamic". See the "DYNAMIC ENGINE"
33 the ENGINE model so that alternative implementations of existing
35 ENGINE implementations.
37 2 Configuration support currently exists in the ENGINE API itself, in the
39 user/admin the set of commands and parameter types a given ENGINE
[all …]

12345