> 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
> 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
> 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
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
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