Subject: openssl and opencrypto
To: None <current-users@netbsd.org>
From: Jeff <jeff@delnoch.net>
List: current-users
Date: 12/29/2005 12:23:19
It appears that since the recent openssl import, hardware crypto via
openssl is broken.

in the past $ openssl engine would give me
(cryptodev) BSD cryptodev engine
(dynamic) Dynamic engine loading support
(cswift) CryptoSwift hardware engine support
(chil) nCipher hardware engine support
(atalla) Atalla hardware engine support
(nuron) Nuron hardware engine support
(ubsec) UBSEC hardware engine support
(aep) Aep hardware engine support
(sureware) SureWare hardware engine support
(4758cca) IBM 4758 CCA hardware engine support

Now i see
(dynamic) Dynamic engine loading support
(4758cca) IBM 4758 CCA hardware engine support
(aep) Aep hardware engine support
(atalla) Atalla hardware engine support
(cswift) CryptoSwift hardware engine support
(chil) CHIL hardware engine support
(nuron) Nuron hardware engine support
(sureware) SureWare hardware engine support
(ubsec) UBSEC hardware engine support
(padlock) VIA PadLock (no-RNG, no-ACE)


I do see this in openssl CHANGES
----
  *) Change the ENGINE framework to automatically load engines
     dynamically from specific directories unless they could be
     found to already be built in or loaded.  Move all the
     current engines except for the cryptodev one to a new
     directory engines/.
     The engines in engines/ are built as shared libraries if
     the "shared" options was given to ./Configure or ./config.
     Otherwise, they are inserted in libcrypto.a.
     /usr/local/ssl/engines is the default directory for dynamic
     engines, but that can be overriden at configure time through
     the usual use of --prefix and/or --openssldir, and at run
     time with the environment variable OPENSSL_ENGINES.
     [Geoff Thorpe and Richard Levitte]
----

{681} strings libcrypto.so | grep -i cryptodev
ENGINE_setup_bsd_cryptodev
ENGINE_load_cryptodev

That said, it doesnt seem to be "just working" transparently, as the
speed tests show ~identical results on the machine w/ and w/o the hifn
card.


Any suggestions?

Jeff