Lines Matching defs:engine
30 #include <openssl/engine.h>
103 static int cryptodev_engine_ciphers(ENGINE *e, const EVP_CIPHER **cipher,
105 static int cryptodev_engine_digests(ENGINE *e, const EVP_MD **digest,
132 static int cryptodev_ctrl(ENGINE *e, int cmd, long i, void *p,
306 * thing called by the engine init crud which determines what it
307 * can use for ciphers from this engine. We want to return
314 * use this engine as the default, and if for whatever reason
483 * libcrypto EVP stuff - this is how we get wired to EVP so the engine
595 * Registered by the ENGINE when used to find out how to deal with
596 * a particular NID in the ENGINE. this says what we'll do at the
600 cryptodev_engine_ciphers(ENGINE *e, const EVP_CIPHER **cipher,
867 cryptodev_engine_digests(ENGINE *e, const EVP_MD **digest,
1314 cryptodev_ctrl(ENGINE *e, int cmd, long i, void *p, void (*f)(void))
1336 ENGINE *engine = ENGINE_new();
1339 if (engine == NULL)
1342 ENGINE_free(engine);
1351 ENGINE_free(engine);
1356 if (!ENGINE_set_id(engine, "cryptodev") ||
1357 !ENGINE_set_name(engine, "BSD cryptodev engine") ||
1358 !ENGINE_set_ciphers(engine, cryptodev_engine_ciphers) ||
1359 !ENGINE_set_digests(engine, cryptodev_engine_digests) ||
1360 !ENGINE_set_ctrl_function(engine, cryptodev_ctrl) ||
1361 !ENGINE_set_cmd_defns(engine, cryptodev_defns)) {
1362 ENGINE_free(engine);
1366 if (ENGINE_set_RSA(engine, &cryptodev_rsa)) {
1386 if (ENGINE_set_DSA(engine, &cryptodev_dsa)) {
1400 if (ENGINE_set_DH(engine, &cryptodev_dh)){
1414 ENGINE_add(engine);
1415 ENGINE_free(engine);