Subject: CVS commit: basesrc
To: None <source-changes@netbsd.org>
From: Jason R Thorpe <thorpej@netbsd.org>
List: source-changes
Date: 07/31/2000 22:57:33
Module Name:	basesrc
Committed By:	thorpej
Date:		Mon Jul 31 19:57:32 UTC 2000

Added Files:
	basesrc/lib/libcrypto/arch/i386: bn.inc bn_asm_586.S bn_comba_586.S

Log Message:
Add support for building the assembly versions of some BIGNUM
routines from OpenSSL.  Speeds up DSA significantly.  A similar
gain should also be seen for RSA.

Before:
Doing 512 bit sign dsa's for 10s: 965 512 bit DSA signs in 9.97s
Doing 512 bit verify dsa's for 10s: 766 512 bit DSA verify in 9.93s
Doing 1024 bit sign dsa's for 10s: 276 1024 bit DSA signs in 9.99s
Doing 1024 bit verify dsa's for 10s: 217 1024 bit DSA verify in 9.93s
                  sign    verify    sign/s verify/s
dsa  512 bits   0.0103s   0.0130s     96.8     77.1
dsa 1024 bits   0.0362s   0.0458s     27.6     21.9

After:
Doing 512 bit sign dsa's for 10s: 3742 512 bit DSA signs in 9.88s
Doing 512 bit verify dsa's for 10s: 3065 512 bit DSA verify in 9.92s
Doing 1024 bit sign dsa's for 10s: 1357 1024 bit DSA signs in 9.99s
Doing 1024 bit verify dsa's for 10s: 1094 1024 bit DSA verify in 9.83s
                  sign    verify    sign/s verify/s
dsa  512 bits   0.0026s   0.0032s    378.7    309.0
dsa 1024 bits   0.0074s   0.0090s    135.8    111.3


To generate a diff of this commit:
cvs rdiff -r0 -r1.1 basesrc/lib/libcrypto/arch/i386/bn.inc \
    basesrc/lib/libcrypto/arch/i386/bn_asm_586.S \
    basesrc/lib/libcrypto/arch/i386/bn_comba_586.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.