With the BCM board removed…
/usr/local/bin/openssl engine -t -c
(cryptodev) BSD cryptodev engine
[RSA, DSA, DH]
[ available ]
(dynamic) Dynamic engine loading support
[ unavailable ]
(padlock) VIA PadLock: not supported
[ unavailable ]
I cannot use cryptotest for a comparison as the output above shows that without the BCM board I don't have a compatible algorithm where algorithm is one of:
des 3des (default) blowfish cast skipjack
aes (aka rijndael) aes192 aes256 arc4
So using openssl instead for comparisons, testing without the BCM board first.
openssl speed
sign verify sign/s verify/s
rsa 512 bits 0.001150s 0.000122s 869.4 8214.2
rsa 1024 bits 0.005187s 0.000296s 192.8 3377.4
rsa 2048 bits 0.031142s 0.000894s 32.1 1119.2
rsa 4096 bits 0.196700s 0.003057s 5.1 327.1
sign verify sign/s verify/s
dsa 512 bits 0.000893s 0.000970s 1119.7 1031.2
dsa 1024 bits 0.002461s 0.002825s 406.3 354.0
dsa 2048 bits 0.008048s 0.009546s 124.3 104.8
With the BCM board installed.
openssl speed -engine cryptodev
sign verify sign/s verify/s
rsa 512 bits 0.000350s 0.000038s 2854.3 26445.7
rsa 1024 bits 0.000555s 0.000053s 1801.6 18825.8
rsa 2048 bits 0.001310s 0.000107s 763.5 9315.1
rsa 4096 bits 0.647222s 0.003194s 1.5 313.1
sign verify sign/s verify/s
dsa 512 bits 0.000389s 0.000415s 2571.9 2410.9
dsa 1024 bits 0.000584s 0.000511s 1711.0 1955.9
dsa 2048 bits 0.000760s 0.000684s 1316.0 1461.9
From my calculations there is a worthwhile performance increase using 512, 1024, 2048 certs, but a performance degradation using 4096 certs. 2048 bits is almost 24 times faster on signs and more than 8 times faster on verify. The BCM board was also tested in a regular 32 bit 33Mhz PCI slot when it should be in a 64 bit 66Mhz slot. CPU is 2.6Ghz Celeron.
rsa 512 bits 3.28 3.22
rsa 1024 bits 9.34 5.57
rsa 2048 bits 23.79 8.32
rsa 4096 bits 0.29 0.96
dsa 512 bits 2.30 2.34
dsa 1024 bits 4.21 5.53
dsa 2048 bits 10.59 13.95
So my conclusion is that the ubsec kernel module is working and I will be changing all my rsa and dsa certificates to 2048 bits. I will also be looking for a pair of Xeon based systems with PCI-X slots now.