Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

cryptodev engine in openssl not working

1,179 views
Skip to first unread message

Anees K A

unread,
Sep 11, 2013, 5:04:03 AM9/11/13
to
Hi,

When I try the following command

$ openssl speed aes -engine crytodev
invalid engine "cryptodev"
3078063752:error:25066067:DSO support routines:DLFCN_LOAD:could not load the shared library:dso_dlfcn.c:187:filename(/lib/engines/libcryptodev.so): /lib/engines/libcryptodev.so: cannot open shared object file: No such file or directory

If I look in the source, I can see eng_cryptodev.c file under crypto/engine folder. Why is this not working?

I am using the following git - git://git.openssl.org/openssl.git

$ openssl engine
(dynamic) Dynamic engine loading support

Regards

anees k A

Gnanasekar R

unread,
Sep 11, 2013, 6:28:35 AM9/11/13
to
Did you build OpenSSL libs by enabling the appropriate flags - HAVE_CRYPTODEV etc ? 
In files crypto/engine/eng_all.c , "ENGINE_load_cryptodev" will be under few defines. Make sure your platform have those defines.

Regards,
Gnananasekar

Anees K A

unread,
Sep 11, 2013, 7:14:20 AM9/11/13
to
Hi Gnananasekar,

Thank you for your clarification. I have figured that out by now :D

Now the build process complains that it cannot find crypto/cryptodev.h . Any ideas?



Regards

anees k A

David McCullough

unread,
Sep 11, 2013, 7:52:40 AM9/11/13
to

Anees K A wrote the following:
> Hi Gnananasekar,
>
> Thank you for your clarification. I have figured that out by now :D
>
> Now the build process complains that it cannot find crypto/cryptodev.h .
> Any ideas?

If you are building openssl with cryptodev on a non BSD system (like linux),
then you will need to have some form of OCF port. For linux you can get
this by building and installing ocf-linux. That will get you the headers,

Cheers,
Davidm


> On Wed, Sep 11, 2013 at 3:58 PM, Gnanasekar R <gnanase...@gmail.com>wrote:
>
> > Did you build OpenSSL libs by enabling the appropriate flags
> > - HAVE_CRYPTODEV etc ?
> > In files crypto/engine/eng_all.c , "ENGINE_load_cryptodev" will be under
> > few defines. Make sure your platform have those defines.
> >
> > Regards,
> > Gnananasekar
> >
> >
> > On 11 September 2013 14:34, Anees K A <anee...@mistralsolutions.com>wrote:
> >
> >> Hi,
> >>
> >> When I try the following command
> >>
> >> $ openssl speed aes -engine crytodev
> >> *invalid engine "cryptodev"*
> >> 3078063752:error:25066067:DSO support routines:DLFCN_LOAD:could not load
> >> the shared library:dso_dlfcn.c:187:filename(/lib/engines/libcryptodev.so):
> >> /lib/engines/libcryptodev.so: cannot open shared object file: No such file
> >> or directory
> >>
> >> If I look in the source, I can see eng_cryptodev.c file under
> >> crypto/engine folder. Why is this not working?
> >>
> >> I am using the following git - git://git.openssl.org/openssl.git
> >>
> >> $ openssl engine
> >> (dynamic) Dynamic engine loading support
> >>
> >> Regards
> >>
> >> anees k A
> >>
> >
> >

--
David McCullough, dav...@spottygum.com, Ph: 0410 560 763
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List openss...@openssl.org
Automated List Manager majo...@openssl.org

Anees K A

unread,
Sep 12, 2013, 4:55:27 AM9/12/13
to
Hi all,

I was able to get cryptodev engine working on openssl following  the instructions available at this link. Hope this helps someone.

http://www.newit.co.uk/forum/index.php/topic,2030.0.html

Regards

anees k A


On Wed, Sep 11, 2013 at 4:44 PM, Anees K A <anee...@mistralsolutions.com> wrote:
Hi Gnananasekar,

Thank you for your clarification. I have figured that out by now :D

Now the build process complains that it cannot find crypto/cryptodev.h . Any ideas?



Regards

anees k A


On Wed, Sep 11, 2013 at 3:58 PM, Gnanasekar R <gnanase...@gmail.com> wrote:
Did you build OpenSSL libs by enabling the appropriate flags - HAVE_CRYPTODEV etc ? 
In files crypto/engine/eng_all.c , "ENGINE_load_cryptodev" will be under few defines. Make sure your platform have those defines.

Regards,
Gnananasekar
On 11 September 2013 14:34, Anees K A <anee...@mistralsolutions.com> wrote:
Hi,

When I try the following command

$ openssl speed aes -engine crytodev
invalid engine "cryptodev"

3078063752:error:25066067:DSO support routines:DLFCN_LOAD:could not load the shared library:dso_dlfcn.c:187:filename(/lib/engines/libcryptodev.so): /lib/engines/libcryptodev.so: cannot open shared object file: No such file or directory

If I look in the source, I can see eng_cryptodev.c file under crypto/engine folder. Why is this not working?

0 new messages