cf6fc32958
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
17 lines
537 B
PHP
17 lines
537 B
PHP
# $NetBSD: bn.inc,v 1.1 2000/07/31 19:57:30 thorpej Exp $
|
|
#
|
|
# @(#) Copyright (c) 1995 Simon J. Gerraty
|
|
#
|
|
# SRCS extracted from /home/current/src/lib/libcrypto/../../crypto/dist/openssl/crypto/bn/Makefile.ssl
|
|
#
|
|
|
|
.PATH: ${OPENSSLSRC}/crypto/bn
|
|
.PATH: ${.CURDIR}/arch/i386
|
|
|
|
CPPFLAGS+= -I${OPENSSLSRC}/crypto/bn
|
|
|
|
SRCS+= bn_add.c bn_div.c bn_exp.c bn_lib.c bn_ctx.c bn_mul.c \
|
|
bn_print.c bn_rand.c bn_shift.c bn_word.c bn_blind.c \
|
|
bn_gcd.c bn_prime.c bn_err.c bn_sqr.c bn_asm_586.S bn_comba_586.S \
|
|
bn_recp.c bn_mont.c bn_mpi.c bn_exp2.c
|