Hi ,
I have taken latest version of openssl and integrates some patches available in
http://rt.openssl.org/Ticket/Display.html?id=2770&user=guest&pass=guest.
I was not ale to compile when I use "-DHAVE_CRYPTODEV and
-DUSE_CRYPTODEV_DIGESTS",
looks like eng_cryptodev.c does not compile itself.
Steps followed to compile openssl:
./config -DHAVE_CRYPTODEV and -DUSE_CRYPTODEV_DIGESTS
make
Some of the errors:
eng_cryptodev.c:1498: error: ‘CRF_MOD_EXP’ undeclared (first use in
this function)
eng_cryptodev.c:1498: error: invalid operands to binary & (have
‘u_int32_t’ and ‘struct *’)
eng_cryptodev.c:1500: error: ‘CRF_MOD_EXP_CRT’ undeclared (first use
in this function)
eng_cryptodev.c:1500: error: invalid operands to binary & (have
‘u_int32_t’ and ‘struct *’)
eng_cryptodev.c:1511: error: ‘CRF_DSA_SIGN’ undeclared (first use in
this function)
eng_cryptodev.c:1511: error: invalid operands to binary & (have
‘u_int32_t’ and ‘struct *’)
eng_cryptodev.c:1513: error: invalid operands to binary & (have
‘u_int32_t’ and ‘struct *’)
eng_cryptodev.c:1517: error: ‘CRF_DSA_VERIFY’ undeclared (first use in
this function)
eng_cryptodev.c:1517: error: invalid operands to binary & (have
‘u_int32_t’ and ‘struct *’)
eng_cryptodev.c:1527: error: invalid operands to binary & (have
‘u_int32_t’ and ‘struct *’)
eng_cryptodev.c:1529: error: ‘CRF_DH_COMPUTE_KEY’ undeclared (first
use in this function)
eng_cryptodev.c:1529: error: invalid operands to binary & (have
‘u_int32_t’ and ‘struct *’)
make[2]: *** [eng_cryptodev.o] Error 1
make[2]: Leaving directory `/home/sanumala/openssl/
openssl/crypto/engine'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/home/sanumala/openssl/openssl/crypto'
make: *** [build_crypto] Error 1
Please let me know if I am missing something.
BR,
&sanumala
On Fri, Feb 20, 2015 at 4:30 PM, wrote:
> Send Cryptodev-linux-devel mailing list submissions to
> cryptodev-linux-devel@gna.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://mail.gna.org/listinfo/cryptodev-linux-devel
> or, via email, send a message with subject or body 'help' to
> cryptodev-linux-devel-requ...@gna.org
>
> You can reach the person managing the list at
> cryptodev-linux-devel-ow...@gna.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Cryptodev-linux-devel digest..."
>
>
> Today's Topics:
>
>1. Re: cryptodev 1.7 issue with ssh (Phil Sutter)
>2. Re: cryptodev 1.7 issue with ssh (Cristian Stoica)
>
>
> --
>
> Message: 1
> Date: Thu, 19 Feb 2015 17:58:36 +0100
> From: Phil Sutter
> To: Corentin LABBE
> Cc: cryptodev-linux-devel@gna.org
> Subject: Re: [Cryptodev-linux-devel] cryptodev 1.7 issue with ssh
> Message-ID: <20150219165835.ga30...@orbit.nwl.cc>
> Content-Type: text/plain; charset=us-ascii
>
> Hi Corentin,
>
> On Thu, Feb 19, 2015 at 02:42:30PM +0100, Corentin LABBE wrote:
>> I have some issue with cryptodev 1.7 under a gentoo with a 3.19 kernel.
>> I use the cryptodev engine for openssl (1.0.1k)(compiled with the 2 patch
>> found on rt.openssl.org)
>> When the module is loaded, I cannot login with ssh on the machine.
>> For the moment I cannot see any other problem, my bench/test tool works
>> perfectly with AES/DES for example.
>
> Since I don't use the cryptodev engine driver in openssl, I can hardly
> help you there. Also, openssl tests passing but ssh being problematic
> sounds strange.
>
> On a side note, it's always preferable to at least include
> the mailinglist (cryptodev-linux-devel@gna.org) instead of emailing just
> two people.
>
>> I have added some pr_info.
>
> I'll leave that in place due to the added recipient.
>
> Cheers, Phil
>
>>
>> The patch for extra output
>> --- ioctl.c.old 2015-02-19 13:55:54.0 +0100
>> +++ ioctl.c 2015-02-19 13:58:44.0 +0100
>> @@ -167,6 +167,7 @@
>> ddebug(1, "bad cipher: %d", sop->cipher);
>> return -EINVAL;
>> }
>> + pr_info("Cryptodev: %s\n", alg_name);
>>
>> switch (sop->mac) {
>> case 0:
>> @@ -227,6 +228,7 @@
>> ddebug(1, "bad mac: %d", sop->mac);
>> return -EINVAL;
>> }
>> + pr_info("Cryptodev: %s\n", hash_name);
>>
>> /* Create a session and put it to the list. */
>> ses_new = kzalloc(sizeof(*ses_new), GFP_KERNEL);
>> @@ -452,6 +454,7 @@
>> struct todo_list_item *tmp, *tmp_next;
>> struct crypt_priv *pcr;
>> int i;
>> + pr_info("Cryptodev: open\n");
>>
>> pcr = kzalloc(sizeof(*pcr), GFP_KERNEL);
>> if (!pcr)
>> @@ -506,6 +509,7 @@
>> struct crypt_priv *pcr = filp->private_data;
>> struct todo_list_item *item, *item_safe;
>> int items_freed = 0;
>> + pr_info("Cryptodev: release\n");
>>
>> if (!pcr)
>> return 0;
>>
>> dmesg output after the ssh try
>> [254566.508809] cryptodev: driver 1.