summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/engine/eng_all.c
diff options
context:
space:
mode:
authorderaadt <>2014-06-10 16:15:19 +0000
committerderaadt <>2014-06-10 16:15:19 +0000
commit7cff78e6d2f228bcb76663cf6ece9d865170ae8b (patch)
treee3fb959ef1d725df151d0687e2bad88e6cba120e /src/lib/libcrypto/engine/eng_all.c
parent1f0ada29dbbd22c18c51187561c2eb01d2a776b2 (diff)
downloadopenbsd-7cff78e6d2f228bcb76663cf6ece9d865170ae8b.tar.gz
openbsd-7cff78e6d2f228bcb76663cf6ece9d865170ae8b.tar.bz2
openbsd-7cff78e6d2f228bcb76663cf6ece9d865170ae8b.zip
Abandon the auto-ENGINE /dev/crypto interface. VIA 3des cbc receives
collateral damage. The syncronous nature of this mechanism has hampered performance for symmetric crypto relative to brute-force cpu. The assymetric crypto support never really materialized in drivers. So abandon the complexity. ok tedu beck mikeb some disagrement from djm but if he wants to test /dev/crypto ciphers he should do it without this this gigantic API in the way
Diffstat (limited to 'src/lib/libcrypto/engine/eng_all.c')
-rw-r--r--src/lib/libcrypto/engine/eng_all.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/src/lib/libcrypto/engine/eng_all.c b/src/lib/libcrypto/engine/eng_all.c
index eb933153e1..4d07299efe 100644
--- a/src/lib/libcrypto/engine/eng_all.c
+++ b/src/lib/libcrypto/engine/eng_all.c
@@ -71,9 +71,7 @@ ENGINE_load_builtin_engines(void)
71 * *no* builtin implementations). */ 71 * *no* builtin implementations). */
72 ENGINE_load_openssl(); 72 ENGINE_load_openssl();
73#endif 73#endif
74#if !defined(OPENSSL_NO_HW) && (defined(__OpenBSD__) || defined(__FreeBSD__) || defined(HAVE_CRYPTODEV)) 74
75 ENGINE_load_cryptodev();
76#endif
77#ifndef OPENSSL_NO_RSAX 75#ifndef OPENSSL_NO_RSAX
78 ENGINE_load_rsax(); 76 ENGINE_load_rsax();
79#endif 77#endif
@@ -87,17 +85,3 @@ ENGINE_load_builtin_engines(void)
87#endif 85#endif
88 ENGINE_register_all_complete(); 86 ENGINE_register_all_complete();
89} 87}
90
91#if defined(__OpenBSD__) || defined(__FreeBSD__) || defined(HAVE_CRYPTODEV)
92void
93ENGINE_setup_bsd_cryptodev(void)
94{
95 static int bsd_cryptodev_default_loaded = 0;
96
97 if (!bsd_cryptodev_default_loaded) {
98 ENGINE_load_cryptodev();
99 ENGINE_register_all_complete();
100 }
101 bsd_cryptodev_default_loaded = 1;
102}
103#endif