Re: [PATCH] crypto: ccree - enable CTS support in AES-XTS

2019-09-13 Thread Herbert Xu
On Sun, Sep 08, 2019 at 11:04:26AM +0300, Uri Shir wrote: > In XTS encryption/decryption the plaintext byte size > can be >= AES_BLOCK_SIZE. This patch enable the AES-XTS ciphertext > stealing implementation in ccree driver. > > Signed-off-by: Uri Shir > --- > drivers/crypto/ccree/cc_cipher.c |

Re: [PATCH] crypto: ccree - enable CTS support in AES-XTS

2019-09-09 Thread Herbert Xu
On Mon, Sep 09, 2019 at 03:38:02PM +0100, Ard Biesheuvel wrote: > > The blocksize is primarily used by the walking code to ensure that the > input is a round multiple. In the XTS case, we can't blindly use the > skcipher walk interface to go over the data anyway, since the last > full block needs s

Re: [PATCH] crypto: ccree - enable CTS support in AES-XTS

2019-09-09 Thread Gilad Ben-Yossef
On Mon, Sep 9, 2019 at 5:38 PM Ard Biesheuvel wrote: > > On Mon, 9 Sep 2019 at 13:34, Gilad Ben-Yossef wrote: > > > > On Mon, Sep 9, 2019 at 3:20 PM Ard Biesheuvel > > wrote: > > > > > > On Sun, 8 Sep 2019 at 09:04, Uri Shir wrote: > > > > > > > > In XTS encryption/decryption the plaintext byt

Re: [PATCH] crypto: ccree - enable CTS support in AES-XTS

2019-09-09 Thread Ard Biesheuvel
On Mon, 9 Sep 2019 at 13:34, Gilad Ben-Yossef wrote: > > On Mon, Sep 9, 2019 at 3:20 PM Ard Biesheuvel > wrote: > > > > On Sun, 8 Sep 2019 at 09:04, Uri Shir wrote: > > > > > > In XTS encryption/decryption the plaintext byte size > > > can be >= AES_BLOCK_SIZE. This patch enable the AES-XTS cip

Re: [PATCH] crypto: ccree - enable CTS support in AES-XTS

2019-09-09 Thread Gilad Ben-Yossef
On Mon, Sep 9, 2019 at 3:20 PM Ard Biesheuvel wrote: > > On Sun, 8 Sep 2019 at 09:04, Uri Shir wrote: > > > > In XTS encryption/decryption the plaintext byte size > > can be >= AES_BLOCK_SIZE. This patch enable the AES-XTS ciphertext > > stealing implementation in ccree driver. > > > > Signed-off

Re: [PATCH] crypto: ccree - enable CTS support in AES-XTS

2019-09-09 Thread Ard Biesheuvel
On Sun, 8 Sep 2019 at 09:04, Uri Shir wrote: > > In XTS encryption/decryption the plaintext byte size > can be >= AES_BLOCK_SIZE. This patch enable the AES-XTS ciphertext > stealing implementation in ccree driver. > > Signed-off-by: Uri Shir > --- > drivers/crypto/ccree/cc_cipher.c | 16 ++--

Re: [PATCH] crypto: ccree - enable CTS support in AES-XTS

2019-09-08 Thread Gilad Ben-Yossef
On Sun, Sep 8, 2019 at 11:04 AM Uri Shir wrote: > > In XTS encryption/decryption the plaintext byte size > can be >= AES_BLOCK_SIZE. This patch enable the AES-XTS ciphertext > stealing implementation in ccree driver. > > Signed-off-by: Uri Shir Acked-by: Gilad Ben-Yossef Gilad