openssl speed -evp <algo> works like a charm. Thanks for the info.
Though the manpage on the speed test is a bit misleading:
SPEED
    openssl speed [aes] [aes-128-cbc] [aes-192-cbc] [aes-256-cbc] [blowfish]
    [bf-cbc] [cast] [cast-cbc] [des] [des-cbc] [des-ede3] [dsa] [dsa512]
    [dsa1024] [dsa2048] [hmac] [md2] [md4] [md5] [rc2] [rc2-cbc] [rc4]
    [rmd160] [rsa] [rsa512] [rsa1024] [rsa2048] [rsa4096] [sha1] [-decrypt]
    [-elapsed] [-mr] [-engine id] [-evp e] [-multi number]

On FreeBSD, I was able to get the hw crypto to work with:
openssl speed <algo> -evp -engine cryptodev

Apparently on OpenBSD, I really don't need to specify the -engine but
I do need to insert -evp between "speed" and <algo>. Odd. But I am
happy to get it finally talk to the hw crypto.

Winston

On 6/2/06, jared r r spiegel <[EMAIL PROTECTED]> wrote:
On Fri, Jun 02, 2006 at 05:23:40PM -0700, Winston wrote:
> I have tried the following command to get the hw crypto to work:
> openssl speed des-cbc -engine cryptodev
> But the result I got is pretty much the same if I don't specify the
> cryptodev engine.
> The crypto card I have is hifn7956.
> I tried to compile hifn7751.c by commenting out #undef HIFN_DEBUG,
> hoping to get some debug msgs, but I got none. So the hifn driver is
> not really called.
> On FreeBSD I need to specify a -evp flag, However, if I specify -evp,
> it say "no EVP given". So it looks like that I need to provide a
> parameter to -evp. But I have no idea what are valid parms. On
> FreeBSD, -evp with no parm is OK.
>
> Environ:
> OpenBSD ver: 3.8
> Processor: Intel Xeon 2.8G.
>
> Winston

http://marc.theaimsgroup.com/?l=openbsd-misc&w=2&r=1&s=openssl+speed+evp&q=b

  i believe usercrypto is 1 by default now

--

  jared

[ openbsd 3.9-current GENERIC ( may  1 ) // i386 ]

Reply via email to