Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 May 2009 19:14:38 +0100
From:      Brendan Kennedy <brendan.kennedy@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   FreeBSD 7.1 opencrypto --> kern.cryptodevallowsoft
Message-ID:  <db3b765b0905121114k4c16f924n854b66c3dd467320@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hi All,

I'm trying to test a hardware crypto driver, but want to run my tests
through the software driver first (and possibly use the software
driver to validate results).
I have set the following in my GENERIC conf file:

device          crypto
device          enc
options         IPSEC

I have rebuilt the kernel, rebooted and set the
kern.cryptodevallowsoft kernel variable to 1:

FreeBSD_26# sysctl -a | grep crypto
kern.cryptodevallowsoft: 1

However, when I try a test, I get the following:

FreeBSD_26# /usr/src/tools/tools/crypto/cryptotest -va 3des
cipher 3des keylen 24
CIOCGSESSION: Invalid argument
FreeBSD_26# /usr/src/tools/tools/crypto/cryptotest -va des
cipher des keylen 8
CIOCGSESSION: Invalid argument

It seems the software crypto device is not available. Do I need to do
any other steps to enable it? Is there another config option that
makes sure it is build as part of Opencrypto framework? Do I need to
build some other software driver instead?

Best Regards,
Brendan



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