Re: [Cryptodev-linux-devel] Scatterlist is created with wrong length in inplace operation

2014-04-17 Thread Nikos Mavrogiannopoulos
On Tue, Apr 15, 2014 at 11:23 AM, Dien Nguyen wrote: > The ICV failed because the scatterlist dst_sg is created with shorter length > than required (should be caop->len + > cryptodev_cipher_get_tag_size(&ses_ptr->cdata)). Hello Dien, Your analysis seem correct. > A possible fix is to change >

[Cryptodev-linux-devel] Scatterlist is created with wrong length in inplace operation

2014-04-15 Thread Dien Nguyen
Hi, I am trying add and test kernel authenc to cryptodev. When executing the test with cao.src = cao.dst, the cipher is generated successfully but kernel crash when generating the icv. The problem is that in authen.c if (caop->op == COP_ENCRYPT) dst_len = caop->len + crypt