Re: [Cryptodev-linux-devel] Problem with OpenSSH/OpenSSL Interaction When Cryptodev is Used

2015-05-28 Thread Gordan Bobic
On 2015-05-28 14:26, Gordan Bobic wrote: On 2015-05-28 13:12, Nikos Mavrogiannopoulos wrote: On Thu, May 28, 2015 at 12:06 PM, Gordan Bobic wrote: Does that mean it is not a 0-copy related problem? In fact, I can confirm the problem is not at all related to mv_cesa. I just unloaded the mv_ces

Re: [Cryptodev-linux-devel] Problem with OpenSSH/OpenSSL Interaction When Cryptodev is Used

2015-05-28 Thread Gordan Bobic
On 2015-05-28 13:12, Nikos Mavrogiannopoulos wrote: On Thu, May 28, 2015 at 12:06 PM, Gordan Bobic wrote: Does that mean it is not a 0-copy related problem? In fact, I can confirm the problem is not at all related to mv_cesa. I just unloaded the mv_cesa driver which means that with cryptodev i

Re: [Cryptodev-linux-devel] Problem with OpenSSH/OpenSSL Interaction When Cryptodev is Used

2015-05-28 Thread Nikos Mavrogiannopoulos
On Thu, May 28, 2015 at 12:06 PM, Gordan Bobic wrote: >> Does that mean it is not a 0-copy related problem? > In fact, I can confirm the problem is not at all related to mv_cesa. > I just unloaded the mv_cesa driver which means that with cryptodev > it will be the kernel doing the AES using the ge

Re: [Cryptodev-linux-devel] Problem with OpenSSH/OpenSSL Interaction When Cryptodev is Used

2015-05-28 Thread Gordan Bobic
On 2015-05-28 11:00, Gordan Bobic wrote: On 2015-05-27 23:33, Phil Sutter wrote: On Wed, May 27, 2015 at 10:36:29PM +0100, Gordan Bobic wrote: What do I need to change in which file to disable 0-copy? Have a look at main.c, line 239: | if (cop->flags & COP_FLAG_NO_ZC) | ret = __crypt

Re: [Cryptodev-linux-devel] Problem with OpenSSH/OpenSSL Interaction When Cryptodev is Used

2015-05-28 Thread Gordan Bobic
On 2015-05-27 23:33, Phil Sutter wrote: On Wed, May 27, 2015 at 10:36:29PM +0100, Gordan Bobic wrote: What do I need to change in which file to disable 0-copy? Have a look at main.c, line 239: | if (cop->flags & COP_FLAG_NO_ZC) | ret = __crypto_run_std(ses_ptr, &kcop->cop); | else |

Re: [Cryptodev-linux-devel] Problem with OpenSSH/OpenSSL Interaction When Cryptodev is Used

2015-05-27 Thread Phil Sutter
On Wed, May 27, 2015 at 10:36:29PM +0100, Gordan Bobic wrote: > What do I need to change in which file to disable 0-copy? Have a look at main.c, line 239: | if (cop->flags & COP_FLAG_NO_ZC) | ret = __crypto_run_std(ses_ptr, &kcop->cop); | else | ret = __crypto_run_zc(ses_ptr,

Re: [Cryptodev-linux-devel] Problem with OpenSSH/OpenSSL Interaction When Cryptodev is Used

2015-05-27 Thread Gordan Bobic
On 2015-05-27 20:34, Phil Sutter wrote: On Wed, May 27, 2015 at 11:20:28AM +0100, Gordan Bobic wrote: On 2015-05-27 11:07, Phil Sutter wrote: > Hi, > > On Wed, May 27, 2015 at 10:25:00AM +0100, Gordan Bobic wrote: >> ./cipher-aead-srtp >> ioctl(CIOCGSESSION): Invalid argument > > Not sure if thi

Re: [Cryptodev-linux-devel] Problem with OpenSSH/OpenSSL Interaction When Cryptodev is Used

2015-05-27 Thread Phil Sutter
On Wed, May 27, 2015 at 11:20:28AM +0100, Gordan Bobic wrote: > On 2015-05-27 11:07, Phil Sutter wrote: > > Hi, > > > > On Wed, May 27, 2015 at 10:25:00AM +0100, Gordan Bobic wrote: > >> ./cipher-aead-srtp > >> ioctl(CIOCGSESSION): Invalid argument > > > > Not sure if this should succeed at all,

Re: [Cryptodev-linux-devel] Problem with OpenSSH/OpenSSL Interaction When Cryptodev is Used

2015-05-27 Thread Gordan Bobic
On 2015-05-27 11:07, Phil Sutter wrote: Hi, On Wed, May 27, 2015 at 10:25:00AM +0100, Gordan Bobic wrote: ./cipher-aead-srtp ioctl(CIOCGSESSION): Invalid argument Not sure if this should succeed at all, at least that's not my code. ;) # ./hmac_comp requested cipher CRYPTO_AES_CBC and mac CR

Re: [Cryptodev-linux-devel] Problem with OpenSSH/OpenSSL Interaction When Cryptodev is Used

2015-05-27 Thread Phil Sutter
Hi, On Wed, May 27, 2015 at 10:25:00AM +0100, Gordan Bobic wrote: > ./cipher-aead-srtp > ioctl(CIOCGSESSION): Invalid argument Not sure if this should succeed at all, at least that's not my code. ;) > # ./hmac_comp > requested cipher CRYPTO_AES_CBC and mac CRYPTO_SHA1_HMAC, got cipher > cbc(aes

Re: [Cryptodev-linux-devel] Problem with OpenSSH/OpenSSL Interaction When Cryptodev is Used

2015-05-27 Thread Gordan Bobic
On 2015-05-27 01:08, Phil Sutter wrote: Hi, On Tue, May 26, 2015 at 07:29:34PM +0100, Gordan Bobic wrote: A bit of extra info, with cryptodev_verbosity=2, on 0.9 when the error occurs: cryptodev: sshd[1205]: invalid session ID=0xAADBA6A0 With 1.7: cryptodev: sshd[1520] (fill_kcop_from_cop:647)

Re: [Cryptodev-linux-devel] Problem with OpenSSH/OpenSSL Interaction When Cryptodev is Used

2015-05-26 Thread Phil Sutter
Hi, On Tue, May 26, 2015 at 07:29:34PM +0100, Gordan Bobic wrote: > A bit of extra info, with cryptodev_verbosity=2, on 0.9 when the error > occurs: > cryptodev: sshd[1205]: invalid session ID=0xAADBA6A0 > > With 1.7: > cryptodev: sshd[1520] (fill_kcop_from_cop:647): invalid session > ID=0xEC91

Re: [Cryptodev-linux-devel] Problem with OpenSSH/OpenSSL Interaction When Cryptodev is Used

2015-05-26 Thread Gordan Bobic
On 2015-05-26 17:05, Gordan Bobic wrote: I am experiencing a rather odd problem with cryptodev that I am not sure where to follow next. The distro is RedSleeve (EL6 armv5tel). OpenSSH 5.3p1 (EL6 extra patches) OpenSSL 1.0.1e (EL6 extra patches), rebuild with -DHAVE_CRYPTODEV (without digests) C