Re: [PATCH v9 24/28] x86_64/asm: Change all ENTRY+ENDPROC to SYM_FUNC_*

2019-10-16 Thread Borislav Petkov
Hi, On Fri, Oct 11, 2019 at 01:51:04PM +0200, Jiri Slaby wrote: > These are all functions which are invoked from elsewhere, so annotate > them as global using the new SYM_FUNC_START. And their ENDPROC's by > SYM_FUNC_END. > > And make sure ENTRY/ENDPROC is not defined on X86_64, given these were

Re: [RFT PATCH 0/3] crypto: s390 - convert to skcipher API

2019-10-16 Thread Heiko Carstens
On Sat, Oct 12, 2019 at 01:18:06PM -0700, Eric Biggers wrote: > This series converts the glue code for the S390 CPACF implementations of > AES, DES, and 3DES modes from the deprecated "blkcipher" API to the > "skcipher" API. This is needed in order for the blkcipher API to be > removed. > > I've

[PATCH v6 3/3] crypto: hisilicon - register zip engine to uacce

2019-10-16 Thread Zhangfei Gao
Register qm to uacce framework for user crypto driver Signed-off-by: Zhangfei Gao Signed-off-by: Zhou Wang --- drivers/crypto/hisilicon/qm.c | 254 ++-- drivers/crypto/hisilicon/qm.h | 13 +- drivers/crypto/hisilicon/zip/zip_main.c | 39 ++--- i

[PATCH v6 2/3] uacce: add uacce driver

2019-10-16 Thread Zhangfei Gao
From: Kenneth Lee Uacce (Unified/User-space-access-intended Accelerator Framework) targets to provide Shared Virtual Addressing (SVA) between accelerators and processes. So accelerator can access any data structure of the main cpu. This differs from the data sharing between cpu and io device, whi

[PATCH v6 1/3] uacce: Add documents for uacce

2019-10-16 Thread Zhangfei Gao
From: Kenneth Lee Uacce (Unified/User-space-access-intended Accelerator Framework) is a kernel module targets to provide Shared Virtual Addressing (SVA) between the accelerator and process. This patch add document to explain how it works. Signed-off-by: Kenneth Lee Signed-off-by: Zaibo Xu Sig

[PATCH v6 0/3] Add uacce module for Accelerator

2019-10-16 Thread Zhangfei Gao
Uacce (Unified/User-space-access-intended Accelerator Framework) targets to provide Shared Virtual Addressing (SVA) between accelerators and processes. So accelerator can access any data structure of the main cpu. This differs from the data sharing between cpu and io device, which share data conten

Re: [RFT PATCH 0/3] crypto: s390 - convert to skcipher API

2019-10-16 Thread Gilad Ben-Yossef
On Sat, Oct 12, 2019 at 11:20 PM Eric Biggers wrote: > > This series converts the glue code for the S390 CPACF implementations of > AES, DES, and 3DES modes from the deprecated "blkcipher" API to the > "skcipher" API. This is needed in order for the blkcipher API to be > removed. > > I've compile

[PATCH -next 07/13] hwrng: npcm - use devm_platform_ioremap_resource() to simplify code

2019-10-16 Thread YueHaibing
Use devm_platform_ioremap_resource() to simplify the code a bit. This is detected by coccinelle. Signed-off-by: YueHaibing --- drivers/char/hw_random/npcm-rng.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/char/hw_random/npcm-rng.c b/drivers/char/hw_random/npcm

[PATCH -next 13/13] hwrng: xgene - use devm_platform_ioremap_resource() to simplify code

2019-10-16 Thread YueHaibing
Use devm_platform_ioremap_resource() to simplify the code a bit. This is detected by coccinelle. Signed-off-by: YueHaibing --- drivers/char/hw_random/xgene-rng.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/char/hw_random/xgene-rng.c b/drivers/char/hw_random/xg

[PATCH -next 10/13] hwrng: pic32 - use devm_platform_ioremap_resource() to simplify code

2019-10-16 Thread YueHaibing
Use devm_platform_ioremap_resource() to simplify the code a bit. This is detected by coccinelle. Signed-off-by: YueHaibing --- drivers/char/hw_random/pic32-rng.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/char/hw_random/pic32-rng.c b/drivers/char/hw_random/pi

[PATCH -next 12/13] hwrng: tx4939 - use devm_platform_ioremap_resource() to simplify code

2019-10-16 Thread YueHaibing
Use devm_platform_ioremap_resource() to simplify the code a bit. This is detected by coccinelle. Signed-off-by: YueHaibing --- drivers/char/hw_random/tx4939-rng.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/char/hw_random/tx4939-rng.c b/drivers/char/hw_random/

[PATCH -next 09/13] hwrng: pasemi - use devm_platform_ioremap_resource() to simplify code

2019-10-16 Thread YueHaibing
Use devm_platform_ioremap_resource() to simplify the code a bit. This is detected by coccinelle. Signed-off-by: YueHaibing --- drivers/char/hw_random/pasemi-rng.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/char/hw_random/pasemi-rng.c b/drivers/char/hw_random/

[PATCH -next 08/13] hwrng: omap - use devm_platform_ioremap_resource() to simplify code

2019-10-16 Thread YueHaibing
Use devm_platform_ioremap_resource() to simplify the code a bit. This is detected by coccinelle. Signed-off-by: YueHaibing --- drivers/char/hw_random/omap-rng.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/char/hw_random/omap-rng.c b/drivers/char/hw_random/omap

[PATCH -next 01/13] hwrng: atmel - use devm_platform_ioremap_resource() to simplify code

2019-10-16 Thread YueHaibing
Use devm_platform_ioremap_resource() to simplify the code a bit. This is detected by coccinelle. Signed-off-by: YueHaibing --- drivers/char/hw_random/atmel-rng.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/char/hw_random/atmel-rng.c b/drivers/char/hw_random/at

[PATCH -next 04/13] hwrng: hisi - use devm_platform_ioremap_resource() to simplify code

2019-10-16 Thread YueHaibing
Use devm_platform_ioremap_resource() to simplify the code a bit. This is detected by coccinelle. Signed-off-by: YueHaibing --- drivers/char/hw_random/hisi-rng.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/char/hw_random/hisi-rng.c b/drivers/char/hw_random/hisi

[PATCH -next 05/13] hwrng: ks-sa - use devm_platform_ioremap_resource() to simplify code

2019-10-16 Thread YueHaibing
Use devm_platform_ioremap_resource() to simplify the code a bit. This is detected by coccinelle. Signed-off-by: YueHaibing --- drivers/char/hw_random/ks-sa-rng.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/char/hw_random/ks-sa-rng.c b/drivers/char/hw_random/ks

[PATCH -next 03/13] hwrng: exynos - use devm_platform_ioremap_resource() to simplify code

2019-10-16 Thread YueHaibing
Use devm_platform_ioremap_resource() to simplify the code a bit. This is detected by coccinelle. Signed-off-by: YueHaibing --- drivers/char/hw_random/exynos-trng.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/char/hw_random/exynos-trng.c b/drivers/char/hw_rando

[PATCH -next 11/13] hwrng: st - use devm_platform_ioremap_resource() to simplify code

2019-10-16 Thread YueHaibing
Use devm_platform_ioremap_resource() to simplify the code a bit. This is detected by coccinelle. Signed-off-by: YueHaibing --- drivers/char/hw_random/st-rng.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/char/hw_random/st-rng.c b/drivers/char/hw_random/st-rng.c

[PATCH -next 00/13] hwrng: use devm_platform_ioremap_resource() to simplify code

2019-10-16 Thread YueHaibing
devm_platform_ioremap_resource() internally have platform_get_resource() and devm_ioremap_resource() in it. So instead of calling them separately use devm_platform_ioremap_resource() directly. YueHaibing (13): hwrng: atmel - use devm_platform_ioremap_resource() to simplify code hwrng: bcm2835

[PATCH -next 06/13] hwrng: meson - use devm_platform_ioremap_resource() to simplify code

2019-10-16 Thread YueHaibing
Use devm_platform_ioremap_resource() to simplify the code a bit. This is detected by coccinelle. Signed-off-by: YueHaibing --- drivers/char/hw_random/meson-rng.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/char/hw_random/meson-rng.c b/drivers/char/hw_random/me

[PATCH -next 02/13] hwrng: bcm2835 - use devm_platform_ioremap_resource() to simplify code

2019-10-16 Thread YueHaibing
Use devm_platform_ioremap_resource() to simplify the code a bit. This is detected by coccinelle. Signed-off-by: YueHaibing --- drivers/char/hw_random/bcm2835-rng.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/char/hw_random/bcm2835-rng.c b/drivers/char/hw_rand

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

2019-10-16 Thread Jarkko Sakkinen
On Mon, Oct 14, 2019 at 12:29:57PM -0700, James Bottomley wrote: > The job of the in-kernel rng is simply to produce a mixed entropy pool > from which we can draw random numbers. The idea is that quite a few > attackers have identified the rng as being a weak point in the security > architecture o

Re: [PATCH -next 11/13] hwrng: st - use devm_platform_ioremap_resource() to simplify code

2019-10-16 Thread Patrice CHOTARD
Hi On 10/16/19 12:46 PM, YueHaibing wrote: > Use devm_platform_ioremap_resource() to simplify the code a bit. > This is detected by coccinelle. > > Signed-off-by: YueHaibing > --- > drivers/char/hw_random/st-rng.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/driver

[PATCH] crypto: inside-secure - fix unexported warnings

2019-10-16 Thread Ben Dooks (Codethink)
The safexcel_pci_remove, pcireg_rc and ofreg_rc are not exported or declared externally so make them static. This avoids the following sparse warnings: drivers/crypto/inside-secure/safexcel.c:1760:6: warning: symbol 'safexcel_pci_remove' was not declared. Should it be static? drivers/crypto/insi

[PATCH] crypto: inside-secure - fix type of buffer in eip197_write_firmware

2019-10-16 Thread Ben Dooks (Codethink)
In eip197_write_firmware() the firmware buffer is sent using writel(be32_to_cpu(),,,) this produces a number of warnings. Note, should this really be cpu_to_be32() ? drivers/crypto/inside-secure/safexcel.c:306:17: warning: cast to restricted __be32 drivers/crypto/inside-secure/safexcel.c:306:17

[PATCH] crypto: atmel - fix data types for __be{32,64}

2019-10-16 Thread Ben Dooks (Codethink)
The driver uses a couple of buffers that seem to be __be32 or __be64 fields, but declares them as u32. This means there are a number of warnings from sparse due to casting to/from __beXXX. Fix these by changing the types of the buffer and the associated variables. drivers/crypto/atmel-aes.c:1023:

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

2019-10-16 Thread James Bottomley
On Wed, 2019-10-16 at 14:00 +0300, Jarkko Sakkinen wrote: > On Mon, Oct 14, 2019 at 12:29:57PM -0700, James Bottomley wrote: > > The job of the in-kernel rng is simply to produce a mixed entropy > > pool from which we can draw random numbers. The idea is that quite > > a few attackers have identif

Re: [RFT PATCH 0/3] crypto: s390 - convert to skcipher API

2019-10-16 Thread Herbert Xu
On Wed, Oct 16, 2019 at 10:01:03AM +0200, Heiko Carstens wrote: > On Sat, Oct 12, 2019 at 01:18:06PM -0700, Eric Biggers wrote: > > This series converts the glue code for the S390 CPACF implementations of > > AES, DES, and 3DES modes from the deprecated "blkcipher" API to the > > "skcipher" API. T

Re: [PATCH 06/25] crypto: ux500 - switch to skcipher API

2019-10-16 Thread Linus Walleij
On Mon, Oct 14, 2019 at 2:19 PM Ard Biesheuvel wrote: > Commit 7a7ffe65c8c5 ("crypto: skcipher - Add top-level skcipher interface") > dated 20 august 2015 introduced the new skcipher API which is supposed to > replace both blkcipher and ablkcipher. While all consumers of the API have > been conve

Re: [PATCH 15/25] crypto: ixp4xx - switch to skcipher API

2019-10-16 Thread Linus Walleij
On Mon, Oct 14, 2019 at 2:19 PM Ard Biesheuvel wrote: > Commit 7a7ffe65c8c5 ("crypto: skcipher - Add top-level skcipher interface") > dated 20 august 2015 introduced the new skcipher API which is supposed to > replace both blkcipher and ablkcipher. While all consumers of the API have > been conve

[PATCH 0/4] crypto: add sun8i-ss driver for Allwinner Security System

2019-10-16 Thread Corentin Labbe
Hello This patch serie adds support for the second version of Allwinner Security System. The first generation of the Security System is already handled by the sun4i-ss driver. Due to major change, the first driver cannot handle the second one. This new Security System is present on A80 and A83T

[PATCH 2/4] dt-bindings: crypto: Add DT bindings documentation for sun8i-ss Security System

2019-10-16 Thread Corentin Labbe
Signed-off-by: Corentin Labbe --- .../bindings/crypto/allwinner,sun8i-ss.yaml | 64 +++ 1 file changed, 64 insertions(+) create mode 100644 Documentation/devicetree/bindings/crypto/allwinner,sun8i-ss.yaml diff --git a/Documentation/devicetree/bindings/crypto/allwinner,sun8i-s

[PATCH 1/4] crypto: Add Allwinner sun8i-ss cryptographic offloader

2019-10-16 Thread Corentin Labbe
The Security System is an hardware cryptographic offloader present on Allwinner SoCs A80 and A83T. It is different from the previous sun4i-ss. This driver supports AES cipher in CBC and ECB mode. Signed-off-by: Corentin Labbe --- drivers/crypto/allwinner/Kconfig | 28 + drivers/cry

[PATCH 4/4] ARM: dts: sun9i: a80: Add Security System node

2019-10-16 Thread Corentin Labbe
This patchs the node for sun8i-ss which is availlable on the A80. Signed-off-by: Corentin Labbe --- arch/arm/boot/dts/sun9i-a80.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/sun9i-a80.dtsi b/arch/arm/boot/dts/sun9i-a80.dtsi index b9b6fb00be28..d7498a1a158

[PATCH 3/4] ARM: dts: sun8i: a83t: Add Security System node

2019-10-16 Thread Corentin Labbe
The Security System is a hardware cryptographic accelerator that support AES/MD5/SHA1/DES/3DES/PRNG/RSA algorithms. It could be found on Allwinner SoC A80 and A83T This patch add it on the Allwinner A83T SoC Device-tree. Signed-off-by: Corentin Labbe --- arch/arm/boot/dts/sun8i-a83t.dtsi | 10 +

Re: [PATCH 0/4] crypto: add sun8i-ss driver for Allwinner Security System

2019-10-16 Thread Maxime Ripard
On Wed, Oct 16, 2019 at 03:33:41PM +0200, Corentin Labbe wrote: > Hello > > This patch serie adds support for the second version of Allwinner Security > System. > The first generation of the Security System is already handled by the > sun4i-ss driver. > Due to major change, the first driver canno

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

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

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

2019-10-16 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 | 9 + 1 file ch

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

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

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

2019-10-16 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 | 9 + 1 file changed, 9 insertions(+) diff

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

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

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

2019-10-16 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 v5 10/11] arm64: defconfig: add new Allwinner crypto options

2019-10-16 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 c9adae41bac0..c45fb6822e4a 100644 --- a/arch/

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

2019-10-16 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 | 9 +

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

2019-10-16 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 | 9 + 1 file ch

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

2019-10-16 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 | 9 +++

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

2019-10-16 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

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

2019-10-16 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. Acked-by: Maxime Ripard Signed-off-by: Corentin Labbe --- drivers/crypto/allwinner/Kconfig | 27 + drivers/cryp

Re: [PATCH 16/25] crypto: mxs - switch to skcipher API

2019-10-16 Thread Horia Geanta
On 10/14/2019 3:19 PM, Ard Biesheuvel wrote: > Commit 7a7ffe65c8c5 ("crypto: skcipher - Add top-level skcipher interface") > dated 20 august 2015 introduced the new skcipher API which is supposed to > replace both blkcipher and ablkcipher. While all consumers of the API have > been converted long a

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

2019-10-16 Thread Jarkko Sakkinen
On Wed, Oct 16, 2019 at 08:34:12AM -0400, James Bottomley wrote: > reversible ciphers are generally frowned upon in random number > generation, that's why the krng uses chacha20. In general I think we > shouldn't try to code our own mixing and instead should get the krng to > do it for us using wh

Re: [PATCH -next 06/13] hwrng: meson - use devm_platform_ioremap_resource() to simplify code

2019-10-16 Thread Kevin Hilman
YueHaibing writes: > Use devm_platform_ioremap_resource() to simplify the code a bit. > This is detected by coccinelle. > > Signed-off-by: YueHaibing Reviewed-by: Kevin Hilman

very very urgent

2019-10-16 Thread Mr TAPIOKA LORNALABOSO
Iam Mr Taptoka Lornalaboso. I have a Geniue business transaction of 18.5 Million Us Dollars to do with You Hence You Co-operate with me I am assured you that within (7) seven banking working days, this said amount will enter your given Bank account with immediate alacrity. If you agree to my busin

Re: [PATCH -next 02/13] hwrng: bcm2835 - use devm_platform_ioremap_resource() to simplify code

2019-10-16 Thread Florian Fainelli
On 10/16/19 3:46 AM, YueHaibing wrote: > Use devm_platform_ioremap_resource() to simplify the code a bit. > This is detected by coccinelle. > > Signed-off-by: YueHaibing Acked-by: Florian Fainelli -- Florian

Re: [PATCH -next 00/13] hwrng: use devm_platform_ioremap_resource() to simplify code

2019-10-16 Thread Florian Fainelli
On 10/16/19 3:46 AM, YueHaibing wrote: > devm_platform_ioremap_resource() internally have platform_get_resource() > and devm_ioremap_resource() in it. So instead of calling them separately > use devm_platform_ioremap_resource() directly. Did your coccinelle script not cover drivers/char/hw_random/

Re: [PATCH v2 4/4] ARM64: dts: amlogic: adds crypto hardware node

2019-10-16 Thread Kevin Hilman
Corentin Labbe writes: > This patch adds the GXL crypto hardware node for all GXL SoCs. > > Signed-off-by: Corentin Labbe > --- > arch/arm64/boot/dts/amlogic/meson-gxl.dtsi | 10 ++ > 1 file changed, 10 insertions(+) > > diff --git a/arch/arm64/boot/dts/amlogic/meson-gxl.dtsi > b/arch/

Re: [RFT PATCH 2/3] crypto: s390/paes - convert to skcipher API

2019-10-16 Thread Eric Biggers
On Tue, Oct 15, 2019 at 01:31:39PM +0200, Harald Freudenberger wrote: > On 12.10.19 22:18, Eric Biggers wrote: > > From: Eric Biggers > > > > Convert the glue code for the S390 CPACF protected key implementations > > of AES-ECB, AES-CBC, AES-XTS, and AES-CTR from the deprecated > > "blkcipher" API

Re: [PATCH v6 2/3] uacce: add uacce driver

2019-10-16 Thread Jean-Philippe Brucker
Hi, I have a few comments on the overall design and some implementation details below. Could you also Cc io...@lists.linux-foundation.org on your next posting? I'm sure some subscribers would be interested and I don't think many people know about linux-accelerators yet. On Wed, Oct 16, 2019 at 0

Re: [PATCH v6 1/3] uacce: Add documents for uacce

2019-10-16 Thread Jean-Philippe Brucker
Hi, I already commented on the interface in patch 2/3, so I just have a few additional comments on the documentation itself. On Wed, Oct 16, 2019 at 04:34:31PM +0800, Zhangfei Gao wrote: > +The user API > + > + > +We adopt a polling style interface in the user space: :: > + > + in

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

2019-10-16 Thread James Bottomley
On Wed, 2019-10-16 at 19:25 +0300, Jarkko Sakkinen wrote: > On Wed, Oct 16, 2019 at 08:34:12AM -0400, James Bottomley wrote: > > reversible ciphers are generally frowned upon in random number > > generation, that's why the krng uses chacha20. In general I think > > we shouldn't try to code our own

Re: [PATCH v2 3/4] crypto: amlogic: Add crypto accelerator for amlogic GXL

2019-10-16 Thread LABBE Corentin
On Sun, Oct 13, 2019 at 10:41:06PM -0700, Randy Dunlap wrote: > Hi, > > On 10/13/19 10:31 PM, Corentin Labbe wrote: > > diff --git a/drivers/crypto/amlogic/Kconfig b/drivers/crypto/amlogic/Kconfig > > new file mode 100644 > > index ..9c4bf96afeb3 > > --- /dev/null > > +++ b/drivers/cry

Re: EIP97 kernel failure with af_alg/libaio

2019-10-16 Thread Gleb Pomykalov
Hi Stephan, Please take a look at this repository https://github.com/glebpom/rust-crypto-api/tree/mediatek-test The rust code is in examples/test.rs. This is a simple test, which runs 4 parallel AF_ALG encryptions through libaio with different block sizes: 4096 and 8192 bytes. You can build the co

Re: [PATCH -next 00/13] hwrng: use devm_platform_ioremap_resource() to simplify code

2019-10-16 Thread Yuehaibing
On 2019/10/17 0:44, Florian Fainelli wrote: > On 10/16/19 3:46 AM, YueHaibing wrote: >> devm_platform_ioremap_resource() internally have platform_get_resource() >> and devm_ioremap_resource() in it. So instead of calling them separately >> use devm_platform_ioremap_resource() directly. > > Did

[PATCH v3 0/4] crypto: add amlogic crypto offloader driver

2019-10-16 Thread Corentin Labbe
Hello This serie adds support for the crypto offloader present on amlogic GXL SoCs. Tested on meson-gxl-s905x-khadas-vim and meson-gxl-s905x-libretech-cc Regards Changes since v2: - fixed some spelling in kconfig - Use devm_platform_ioremap_resource Changes since v1: - renamed files and algo w

[PATCH v3 2/4] MAINTAINERS: Add myself as maintainer of amlogic crypto

2019-10-16 Thread Corentin Labbe
I will maintain the amlogic crypto driver. Signed-off-by: Corentin Labbe --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 2120c74f476a..59e360ca9fe7 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1477,6 +1477,13 @@ F: drivers/soc/am

[PATCH v3 4/4] ARM64: dts: amlogic: adds crypto hardware node

2019-10-16 Thread Corentin Labbe
This patch adds the GXL crypto hardware node for all GXL SoCs. Reviewed-by: Kevin Hilman Signed-off-by: Corentin Labbe --- arch/arm64/boot/dts/amlogic/meson-gxl.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxl.dtsi b/arch/arm64/boot/dts

[PATCH v3 3/4] crypto: amlogic: Add crypto accelerator for amlogic GXL

2019-10-16 Thread Corentin Labbe
This patch adds support for the amlogic GXL cryptographic offloader present on GXL SoCs. This driver supports AES cipher in CBC/ECB mode. Signed-off-by: Corentin Labbe --- drivers/crypto/Kconfig | 2 + drivers/crypto/Makefile | 1 + drivers/crypto/am

[PATCH v3 1/4] dt-bindings: crypto: Add DT bindings documentation for amlogic-crypto

2019-10-16 Thread Corentin Labbe
This patch adds documentation for Device-Tree bindings for the Amlogic GXL cryptographic offloader driver. Reviewed-by: Rob Herring Signed-off-by: Corentin Labbe --- .../bindings/crypto/amlogic,gxl-crypto.yaml | 52 +++ 1 file changed, 52 insertions(+) create mode 100644 Doc

Re: [PATCH] crypto: zlib-deflate - add zlib-deflate test case in tcrypt

2019-10-16 Thread Zhou Wang
On 2019/10/10 16:21, Zhou Wang wrote: > As a type CRYPTO_ALG_TYPE_ACOMPRESS is needed to trigger crypto acomp test, > we introduce a new help function tcrypto_test_extend to pass type and mask > to alg_test. > > Then tcrypto module can be used to do basic acomp test by: > insmod tcrypto.ko alg="zl