From owner-freebsd-questions@FreeBSD.ORG Fri May 15 14:26:37 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C30DB106568F for ; Fri, 15 May 2009 14:26:37 +0000 (UTC) (envelope-from seklecki@noc.cfi.pgh.pa.us) Received: from drpmx.lab02.pitbpa0.pub.collaborativefusion.com (drpmx.lab02.pitbpa0.pub.collaborativefusion.com [206.210.89.232]) by mx1.freebsd.org (Postfix) with ESMTP id 76E618FC1C for ; Fri, 15 May 2009 14:26:37 +0000 (UTC) (envelope-from seklecki@noc.cfi.pgh.pa.us) DomainKey-Signature: a=rsa-sha1; c=nofws; d=noc.cfi.pgh.pa.us; h=subject:from:to:cc:in-reply-to:references:date:message-id:mime-version:content-type:content-transfer-encoding; q=dns; s=dk_selector; b=Hs+FND7uqtv/G9POdUn0WFG6XdqIOMF7aS1NGisH1XpQ+8Mcu8LZH4h17aZjDHTLSoWyhTXkrxQTnyzHO487b2QKDNNjJXKuyW6l0f17aQ8u6WIihfrwI9GjdmBayWfJ DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=noc.cfi.pgh.pa.us; h=subject:from:to:cc:in-reply-to:references:date:message-id:mime-version:content-type:content-transfer-encoding; s=dkim_selector; bh=H2Mw/ydXk049tqL14H5j9AJ0U7k=; b=p1D2ajjAAhC2vJaxZnfIaJOzUkIMJLNJv5xLbUcd8B9PnyFiCSJIZJbcGLx8LRx7s953dW9ZGfneKFLXcU+4ST7JwG3Y1pyP0GAKwq3/tQ5EaivOciYuugQrNKZqk63+ Received: from [192.168.2.161] (soundwave.ws.pitbpa0.priv.collaborativefusion.com [::ffff:192.168.2.161]) (AUTH: LOGIN seklecki, TLS: TLSv1/SSLv3,256bits,CAMELLIA256-SHA) by wingspan with esmtp; Fri, 15 May 2009 10:21:12 -0400 id 0018CC08.000000004A0D7A58.00012729 From: "Brian A. Seklecki" To: Brendan Kennedy In-Reply-To: References: Date: Fri, 15 May 2009 10:21:29 -0400 Message-Id: <1242397289.31340.3167.camel@soundwave.ws.pitbpa0.priv.collaborativefusion.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit X-Mailer: Evolution 2.24.5 (2.24.5-1.fc10) Cc: Steve Polyack , freebsd-questions@freebsd.org Subject: Re: FreeBSD 7.1 opencrypto --> kern.cryptodevallowsoft X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 May 2009 14:26:38 -0000 On Tue, 2009-05-12 at 19:14 +0100, Brendan Kennedy wrote: > 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: > What does kldstat(8) / openssl(1) return? % sudo openssl engine (dynamic) Dynamic engine loading support $ openssl engine (cryptodev) BSD cryptodev engine (padlock) VIA PadLock (no-RNG, no-ACE) (dynamic) Dynamic engine loading support $ kldstat |egrep -i 'cry|ub' 3 3 0xc0e06000 25b78 crypto.ko 7 1 0xc64c9000 4000 cryptodev.ko 8 1 0xc6546000 a000 ubsec.ko Return? ~BAS > 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 > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"