[openssl-dev] Errors when loading an OpenSSL RSA Engine

danigrosu dni.grosu at gmail.com
Thu Mar 10 14:01:18 UTC 2016


Richard Levitte - VMS Whacker-2 wrote
> The issue is easily fixed by adding a parameter in the problematic
> call, like this:
> 
>   if(!bind_helper(ret, engine_e_rsax_id))

Yes, indeed it was simple, I totally missed that.

And now something really weird...
Remember my first post in this topic when I said I encountered this:

/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/

I simply implemented the body of the "mod_exp_512" function, and the magic
happend:

/root at dani-pc:~/Desktop/CUDA/RSA-engine# openssl genrsa -out priv.pem
-engine `pwd`/eng_rsax.so 1024
/home/dani/Desktop/CUDA/RSA-engine/eng_rsax.so
engine "rsax_dani" set.
Generating RSA private key, 1024 bit long modulus
.................................++++++
..........++++++
e is 65537 (0x10001)/

It seems that the solution was right in front of my eyes.
Now let's put some CUDA code in this engine  and increase the speedup.
Thank you for support!

Best wishes,
Dani Grosu




--
View this message in context: http://openssl.6102.n7.nabble.com/Errors-when-loading-an-OpenSSL-RSA-Engine-tp64385p64547.html
Sent from the OpenSSL - Dev mailing list archive at Nabble.com.


More information about the openssl-dev mailing list