Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 06 Dec 2018 23:47:19 +0100
From:      "Herbert J. Skuhra" <herbert@gojira.at>
To:        freebsd-stable@freebsd.org
Subject:   Re: /dev/crypto not being used in 12-STABLE
Message-ID:  <87h8fqjmrs.wl-herbert@gojira.at>
In-Reply-To: <A418F9A1-7298-4DA7-A185-BD16941BEC46@jnielsen.net>
References:  <A418F9A1-7298-4DA7-A185-BD16941BEC46@jnielsen.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 06 Dec 2018 20:19:44 +0100, John Nielsen wrote:
> 
> I have upgraded two physical machines from 11-STABLE to 12-STABLE
> recently (one is 12.0-PRERELEASE r341380 and the other is
> 12.0-PRERELEASE r341391). I noticed today that neither machine seems
> to be utilizing /dev/crypto. Typically I see at least ssh/sshd have
> the device open plus some programs from ports. But 'fuser' doesn't
> list any processes on either machine:
> 
> # fuser /dev/crypto
> /dev/crypto:
> 
> Both machines are running custom kernels that include "device
> crypto" and "device cryptodev". One of them additionally has "device
> aesni".
> 
> Is anyone else seeing this? Any idea what would cause it?

With security/openssl (1.0.2q):

% /usr/local/bin/openssl engine
(cryptodev) BSD cryptodev engine
(rdrand) Intel RDRAND engine
(dynamic) Dynamic engine loading support

% /usr/local/bin/openssl speed -engine cryptodev
engine "cryptodev" set.

With openssl 1.1.1a from base (and security/openssl111):

% openssl engine
(rdrand) Intel RDRAND engine
(dynamic) Dynamic engine loading support

% openssl speed -engine cryptodev
invalid engine "cryptodev"
34371112960:error:25066067:DSO support routines:dlfcn_load:could not load the shared library:/usr/src/crypto/openssl/crypto/dso/dso_dlfcn.c:117:filename(/usr/lib/engines/cryptodev.so): Cannot open "/usr/lib/engines/cryptodev.so"
34371112960:error:25070067:DSO support routines:DSO_load:could not load the shared library:/usr/src/crypto/openssl/crypto/dso/dso_lib.c:162:
34371112960:error:260B6084:engine routines:dynamic_load:dso not found:/usr/src/crypto/openssl/crypto/engine/eng_dyn.c:414:
34371112960:error:2606A074:engine routines:ENGINE_by_id:no such engine:/usr/src/crypto/openssl/crypto/engine/eng_list.c:334:id=cryptodev
34371112960:error:25066067:DSO support routines:dlfcn_load:could not load the shared library:/usr/src/crypto/openssl/crypto/dso/dso_dlfcn.c:117:filename(libcryptodev.so): Shared object "libcryptodev.so" not found, required by "openssl"
34371112960:error:25070067:DSO support routines:DSO_load:could not load the shared library:/usr/src/crypto/openssl/crypto/dso/dso_lib.c:162:
34371112960:error:260B6084:engine routines:dynamic_load:dso not found:/usr/src/crypto/openssl/crypto/engine/eng_dyn.c:414:

--
Herbert



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?87h8fqjmrs.wl-herbert>