[openssl-dev] openssl.cnf causes Segmentation fault

2016-05-31 Thread danigrosu
Hi everyone. My intention is to modify the openssl.cnf file in order to add a new RSA ENGINE, dynamicaly. I have found the /etc/ssl/openssl.cnf file and after my modifications it looks like this: #openssl.cnf ### # # OpenSSL example

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

2016-03-10 Thread danigrosu
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

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

2016-03-10 Thread danigrosu
Ok Richard, I figured it out how the md5 engine works, and, I also realized that it is a bit different from the RSA engine: ---different structure (EVP_MD vs RSA_METHOD) ---missing the dynamic bind part, and I have no idea how to do it (see the above post) Maybe I should try something else in

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

2016-03-10 Thread danigrosu
Blumenthal, Uri - 0553 - MITLL wrote > But autotools setup did not work (see my > previous post in this thread). Perhaps Richard could shed some light on > that. I just did what that guy said and it worked. Basically I created a "m4" directory and I copied the "ax_check_openssl.m4" file to the

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

2016-03-09 Thread danigrosu
In git version, if I comment the block / if (id && strcmp(id, engine_id)) { fprintf(stderr, "MD5 engine called with the unexpected id %s\n", id); fprintf(stderr, "The expected id is %s\n", engine_id); goto end; }/ ... then I type /$ gcc -fPIC -o rfc1321/md5c.o -c rfc1321/md5c.c $

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

2016-03-09 Thread danigrosu
Blumenthal, Uri - 0553 - MITLL wrote > You probably want to post (a) the modifications you made to > autotools-whatever, and (b) the resulting compile and link commands. The answer of this question (asked by

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

2016-03-09 Thread danigrosu
danigrosu wrote > I'm just trying to implement an RSA engine and I thought that this would > be a good start. > I tryed successfully the > MD5 Engine > <https://www.openssl.org/blog/blog/2015/11/23/engine-building-lesson-2-an-example-md5-engine/> > > written by

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

2016-03-09 Thread danigrosu
So we are stuck with this error? Since we are using OpenSSL 1.0.1, I think we can handle it. Dani Grosu On 8 March 2016 at 17:03, danigrosu [via OpenSSL] < ml-node+s6102n64449...@n7.nabble.com> wrote: > Blumenthal, Uri - 0553 - MITLL wrote > Could you please confirm that

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

2016-03-08 Thread danigrosu
Blumenthal, Uri - 0553 - MITLL wrote > Could you please confirm that you’re doing this on OpenSSL-1.0.2? # openssl version OpenSSL 1.0.1f 6 Jan 2014 So it appears I'm working with 1.0.1. Dani Grosu -- View this message in context:

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

2016-03-08 Thread danigrosu
I'm just trying to implement an RSA engine and I thought that this would be a good start. I tryed successfully the MD5 Engine written by Richard Levitte and my next step is to build an RSA engine

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

2016-03-08 Thread danigrosu
I tried your suggestion, but the error still appears. Richard Levitte - VMS Whacker-2 wrote > You might want to try this: > > gcc -shared -o eng_rsax.so eng_rsax.o -lcrypto > > When linking, order is important. Dani Grosu -- View this message in context:

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

2016-03-07 Thread danigrosu
I want to build an OpenSSL RSA engine, starting from this existing source code file 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