Re: [RFC PATCH v2] crypto: Add IV generation algorithms

2016-12-29 Thread Binoy Jayan
Hi Herbert, Sorry for the delayed response, I was busy with testing dm-crypt with bonnie++ for regressions. I tried to find some alternative way to keep the IV algorithms' registration in the dm-crypt. Also there were some changes done in dm-crypt keys structure too recently. c538f6e dm crypt: ad

Re: simd ciphers

2016-12-29 Thread Herbert Xu
On Wed, Dec 28, 2016 at 12:21:52PM +0100, Stephan Müller wrote: > > This patch does not help. But I now found the issue: we need some Kconfig > wizardry to mandate pcbc to be compiled statically when AES-NI is static. > Currently I had pcbc always as a module even when selecting AES-NI as static

Re: [PATCH] crypto: arm/aes-neonbs - process 8 blocks in parallel if we can

2016-12-29 Thread Ard Biesheuvel
On 29 December 2016 at 02:23, Herbert Xu wrote: > On Wed, Dec 28, 2016 at 07:50:44PM +, Ard Biesheuvel wrote: >> >> So about this chunksize, is it ever expected to assume other values >> than 1 (for stream ciphers) or the block size (for block ciphers)? >> Having block size, IV size *and* chun

[RFC PATCH] crypto: skcipher - introduce walksize attribute for SIMD algos

2016-12-29 Thread Ard Biesheuvel
In some cases, SIMD algorithms can only perform optimally when allowed to operate on multiple input blocks in parallel. This is especially true for bit slicing algorithms, which typically take the same amount of time processing a single block or 8 blocks in parallel. However, other SIMD algorithms