diff options
| author | deraadt <> | 2014-06-10 16:15:19 +0000 |
|---|---|---|
| committer | deraadt <> | 2014-06-10 16:15:19 +0000 |
| commit | b147e3087c995acd3d243bd1df04a843ea6babbc (patch) | |
| tree | e3fb959ef1d725df151d0687e2bad88e6cba120e /src/lib/libcrypto/engine/eng_all.c | |
| parent | c69f3df03cd3fd4e6935df9c43dfbe803299a5d2 (diff) | |
| download | openbsd-b147e3087c995acd3d243bd1df04a843ea6babbc.tar.gz openbsd-b147e3087c995acd3d243bd1df04a843ea6babbc.tar.bz2 openbsd-b147e3087c995acd3d243bd1df04a843ea6babbc.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 '')
| -rw-r--r-- | src/lib/libcrypto/engine/eng_all.c | 18 |
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) | ||
| 92 | void | ||
| 93 | ENGINE_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 | ||
