Well even though I get the error about the shared libraries, it did work with
is Configure:
./Configure --prefix=~gries/usr/local/ssl --openssldir=~gries/usr/local/ssl
threads linux-ppc64 -m64 -L/usr/local/lib -DOPENSSL_USE_GMP -lgmp -static
[EMAIL PROTECTED]:~/openssl-0.9.8g$ apps/openssl speed rsa -engine gmp invalid
engine "gmp" 27835:error:25066067:DSO support routines:DLFCN_LOAD:could not
load the shared
library:dso_dlfcn.c:162:filename(~gries/usr/local/ssl/lib/engines/libgmp.so):
~gries/usr/local/ssl/lib/engines/libgmp.so: cannot open shared object file: No
such file or directory
27835:error:25070067:DSO support routines:DSO_load:could not load the shared
library:dso_lib.c:244:
27835:error:260B6084:engine routines:DYNAMIC_LOAD:dso not found:eng_dyn.c:450:
27835:error:2606A074:engine routines:ENGINE_by_id:no such
engine:eng_list.c:415:id=gmp
27835:error:25066067:DSO support routines:DLFCN_LOAD:could not load the shared
library:dso_dlfcn.c:162:filename(libgmp.so): libgmp.so: cannot open shared
object file: No such file or directory
27835:error:25070067:DSO support routines:DSO_load:could not load the shared
library:dso_lib.c:244:
27835:error:260B6084:engine routines:DYNAMIC_LOAD:dso not found:eng_dyn.c:450:
Doing 512 bit private rsa's for 10s: 17155 512 bit private RSA's in 9.99s
Doing 512 bit public rsa's for 10s: 275308 512 bit public RSA's in 10.00s
Doing 1024 bit private rsa's for 10s: 5518 1024 bit private RSA's in 9.99s
Doing 1024 bit public rsa's for 10s: 120308 1024 bit public RSA's in 10.00s
Doing 2048 bit private rsa's for 10s: 1108 2048 bit private RSA's in 10.00s
Doing 2048 bit public rsa's for 10s: 44970 2048 bit public RSA's in 9.99s
Doing 4096 bit private rsa's for 10s: 198 4096 bit private RSA's in 10.03s
Doing 4096 bit public rsa's for 10s: 14466 4096 bit public RSA's in 10.00s
OpenSSL 0.9.8g 19 Oct 2007
built on: Mon Dec 3 08:04:43 PST 2007
options:bn(64,64) md2(int) rc4(ptr,char) des(idx,risc1,16,long) aes(partial)
idea(int) blowfish(idx)
compiler: gcc -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -m64
-DOPENSSL_USE_GMP -static -m64 -DB_ENDIAN -DTERMIO -O3 -Wall
available timing options: TIMES TIMEB HZ=100 [sysconf value]
timing function used: times
sign verify sign/s verify/s
rsa 512 bits 0.000582s 0.000036s 1717.2 27530.8
rsa 1024 bits 0.001810s 0.000083s 552.4 12030.8
rsa 2048 bits 0.009025s 0.000222s 110.8 4501.5
rsa 4096 bits 0.050657s 0.000691s 19.7 1446.6
[EMAIL PROTECTED]:~/openssl-0.9.8g$
----- Original Message -----
From: "Robert Gries" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Cc: [email protected]
Sent: Monday, December 3, 2007 2:20:20 AM (GMT-0800) America/Los_Angeles
Subject: powerpcc64 debian and -DOPENSSL_USE_GMP -lgmp
I know this must have been answered elsewhere, but I have not found it:
How does one build and use gmp on powerpcc64 on debian?
I have done:
543 ./Configure --prefix=~gries/usr/local/ssl
--openssldir=~gries/usr/local/ssl gcc -DUSE_TOD threads shared enable-idea
enable-rc5 enable-mdc2 -L/usr/local/lib -DOPENSSL_USE_GMP -lgmp
544 make depend
545 make
[EMAIL PROTECTED]:~/openssl-0.9.8g$ ls -ltr /usr/local/lib
total 3144
drwxrwsr-x 3 root staff 4096 2007-09-10 10:08 python2.4
drwxrwsr-x 3 root staff 4096 2007-09-12 03:50 perl
-rwxr-xr-x 1 root staff 890 2007-11-14 06:03 libbfd.la
-rw-r--r-- 1 root staff 1735436 2007-11-14 06:03 libbfd.a
-rwxr-xr-x 1 root staff 902 2007-11-14 06:03 libopcodes.la
-rw-r--r-- 1 root staff 232554 2007-11-14 06:04 libopcodes.a
-rwxr-xr-x 1 root staff 366279 2007-11-30 19:13 libgmp.so.3.4.1
lrwxrwxrwx 1 root staff 15 2007-11-30 19:13 libgmp.so.3 -> libgmp.so.3.4.1
lrwxrwxrwx 1 root staff 15 2007-11-30 19:13 libgmp.so -> libgmp.so.3.4.1
-rwxr-xr-x 1 root staff 783 2007-11-30 19:13 libgmp.la
-rw-r--r-- 1 root staff 840892 2007-11-30 19:13 libgmp.a
[EMAIL PROTECTED]:~/openssl-0.9.8g$
However:
[EMAIL PROTECTED]:~/openssl-0.9.8g/apps$ ./openssl speed rsa -engine gmp
invalid engine "gmp"
14054:error:260B6084:engine routines:DYNAMIC_LOAD:dso not found:eng_dyn.c:450:
14054:error:2606A074:engine routines:ENGINE_by_id:no such
engine:eng_list.c:415:id=gmp
14054:error:2507006C:DSO support routines:DSO_load:functionality not
supported:dso_lib.c:239:
14054:error:260B6084:engine routines:DYNAMIC_LOAD:dso not found:eng_dyn.c:450:
______________________________________________________________________
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]