Re: [PATCH v2 6/6] crypto: x86/chacha - add XChaCha12 support

2018-12-01 Thread Martin Willi
> Now that the x86_64 SIMD implementations of ChaCha20 and XChaCha20 > have been refactored to support varying the number of rounds, add > support for XChaCha12. This is identical to XChaCha20 except for the > number of rounds, which is 12 instead of 20. This can be used by > Adiantum. > > Sig

Re: [PATCH v2 5/6] crypto: x86/chacha20 - refactor to allow varying number of rounds

2018-12-01 Thread Martin Willi
> In preparation for adding XChaCha12 support, rename/refactor the > x86_64 SIMD implementations of ChaCha20 to support different numbers > of rounds. > > Signed-off-by: Eric Biggers Reviewed-by: Martin Willi

Re: [PATCH v2 4/6] crypto: x86/chacha20 - add XChaCha20 support

2018-12-01 Thread Martin Willi
> An SSSE3 implementation of single-block HChaCha20 is also added so > that XChaCha20 can use it rather than the generic > implementation. This required refactoring the ChaCha permutation > into its own function. > [...] > +ENTRY(chacha20_block_xor_ssse3) > + # %rdi: Input state matrix, s

[PATCH] crypto: cavium/nitrox convert to DEFINE_SHOW_ATTRIBUTE

2018-12-01 Thread Yangtao Li
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Yangtao Li --- drivers/crypto/cavium/nitrox/nitrox_debugfs.c | 48 --- 1 file changed, 9 insertions(+), 39 deletions(-) diff --git a/drivers/crypto/cavium/nitrox/nitrox_debugfs.c b/drivers/crypto/cavium/nitrox

Re: [PATCH v5 00/11] crypto: crypto_user_stat: misc enhancement

2018-12-01 Thread Herbert Xu
On Thu, Nov 29, 2018 at 10:16:26AM -0800, Eric Biggers wrote: > > Herbert, can you send this series to Linus for v4.20 after reviewing it? > We don't want to be stuck with a bad UAPI, and the use-after-free needs to be > fixed anyway too. Sure I'll push it through crypto. Thanks, -- Email: Herbe