Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Apr 2006 15:01:31 -0700
From:      "Winston Tsai" <wtsai@hifn.com>
To:        <freebsd-drivers@freebsd.org>, <freebsd-security@freebsd.org>
Subject:   Crypto hw acceleration for openssl
Message-ID:  <CFA9FA7615FFD04DB8FD8E34A3FF7F46022BB92A@sjcxch02.tbu.com>

next in thread | raw e-mail | index | archive | help
I got roughly the same performance results when I use the openssl speed
test with and without a hifn 7956 cryto card
Here's what I did:
After the card is plugged in, kldload hifn; kldload cryptodev;
I got the message:
hifn0 mem 0xfc8f0000-0xfc8f7ffff, 0xfc8f0000-0xfc8f7ffff,
0xfc8f0000-0xfc8f7ffff irg 28 at device 3.0 on pci1
hifn0: Hifn 7956, rev 0, 32KB dram, pll=3D0x800<pci clk, 4x mult>
Then I ran:
Openssl speed des-cbc
And got the following result:
16 bytes   64 bytes   256 bytes  1024 bytes  8192 bytes
43251.97k  44919.41k  45342.43k  45506.13k   45579.98k
Then I did kldunload hifn; kldunload cryptodev and ran the same test
again, and got
16 bytes   64 bytes   256 bytes  1024 bytes  8192 bytes
43108.10k  44917.96k  45460.88k  45532.15k   45566.26k

Version of FreeBSD is 5.3-RELEASE. I believe both crypto and cryptodev
drivers are supported since v5.0.
=20
My understanding is that openssl will detect the presence of an
accelerator card and use it (via \dev\crypto) instead of the crypto
library.
Did I miss something here?
TIA,
Winston




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