Openssl speed test for Broadcom engine

I am using OpenSSL 1.0.1e.

The OpenSSL engine ubsec requires an additional library containing the actual implementation. The implementation library is / usr / lib / libvendor_ubsec.so.

To find out which ubec OpenSSL engine loads some implementation from the code:

ENGINE_ctrl_cmd_string (&engine, "SO_PATH", vendor_ubsec, 0); 

I want to run the openssl speed test as follows:

 openssl speed rsa1024 -engine ubsec 

But it fails because openssl does not load libvendor_ubsec.so.

I understand that this is due to the OpenSSL dynamic engines and to load the implementation. I need to use something like:

openssl engine ubsec -pre SO_PATH: vendor_ubsec

My question is how to "combine" the two openssl speed and openssl engine commands to run a speed test for the ubsec engine>

+6
source share
1 answer

Use the openssl command interpreter interactively instead of sending in single commands, so in the same execution context you can load the engine and then run the commands. This site also contains useful information on determining library loading paths.

 gmurphy@interloper :~$ openssl OpenSSL> engine dynamic (dynamic) Dynamic engine loading support OpenSSL> speed rsa1024 Doing 1024 bit private rsa for 10s: 32226 1024 bit private RSA in 9.96s Doing 1024 bit public rsa for 10s: 542409 1024 bit public RSA in 9.96s 
+4
source

Source: https://habr.com/ru/post/949709/


All Articles