I want to build an OpenSSL RSA engine, starting from <a href="http://fossies.org/linux/openssl/crypto/engine/eng_rsax.c" target="_top" rel="nofollow" link="external">this existing source code file</a> <br>which is a faster method implemented by Intel. First of all I want to build this code so I'm using these commands:<br><br>

   <code> gcc -fPIC -m64 -o eng_rsax.o -c eng_rsax.c <br>
    gcc -shared -o eng_rsax.so -lcrypto eng_rsax.o</code><br><br>
... and no error shows up. Then, when I'm trying to test the engine by using the command:<br>

    <code>openssl engine -t -c `pwd`/eng_rsax.so</code><br>
... I receive the following errors:<br>

    <code>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<br>
    140470207960736:error:25070067:DSO support routines:DSO_load:could not load the shared library:dso_lib.c:244:<br>
    140470207960736:error:260B6084:engine routines:DYNAMIC_LOAD:dso not found:eng_dyn.c:450:
    <br>140470207960736:error:2606A074:engine routines:ENGINE_by_id:no such engine:eng_list.c:417:id=/some_path/eng_rsax.so</code><br><br>

At this point I guess I'm not using the right flags and maybe the commands for building the engine are incomplete.  <br>
What do I need to do in order to make this work?


        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://openssl.6102.n7.nabble.com/Errors-when-loading-an-OpenSSL-RSA-Engine-tp64385.html">Errors when loading an OpenSSL RSA Engine</a><br/>
Sent from the <a href="http://openssl.6102.n7.nabble.com/OpenSSL-Dev-f29372.html">OpenSSL - Dev mailing list archive</a> at Nabble.com.<br/>