Hi guys, I was doing some testing and I got this strange behavior: running openssl speed rsa, it fails on rsa verify (follows the log); is it possible it is due to the -g option I compiled OpenSSL with?
-- Log --
$ ./openssl speed rsa
Doing 512 bit private rsa's for 10s: 27495 512 bit private RSA's in
9.54s
Doing 512 bit public rsa's for 10s: RSA verify failure
23583:error:0407006A:rsa routines:RSA_padding_check_PKCS1_type_1:block
type is not 01:rsa_pk1.c:100:
23583:error:04067072:rsa routines:RSA_EAY_PUBLIC_DECRYPT:padding check
failed:rsa_eay.c:699:
1 512 bit public RSA's in 1.64s
Doing 1024 bit private rsa's for 10s: 4977 1024 bit private RSA's in
9.95s
Doing 1024 bit public rsa's for 10s: RSA verify failure
23583:error:0407006A:rsa routines:RSA_padding_check_PKCS1_type_1:block
type is not 01:rsa_pk1.c:100:
23583:error:04067072:rsa routines:RSA_EAY_PUBLIC_DECRYPT:padding check
failed:rsa_eay.c:699:
1 1024 bit public RSA's in 2.40s
Doing 2048 bit private rsa's for 10s: 755 2048 bit private RSA's in
9.65s
Doing 2048 bit public rsa's for 10s: RSA verify failure
23583:error:0407006A:rsa routines:RSA_padding_check_PKCS1_type_1:block
type is not 01:rsa_pk1.c:100:
23583:error:04067072:rsa routines:RSA_EAY_PUBLIC_DECRYPT:padding check
failed:rsa_eay.c:699:
1 2048 bit public RSA's in 5.60s
Doing 4096 bit private rsa's for 10s: 112 4096 bit private RSA's in
9.62s
Doing 4096 bit public rsa's for 10s: RSA verify failure
23583:error:0407006A:rsa routines:RSA_padding_check_PKCS1_type_1:block
type is not 01:rsa_pk1.c:100:
23583:error:04067072:rsa routines:RSA_EAY_PUBLIC_DECRYPT:padding check
failed:rsa_eay.c:699:
1 4096 bit public RSA's in 5.06s
OpenSSL 0.9.9-dev XX xxx XXXX
built on: Wed Jan 30 17:04:22 CET 2008
options:bn(64,32) md2(int) rc4(4x,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 -DOPENSSL_BN_ASM_MONT
-DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM
-DWHIRLPOOL_ASM -g
sign verify sign/s verify/s
rsa 512 bits 0.000347s 1.640000s 2882.1 0.6
rsa 1024 bits 0.001999s 2.400000s 500.2 0.4
rsa 2048 bits 0.012781s 5.600000s 78.2 0.2
rsa 4096 bits 0.085893s 5.060000s 11.6 0.2
--
Davide
smime.p7s
Description: S/MIME cryptographic signature
