With a VIA C5 board I get a huge difference in speed with engine padlock support (same machine same OS etc.). Where is the difference coming from. Are there any changes regarding buffering or block sizes? Look at this results:
0.9.8e: #./openssl speed -evp aes-256-cbc -engine padlock engine "padlock" set. Doing aes-256-cbc for 3s on 16 size blocks: 9477714 aes-256-cbc's in 2.99s Doing aes-256-cbc for 3s on 64 size blocks: 5371202 aes-256-cbc's in 3.00s Doing aes-256-cbc for 3s on 256 size blocks: 2058449 aes-256-cbc's in 2.99s Doing aes-256-cbc for 3s on 1024 size blocks: 645381 aes-256-cbc's in 3.00s Doing aes-256-cbc for 3s on 8192 size blocks: 93456 aes-256-cbc's in 3.00s OpenSSL 0.9.8e 23 Feb 2007 built on: Wed Aug 22 17:00:48 CEST 2007 options:bn(64,32) md2(int) rc4(idx,int) des(ptr,risc1,16,long) aes(partial) idea(int) blowfish(idx) compiler: gcc -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DSHA1_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM available timing options: TIMES TIMEB HZ=100 [sysconf value] timing function used: times The 'numbers' are in 1000s of bytes per second processed. type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes aes-256-cbc 50716.86k 114585.64k 176241.79k 220290.05k 255197.18k # 0.9.8d: # ./openssl speed -evp aes-256-cbc -engine padlock engine "padlock" set. Doing aes-256-cbc for 3s on 16 size blocks: 13856973 aes-256-cbc's in 2.99s Doing aes-256-cbc for 3s on 64 size blocks: 10520959 aes-256-cbc's in 3.00s Doing aes-256-cbc for 3s on 256 size blocks: 5370328 aes-256-cbc's in 3.00s Doing aes-256-cbc for 3s on 1024 size blocks: 1807981 aes-256-cbc's in 3.00s Doing aes-256-cbc for 3s on 8192 size blocks: 251498 aes-256-cbc's in 3.00s OpenSSL 0.9.8d 28 Sep 2006 built on: Fri Nov 10 20:44:47 CET 2006 options:bn(64,32) md2(int) rc4(idx,int) des(ptr,risc1,16,long) aes(partial) idea(int) blowfish(idx) compiler: gcc -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DSHA1_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM available timing options: TIMES TIMEB HZ=100 [sysconf value] timing function used: times The 'numbers' are in 1000s of bytes per second processed. type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes aes-256-cbc 74151.03k 224447.13k 458267.99k 617124.18k 686757.21k # ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]