before: # openssl speed md5 sha aes Doing md5 for 3s on 16 size blocks: 4513588 md5's in 3.00s Doing md5 for 3s on 64 size blocks: 3665477 md5's in 2.99s Doing md5 for 3s on 256 size blocks: 2411259 md5's in 3.00s Doing md5 for 3s on 1024 size blocks: 1017562 md5's in 3.00s Doing md5 for 3s on 8192 size blocks: 158965 md5's in 3.00s Doing sha1 for 3s on 16 size blocks: 4517225 sha1's in 3.00s Doing sha1 for 3s on 64 size blocks: 3572736 sha1's in 3.01s Doing sha1 for 3s on 256 size blocks: 2171072 sha1's in 3.00s Doing sha1 for 3s on 1024 size blocks: 846204 sha1's in 3.00s Doing sha1 for 3s on 8192 size blocks: 126307 sha1's in 3.00s Doing sha256 for 3s on 16 size blocks: 4349884 sha256's in 3.00s Doing sha256 for 3s on 64 size blocks: 2582132 sha256's in 3.01s Doing sha256 for 3s on 256 size blocks: 1174174 sha256's in 3.00s Doing sha256 for 3s on 1024 size blocks: 369469 sha256's in 3.01s Doing sha256 for 3s on 8192 size blocks: 49975 sha256's in 3.01s Doing sha512 for 3s on 16 size blocks: 4199038 sha512's in 3.00s Doing sha512 for 3s on 64 size blocks: 4256725 sha512's in 3.01s Doing sha512 for 3s on 256 size blocks: 1648463 sha512's in 3.01s Doing sha512 for 3s on 1024 size blocks: 587006 sha512's in 3.01s Doing sha512 for 3s on 8192 size blocks: 83800 sha512's in 3.00s Doing aes-128 cbc for 3s on 16 size blocks: 13115018 aes-128 cbc's in 3.00s Doing aes-128 cbc for 3s on 64 size blocks: 3604584 aes-128 cbc's in 3.01s Doing aes-128 cbc for 3s on 256 size blocks: 923557 aes-128 cbc's in 3.01s Doing aes-128 cbc for 3s on 1024 size blocks: 486835 aes-128 cbc's in 3.00s Doing aes-128 cbc for 3s on 8192 size blocks: 61845 aes-128 cbc's in 3.01s Doing aes-192 cbc for 3s on 16 size blocks: 11233357 aes-192 cbc's in 3.01s Doing aes-192 cbc for 3s on 64 size blocks: 3022912 aes-192 cbc's in 3.01s Doing aes-192 cbc for 3s on 256 size blocks: 771806 aes-192 cbc's in 3.01s Doing aes-192 cbc for 3s on 1024 size blocks: 410830 aes-192 cbc's in 3.01s Doing aes-192 cbc for 3s on 8192 size blocks: 52053 aes-192 cbc's in 3.01s Doing aes-256 cbc for 3s on 16 size blocks: 9723046 aes-256 cbc's in 3.01s Doing aes-256 cbc for 3s on 64 size blocks: 2598144 aes-256 cbc's in 3.01s Doing aes-256 cbc for 3s on 256 size blocks: 660432 aes-256 cbc's in 3.01s Doing aes-256 cbc for 3s on 1024 size blocks: 352187 aes-256 cbc's in 2.99s Doing aes-256 cbc for 3s on 8192 size blocks: 44471 aes-256 cbc's in 3.00s OpenSSL 1.0.0a 1 Jun 2010 built on: date not available options:bn(64,64) rc4(8x,int) des(idx,cisc,16,int) aes(partial) blowfish(idx) compiler: information not available The 'numbers' are in 1000s of bytes per second processed. type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes md5 24072.47k 78458.37k 205760.77k 347327.83k 434080.43k sha1 24091.87k 75965.15k 185264.81k 288837.63k 344902.31k aes-128 cbc 69946.76k 76642.32k 78548.37k 166173.01k 168317.02k aes-192 cbc 59712.20k 64274.54k 65641.97k 139764.09k 141667.17k aes-256 cbc 51683.97k 55242.93k 56169.63k 120615.21k 121435.48k sha256 23199.38k 54902.47k 100196.18k 125693.11k 136011.69k sha512 22394.87k 90508.44k 140201.50k 199699.05k 228829.87k
after: # openssl speed md5 sha aes openssl:/usr/lib/libcrypto.so.19.0: undefined symbol 'cleanse_ctr' Segmentation fault (core dumped) :-) On Fri, Jul 08, 2011 at 04:24:19AM +0200, Marco Pfatschbacher wrote: > On Thu, Jul 07, 2011 at 09:10:59PM -0500, Marco Peereboom wrote: > > Is amd64 already enabled? > > The amd64 perlasm stuff does not make use of SSE2. > > Also the perlasm files take different arguments, so passing > CFLAGS will actually break them. > > This should be safe, but it's better if any amd64 user could md5-test > this.. > > Index: Makefile > =================================================================== > RCS file: /cvs/src/lib/libssl/crypto/Makefile,v > retrieving revision 1.59 > diff -p -u -p -u -r1.59 Makefile > --- Makefile 8 Jul 2011 01:37:54 -0000 1.59 > +++ Makefile 8 Jul 2011 02:22:31 -0000 > @@ -512,15 +512,6 @@ SRCS+= bf_cbc.c > SRCS+= bf_enc.c des_enc.c > SRCS+= x86_64-gcc.c > SRCS+= fcrypt_b.c > -CFLAGS+= -DAES_ASM > -CFLAGS+= -DMD5_ASM > -CFLAGS+= -DSHA1_ASM > -CFLAGS+= -DSHA256_ASM > -CFLAGS+= -DSHA512_ASM > -CFLAGS+= -DOPENSSL_CPUID_OBJ > -CFLAGS+= -DOPENSSL_BN_ASM_MONT > -CFLAGS+= -DWHIRLPOOL_ASM > -CFLAGS+= -DOPENSSL_IA32_SSE2 > SSLASM=\ > aes aes-x86_64 \ > aes aesni-x86_64 \