[openssl-dev] Errors when loading an OpenSSL RSA Engine
danigrosu
dni.grosu at gmail.com
Mon Mar 7 16:49:41 UTC 2016
I want to build an OpenSSL RSA engine, starting from this existing source
code file <http://fossies.org/linux/openssl/crypto/engine/eng_rsax.c>
which is a faster method implemented by Intel. First of all I want to build
this code so I'm using these commands:
gcc -fPIC -m64 -o eng_rsax.o -c eng_rsax.c
gcc -shared -o eng_rsax.so -lcrypto eng_rsax.o
... and no error shows up. Then, when I'm trying to test the engine by using
the command:
openssl engine -t -c `pwd`/eng_rsax.so
... I receive the following errors:
140470207960736:error:25066067:DSO support routines:DLFCN_LOAD:could not
load the shared library:dso_dlfcn.c:185:filename(/some_path/eng_rsax.so):
/some_path/eng_rsax.so: undefined symbol: mod_exp_512
140470207960736:error:25070067:DSO support routines:DSO_load:could not
load the shared library:dso_lib.c:244:
140470207960736:error:260B6084:engine routines:DYNAMIC_LOAD:dso not
found:eng_dyn.c:450:
140470207960736:error:2606A074:engine routines:ENGINE_by_id:no such
engine:eng_list.c:417:id=/some_path/eng_rsax.so
At this point I guess I'm not using the right flags and maybe the commands
for building the engine are incomplete.
What do I need to do in order to make this work?
--
View this message in context: http://openssl.6102.n7.nabble.com/Errors-when-loading-an-OpenSSL-RSA-Engine-tp64385.html
Sent from the OpenSSL - Dev mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mta.openssl.org/pipermail/openssl-dev/attachments/20160307/649a2d0c/attachment.html>
More information about the openssl-dev
mailing list