From owner-freebsd-questions@FreeBSD.ORG Tue May 12 18:46:31 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 C82D2106568C for ; Tue, 12 May 2009 18:46:31 +0000 (UTC) (envelope-from brendan.kennedy@gmail.com) Received: from mail-ew0-f159.google.com (mail-ew0-f159.google.com [209.85.219.159]) by mx1.freebsd.org (Postfix) with ESMTP id 590CF8FC1C for ; Tue, 12 May 2009 18:46:31 +0000 (UTC) (envelope-from brendan.kennedy@gmail.com) Received: by ewy3 with SMTP id 3so211161ewy.43 for ; Tue, 12 May 2009 11:46:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=YlhUeFR+no/MzCa2uXtRxvA8Rciti3DyMxCKm1ODg4g=; b=P0zCoJcaAMPiISJjqh91FznkHRtzzkIcoh9F3DO+H1SElIPF+92/ILbvSkLVbBiWtP 0ydvizUNx0Ha02VVMcT6U8MRhrCmp12YCNJbGuriWi+epnS30YnoRO61sXiStiE77TsD Q3QyTZieN8L5w1fiGmFIfq6OxQxXwYik4MvEs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=sdiaDvUguguT17utk/TtjfkB1jUwa6su0OQZwj3y7TSgpepGI2t6czYqqjRpCng08y Z34yOhtmOQGx43Lum51inSnvygUAOAi9boGvrICdRtAjMdewylBDt3Es+ntOA87NtvCX dY0zZF3E3Y5wr3xzXNsadf75Qlr/lTJk7KwGw= MIME-Version: 1.0 Received: by 10.216.3.65 with SMTP id 43mr4216376weg.149.1242152078155; Tue, 12 May 2009 11:14:38 -0700 (PDT) Date: Tue, 12 May 2009 19:14:38 +0100 Message-ID: From: Brendan Kennedy To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: 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: Tue, 12 May 2009 18:46:32 -0000 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