Re: [PATCH 0/5] crypto: Speck support

2018-02-09 Thread Jeffrey Walton
On Thu, Feb 8, 2018 at 4:01 PM, Eric Biggers wrote: > On Wed, Feb 07, 2018 at 08:47:05PM -0500, Jeffrey Walton wrote: >> On Wed, Feb 7, 2018 at 7:09 PM, Eric Biggers wrote: >> > Hello, >> > >> > This series adds Speck support to the crypto API, including

[PATCH v3 3/4] crypto: AF_ALG - allow driver to serialize IV access

2018-02-09 Thread Stephan Müller
The mutex in AF_ALG to serialize access to the IV ensures full serialization of requests sent to the crypto driver. However, the hardware may implement serialization to the IV such that preparation work without touching the IV can already happen while the IV is processed by another operation.

[PATCH v3 0/4] crypto: AF_ALG AIO improvements

2018-02-09 Thread Stephan Müller
Hi, Herbert, the patch 1 is meant for stable. However, this patch as is only applies to the new AF_ALG interface implementation. Though, the issue goes back to the first implementation of AIO support. Shall I try prepare a patch for the old AF_ALG implementation as well? Changes from v2: *

[PATCH v3 1/4] crypto: AF_ALG AIO - lock context IV

2018-02-09 Thread Stephan Müller
The kernel crypto API requires the caller to set an IV in the request data structure. That request data structure shall define one particular cipher operation. During the cipher operation, the IV is read by the cipher implementation and eventually the potentially updated IV (e.g. in case of CBC)

[PATCH v3 2/4] crypto: AF_ALG - inline IV support

2018-02-09 Thread Stephan Müller
The kernel crypto API requires the caller to set an IV in the request data structure. That request data structure shall define one particular cipher operation. During the cipher operation, the IV is read by the cipher implementation and eventually the potentially updated IV (e.g. in case of CBC)

[PATCH v3 2/3] MIPS: crypto: Add crc32 and crc32c hw accelerated module

2018-02-09 Thread James Hogan
From: Marcin Nowakowski This module registers crc32 and crc32c algorithms that use the optional CRC32[bhwd] and CRC32C[bhwd] instructions in MIPSr6 cores. Signed-off-by: Marcin Nowakowski Signed-off-by: James Hogan Cc:

[PATCH v3 0/3] MIPS CRC instruction support

2018-02-09 Thread James Hogan
MIPSr6 architecture introduces a new CRC32(C) instruction. The following patches add a crypto acceleration module for crc32 and crc32c algorithms using the new instructions. Changes in v3: - Convert to using assembler macros to support CRC instructions on older toolchains, using the helpers

[PATCH v3 4/4] crypto: add CRYPTO_TFM_REQ_IV_SERIALIZE flag

2018-02-09 Thread Stephan Müller
Crypto drivers may implement a streamlined serialization support for AIO requests that is reported by the CRYPTO_ALG_SERIALIZES_IV_ACCESS flag to the crypto user. When the user decides that he wants to send multiple AIO requests concurrently and wants the crypto driver to handle the serialization,

Re: [PATCH 0/2] sun4i_ss_prng fixes

2018-02-09 Thread Herbert Xu
On Tue, Feb 06, 2018 at 10:20:20PM +0100, Artem Savkov wrote: > IPSec hasn't been working on my a10 board since 4.14 and it turned out to be > caused by sun4i_ss_rng driver. > > Artem Savkov (2): > sun4i_ss_prng: fix return value of sun4i_ss_prng_generate > sun4i_ss_prng: convert lock to _bh

Re: [PATCH] crypto/generic - sha3: deal with oversize stack frames

2018-02-09 Thread Herbert Xu
On Sat, Jan 27, 2018 at 09:18:32AM +, Ard Biesheuvel wrote: > As reported by kbuild test robot, the optimized SHA3 C implementation > compiles to mn10300 code that uses a disproportionate amount of stack > space, i.e., > > crypto/sha3_generic.c: In function 'keccakf': >

Re: [PATCH] crypto: talitos: fix Kernel Oops on hashing an empty file

2018-02-09 Thread Herbert Xu
On Fri, Jan 26, 2018 at 05:09:59PM +0100, Christophe Leroy wrote: > Performing the hash of an empty file leads to a kernel Oops > > [ 44.504600] Unable to handle kernel paging request for data at address > 0x000c > [ 44.512819] Faulting instruction address: 0xc02d2be8 > [ 44.524088]

Re: [PATCH] crypto: sha512-mb - initialize pending lengths correctly

2018-02-09 Thread Herbert Xu
On Wed, Jan 24, 2018 at 12:31:27AM -0800, Eric Biggers wrote: > From: Eric Biggers > > The SHA-512 multibuffer code keeps track of the number of blocks pending > in each lane. The minimum of these values is used to identify the next > lane that will be completed. Unused