Re: [PATCH v2 05/11] ARM: dts: sun8i: H3: Add Crypto Engine node

2019-10-01 Thread Maxime Ripard
On Tue, Oct 01, 2019 at 08:41:35PM +0200, Corentin Labbe wrote: > The Crypto Engine is a hardware cryptographic accelerator that supports > many algorithms. > It could be found on most Allwinner SoCs. > > This patch enables the Crypto Engine on the Allwinner H3 SoC Device-tree. > > Signed-off-by: C

Re: [PATCH v2 03/11] dt-bindings: crypto: Add DT bindings documentation for sun8i-ce Crypto Engine

2019-10-01 Thread Maxime Ripard
On Tue, Oct 01, 2019 at 08:41:33PM +0200, Corentin Labbe wrote: > This patch adds documentation for Device-Tree bindings for the > Crypto Engine cryptographic accelerator driver. > > Signed-off-by: Corentin Labbe > --- > .../bindings/crypto/allwinner,sun8i-ce.yaml | 92 +++ > 1

Re: [PATCH] KEYS: asym_tpm: Switch to get_random_bytes()

2019-10-01 Thread Jarkko Sakkinen
On Sat, Sep 28, 2019 at 11:05:59AM -0700, Jerry Snitselaar wrote: > On Thu Sep 26 19, Jarkko Sakkinen wrote: > > Only the kernel random pool should be used for generating random numbers. > > TPM contributes to that pool among the other sources of entropy. In here it > > is not, agreed, absolutely c

Re: [PATCH 2/3] crypto: inside-secure - Reduce stack usage

2019-10-01 Thread Arnd Bergmann
On Mon, Sep 30, 2019 at 11:09 PM Pascal Van Leeuwen wrote: > > Subject: Re: [PATCH 2/3] crypto: inside-secure - Reduce stack usage > > > > On Mon, Sep 30, 2019 at 9:04 PM Pascal Van Leeuwen > > wrote: > > > > > > Alternatively, it should be possible to shrink these allocations > > > > as the extr

[PATCH v2 03/11] dt-bindings: crypto: Add DT bindings documentation for sun8i-ce Crypto Engine

2019-10-01 Thread Corentin Labbe
This patch adds documentation for Device-Tree bindings for the Crypto Engine cryptographic accelerator driver. Signed-off-by: Corentin Labbe --- .../bindings/crypto/allwinner,sun8i-ce.yaml | 92 +++ 1 file changed, 92 insertions(+) create mode 100644 Documentation/devicetree/

[PATCH v2 05/11] ARM: dts: sun8i: H3: Add Crypto Engine node

2019-10-01 Thread Corentin Labbe
The Crypto Engine is a hardware cryptographic accelerator that supports many algorithms. It could be found on most Allwinner SoCs. This patch enables the Crypto Engine on the Allwinner H3 SoC Device-tree. Signed-off-by: Corentin Labbe --- arch/arm/boot/dts/sun8i-h3.dtsi | 11 +++ 1 file

[PATCH v2 07/11] ARM64: dts: allwinner: sun50i: Add crypto engine node on H5

2019-10-01 Thread Corentin Labbe
The Crypto Engine is a hardware cryptographic accelerator that supports many algorithms. It could be found on most Allwinner SoCs. This patch enables the Crypto Engine on the Allwinner H5 SoC Device-tree. Signed-off-by: Corentin Labbe --- arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi | 11 ++

[PATCH v2 02/11] crypto: Add Allwinner sun8i-ce Crypto Engine

2019-10-01 Thread Corentin Labbe
The Crypto Engine is an hardware cryptographic offloader present on all recent Allwinner SoCs H2+, H3, R40, A64, H5, H6 This driver supports AES cipher in CBC/ECB mode. Signed-off-by: Corentin Labbe --- drivers/crypto/allwinner/Kconfig | 27 + drivers/crypto/allwinner/Makefile

[PATCH v2 04/11] ARM: dts: sun8i: R40: add crypto engine node

2019-10-01 Thread Corentin Labbe
The Crypto Engine is a hardware cryptographic offloader that supports many algorithms. It could be found on most Allwinner SoCs. This patch enables the Crypto Engine on the Allwinner R40 SoC Device-tree. Signed-off-by: Corentin Labbe --- arch/arm/boot/dts/sun8i-r40.dtsi | 10 ++ 1 file

[PATCH v2 08/11] ARM64: dts: allwinner: sun50i: Add Crypto Engine node on H6

2019-10-01 Thread Corentin Labbe
The Crypto Engine is a hardware cryptographic accelerator that supports many algorithms. This patch enables the Crypto Engine on the Allwinner H6 SoC Device-tree. Signed-off-by: Corentin Labbe --- arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 10 ++ 1 file changed, 10 insertions(+) di

[PATCH v2 11/11] crypto: sun4i-ss: Move to Allwinner directory

2019-10-01 Thread Corentin Labbe
Since we have a dedicated Allwinner directory for crypto driver, move the sun4i-ss driver in it. Signed-off-by: Corentin Labbe --- MAINTAINERS | 6 - drivers/crypto/Kconfig| 26 -- drivers/crypto/Makefile

[PATCH v2 09/11] sunxi_defconfig: add new Allwinner crypto options

2019-10-01 Thread Corentin Labbe
This patch adds the new Allwinner crypto configs to sunxi_defconfig Signed-off-by: Corentin Labbe --- arch/arm/configs/sunxi_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/configs/sunxi_defconfig b/arch/arm/configs/sunxi_defconfig index df433abfcb02..d0ab8ba7710a 100644

[PATCH v2 10/11] arm64: defconfig: add new Allwinner crypto options

2019-10-01 Thread Corentin Labbe
This patch adds the new allwinner crypto configs to ARM64 defconfig Signed-off-by: Corentin Labbe --- arch/arm64/configs/defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 8e05c39eab08..f2f330b8416d 100644 --- a/arch/

[PATCH v2 06/11] ARM64: dts: allwinner: sun50i: Add Crypto Engine node on A64

2019-10-01 Thread Corentin Labbe
The Crypto Engine is a hardware cryptographic accelerator that supports many algorithms. It could be found on most Allwinner SoCs. This patch enables the Crypto Engine on the Allwinner A64 SoC Device-tree. Signed-off-by: Corentin Labbe --- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 10

[PATCH v2 01/11] crypto: Add allwinner subdirectory

2019-10-01 Thread Corentin Labbe
Since a second Allwinner crypto driver will be added, it is better to create a dedicated subdirectory. Signed-off-by: Corentin Labbe --- MAINTAINERS | 6 ++ drivers/crypto/Kconfig | 2 ++ drivers/crypto/Makefile | 1 + drivers/crypto/allwinner/Kconfig

[PATCH v2 00/11] crypto: add sun8i-ce driver for Allwinner crypto engine

2019-10-01 Thread Corentin Labbe
Hello This patch serie adds support for the Allwinner crypto engine. The Crypto Engine is the third generation of Allwinner cryptogaphic offloader. The first generation is the Security System already handled by the sun4i-ss driver. The second is named also Security System and is present on A80 and

Re: [PATCH 1/2] crypto: arm/aes-ce - build for v8 architecture explicitly

2019-10-01 Thread Herbert Xu
On Tue, Sep 17, 2019 at 09:50:00AM +0100, Ard Biesheuvel wrote: > From: Ard Biesheuvel > > The NEON/Crypto Extensions based AES implementation for 32-bit ARM > can be built in a kernel that targets ARMv6 CPUs and higher, even > though the actual code will not be able to run on that generation, >

Re: [RFC PATCH 00/18] crypto: wireguard using the existing crypto API

2019-10-01 Thread Ard Biesheuvel
On Fri, 27 Sep 2019 at 09:21, Jason A. Donenfeld wrote: > > Hey Andy, > > Thanks for weighing in. > > > inlining. I'd be surprised for chacha20. If you really want inlining > > to dictate the overall design, I think you need some real numbers for > > why it's necessary. There also needs to be a