What version of GCC are you using? Many older GCCs have problems with -O3 (or even -O2). I presume this is x86? -J
On Wed, Jun 23, 2004 at 09:58:32AM +0200, Roman Pletka wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hello All, > > When performing speed measurements with aes-xxx-ecb I get the following > errors > and segmentation fault: > > [EMAIL PROTECTED] bin]$ ./openssl version > OpenSSL 0.9.7d 17 Mar 2004 > > [EMAIL PROTECTED] bin]$ ./openssl speed -evp aes-128-ecb -decrypt > Doing aes-128-ecb for 3s on 16 size blocks: 10922830 aes-128-ecb's in 3.01s > Doing aes-128-ecb for 3s on 64 size blocks: 3756843 aes-128-ecb's in 3.00s > Doing aes-128-ecb for 3s on 256 size blocks: 1052700 aes-128-ecb's in 2.99s > Doing aes-128-ecb for 3s on 1024 size blocks: 272960 aes-128-ecb's in 3.01s > Doing aes-128-ecb for 3s on 8192 size blocks: 34463 aes-128-ecb's in 2.99s > OpenSSL 0.9.7d 17 Mar 2004 > built on: Tue Jun 22 10:05:29 CEST 2004 > 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 > - -DOPENSSL_NO_KRB5 -DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -m486 -Wall > - -DSHA1_ASM -DMD5_ASM -DRMD160_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-128-ecb 58061.55k 80145.98k 90130.84k 92860.81k > 94421.70k > 12794:error:06065064:digital envelope routines:EVP_DecryptFinal:bad > decrypt:evp_enc.c:450: > 12794:error:06065064:digital envelope routines:EVP_DecryptFinal:bad > decrypt:evp_enc.c:450: > 12794:error:06065064:digital envelope routines:EVP_DecryptFinal:bad > decrypt:evp_enc.c:450: > 12794:error:06065064:digital envelope routines:EVP_DecryptFinal:bad > decrypt:evp_enc.c:450: > 12794:error:06065064:digital envelope routines:EVP_DecryptFinal:bad > decrypt:evp_enc.c:450: > Segmentation fault > > I get similar output for aes-192-ecb and aes-256-ecb. Any ideas? > > Thanks, > Roman > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.0.7 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iD8DBQFA2Tgo9GOBmbEdi04RAj83AJ9COBLBdfnaGim1h9y1Hj/rhrV2rACfcbfu > 44h5cNA1cz383WDExTE74sY= > =UXx3 > -----END PGP SIGNATURE----- > > ______________________________________________________________________ > OpenSSL Project http://www.openssl.org > Development Mailing List [EMAIL PROTECTED] > Automated List Manager [EMAIL PROTECTED] ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]