OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
CVS: cvs.openbsd.org: src

From: Theo de Raadt (deraadtcvs.openbsd.org)
Date: Tue Feb 03 2004 - 02:48:27 CST


CVSROOT: /cvs
Module name: src
Changes by: deraadtcvs.openbsd.org 2004/02/03 01:48:27

Modified files:
        lib/libssl/src/crypto/engine: hw_cryptodev.c

Log message:
If on an i386, detect existance of the VIA C3 xcrypt-* using sysctl of
the machdep.xcrypt node. If they exist, use the xcrypt-cbc instruction
to accelerate aes-{128,192,256}-cbc, for more than 100x performance
increase. This code has no effect on any cpu... Tested thus far using
openssl speed command, and of course, ssh. 778MB/sec AES-128-CBC
performance at 8192 byte block size.