[PATCH 3/4] crypto: ux500 - Fix the parameter of dma_unmap_sg()

2021-02-08 Thread chenxiang
From: Xiang Chen For function dma_unmap_sg(), the parameter should be number of elements in the scatterlist prior to the mapping, not after the mapping. So fix this usage. Signed-off-by: Xiang Chen --- drivers/crypto/ux500/cryp/cryp_core.c | 4 ++-- drivers/crypto/ux500/hash/hash_core.c | 2 +

[PATCH 2/4] crypto: cavium - Fix the parameter of dma_unmap_sg()

2021-02-08 Thread chenxiang
From: Xiang Chen For function dma_unmap_sg(), the parameter should be number of elements in the scatterlist prior to the mapping, not after the mapping. So fix this usage. Signed-off-by: Xiang Chen --- drivers/crypto/cavium/nitrox/nitrox_reqmgr.c | 8 1 file changed, 4 insertions(+),

[PATCH 4/4] crypto: allwinner - Fix the parameter of dma_unmap_sg()

2021-02-08 Thread chenxiang
From: Xiang Chen For function dma_unmap_sg(), the parameter should be number of elements in the scatterlist prior to the mapping, not after the mapping. So fix this usage. Signed-off-by: Xiang Chen --- drivers/crypto/allwinner/sun8i-ce/sun8i-ce-cipher.c | 9 ++--- drivers/crypto/allwinner

[PATCH 1/4] crypto: amlogic - Fix the parameter of dma_unmap_sg()

2021-02-08 Thread chenxiang
From: Xiang Chen For function dma_unmap_sg(), the parameter should be number of elements in the scatterlist prior to the mapping, not after the mapping. So fix this usage. Signed-off-by: Xiang Chen --- drivers/crypto/amlogic/amlogic-gxl-cipher.c | 6 +++--- 1 file changed, 3 insertions(+), 3

[PATCH 0/4] Fix the parameter of dma_map_sg()

2021-02-08 Thread chenxiang
From: Xiang Chen According to Documentation/core-api/dma-api-howto.rst, the parameters of dma_unmap_sg() must be the same as those which are passed in to the scatter/gather mapping API. But for some drivers under crypto, the parameter of dma_unmap_sg() is number of elements after mapping. So

[PATCH] hwrng: bcm2835 - remove redundant null check

2021-02-08 Thread Tian Tao
clk_prepare_enable() and clk_disable_unprepare() will check NULL clock parameter, so It is not necessary to add additional checks. Signed-off-by: Tian Tao --- drivers/char/hw_random/bcm2835-rng.c | 11 --- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/drivers/char/hw_rand

Re: [PATCH v8 5/9] crypto: move curve_id of ECDH to algorithm name

2021-02-08 Thread kernel test robot
Hi Meng, Thank you for the patch! Yet something to improve: [auto build test ERROR on cryptodev/master] [also build test ERROR on crypto/master v5.11-rc6 next-20210125] [cannot apply to bluetooth/master] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting p

Re: [PATCH v8 5/9] crypto: move curve_id of ECDH to algorithm name

2021-02-08 Thread kernel test robot
Hi Meng, Thank you for the patch! Yet something to improve: [auto build test ERROR on cryptodev/master] [also build test ERROR on crypto/master v5.11-rc6 next-20210125] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as

[PATCH] crypto: arm/blake2b - drop unnecessary return statement

2021-02-08 Thread Eric Biggers
From: Eric Biggers Neither crypto_unregister_shashes() nor the module_exit function return a value, so the explicit 'return' is unnecessary. Signed-off-by: Eric Biggers --- arch/arm/crypto/blake2b-neon-glue.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/cryp

[PATCH] hwrng: ba431 - Use device-managed registration

2021-02-08 Thread Tian Tao
Use device-managed registration, so we can delete the ba431_trng_remove. Signed-off-by: Tian Tao --- drivers/char/hw_random/ba431-rng.c | 12 +--- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/drivers/char/hw_random/ba431-rng.c b/drivers/char/hw_random/ba431-rng.c index

Re: [PATCH v7 4/7] crypto: add ecc curve and expose them

2021-02-08 Thread Vitaly Chikunov
Ard, On Mon, Feb 08, 2021 at 07:47:44AM +0100, Ard Biesheuvel wrote: > On Mon, 8 Feb 2021 at 07:37, Vitaly Chikunov wrote: > > > > Herbert, > > > > On Fri, Jan 29, 2021 at 02:00:04PM +1100, Herbert Xu wrote: > > > On Thu, Jan 28, 2021 at 09:49:41PM -0500, Stefan Berger wrote: > > > > > > > > In m

[ANNOUNCE][CFP] Linux Security Summit 2021

2021-02-08 Thread James Morris
== ANNOUNCEMENT AND CALL FOR PARTICIPATION LINUX SECURITY SUMMIT 2021 27-29 September Du

Re: [PATCH 15/20] crypto: caam: caamalg_qi2: Supply a couple of 'fallback' related descriptions

2021-02-08 Thread Horia Geantă
On 2/4/2021 1:10 PM, Lee Jones wrote: > Fixes the following W=1 kernel build warning(s): > > drivers/crypto/caam/caamalg_qi2.c:87: warning: Function parameter or member > 'xts_key_fallback' not described in 'caam_ctx' > drivers/crypto/caam/caamalg_qi2.c:87: warning: Function parameter or member

Re: [PATCH 14/20] crypto: caam: caampkc: Provide the name of the function

2021-02-08 Thread Horia Geantă
On 2/4/2021 1:10 PM, Lee Jones wrote: > Fixes the following W=1 kernel build warning(s): > > drivers/crypto/caam/caampkc.c:199: warning: expecting prototype for from a > given scatterlist(). Prototype was for caam_rsa_count_leading_zeros() instead > > Cc: "Horia Geantă" > Cc: Aymen Sghaier >

Re: [net-next v4 00/14] Add Marvell CN10K support

2021-02-08 Thread Jakub Kicinski
On Sat, 6 Feb 2021 04:19:59 +0530 Geetha sowjanya wrote: > The current admin function (AF) driver and the netdev driver supports > OcteonTx2 silicon variants. The same OcteonTx2's > Resource Virtualization Unit (RVU) is carried forward to the next-gen > silicon ie OcteonTx3, with some changes and f

[PATCH v5 17/19] crypto: s5p: convert tasklets to use new tasklet_setup() API

2021-02-08 Thread Allen Pais
From: Allen Pais In preparation for unconditionally passing the struct tasklet_struct pointer to all tasklet callbacks, switch to using the new tasklet_setup() and from_tasklet() to pass the tasklet pointer explicitly. Acked-by: Krzysztof Kozlowski Signed-off-by: Romain Perier Signed-off-by: A

[PATCH v5 14/19] crypto: qat: convert tasklets to use new tasklet_setup() API

2021-02-08 Thread Allen Pais
From: Allen Pais In preparation for unconditionally passing the struct tasklet_struct pointer to all tasklet callbacks, switch to using the new tasklet_setup() and from_tasklet() to pass the tasklet pointer explicitly. Signed-off-by: Romain Perier Signed-off-by: Allen Pais --- drivers/crypto/

[PATCH v5 19/19] crypto: octeontx: convert tasklets to use new tasklet_setup() API

2021-02-08 Thread Allen Pais
From: Allen Pais In preparation for unconditionally passing the struct tasklet_struct pointer to all tasklet callbacks, switch to using the new tasklet_setup() and from_tasklet() to pass the tasklet pointer explicitly. Signed-off-by: Allen Pais --- drivers/crypto/marvell/octeontx/otx_cptvf_mai

[PATCH v5 18/19] crypto: talitos: convert tasklets to use new tasklet_setup() API

2021-02-08 Thread Allen Pais
From: Allen Pais In preparation for unconditionally passing the struct tasklet_struct pointer to all tasklet callbacks, switch to using the new tasklet_setup() and from_tasklet() to pass the tasklet pointer explicitly. Signed-off-by: Romain Perier Signed-off-by: Allen Pais --- drivers/crypto/

[PATCH v5 15/19] crypto: qce: convert tasklets to use new tasklet_setup() API

2021-02-08 Thread Allen Pais
From: Allen Pais In preparation for unconditionally passing the struct tasklet_struct pointer to all tasklet callbacks, switch to using the new tasklet_setup() and from_tasklet() to pass the tasklet pointer explicitly. Signed-off-by: Romain Perier Signed-off-by: Allen Pais --- drivers/crypto/

Re Thanks.

2021-02-08 Thread Mr.Richard Thomas
Dear Friend, I will be pleased if you can allow me to invest $104M Dollars in Estate Management,in your company or any area you best that will be of good profit to both of us Please do well to respond including your information for more details. Thanks. Mr.Richard Thomas

[PATCH v5 16/19] crypto: rockchip: convert tasklets to use new tasklet_setup() API

2021-02-08 Thread Allen Pais
From: Allen Pais In preparation for unconditionally passing the struct tasklet_struct pointer to all tasklet callbacks, switch to using the new tasklet_setup() and from_tasklet() to pass the tasklet pointer explicitly. Signed-off-by: Romain Perier Signed-off-by: Allen Pais --- drivers/crypto/

Re: [PATCH v5 00/19]crypto: convert tasklets to use new tasklet_setup API()

2021-02-08 Thread Allen Pais
From: Allen Pais Commit 12cc923f1ccc ("tasklet: Introduce new initialization API") introduced a new tasklet initialization API. This series converts all the crypto modules to use the new tasklet_setup() API The series is based on v5.11-rc4 (19c329f68089) I missed updating this bit. The se

[PATCH v5 13/19] crypto: picoxcell: convert tasklets to use new tasklet_setup() API

2021-02-08 Thread Allen Pais
From: Allen Pais In preparation for unconditionally passing the struct tasklet_struct pointer to all tasklet callbacks, switch to using the new tasklet_setup() and from_tasklet() to pass the tasklet pointer explicitly. Signed-off-by: Romain Perier Signed-off-by: Allen Pais --- drivers/crypto/

[PATCH v5 06/19] crypto: ccp: convert tasklets to use new tasklet_setup() API

2021-02-08 Thread Allen Pais
From: Allen Pais In preparation for unconditionally passing the struct tasklet_struct pointer to all tasklet callbacks, switch to using the new tasklet_setup() and from_tasklet() to pass the tasklet pointer explicitly. Acked-by: John Allen Signed-off-by: Romain Perier Signed-off-by: Allen Pais

[PATCH v5 12/19] crypto: omap: convert tasklets to use new tasklet_setup() API

2021-02-08 Thread Allen Pais
From: Allen Pais In preparation for unconditionally passing the struct tasklet_struct pointer to all tasklet callbacks, switch to using the new tasklet_setup() and from_tasklet() to pass the tasklet pointer explicitly. Signed-off-by: Romain Perier Signed-off-by: Allen Pais --- drivers/crypto/

[PATCH v5 10/19] crypto: ixp4xx: convert tasklets to use new tasklet_setup() API

2021-02-08 Thread Allen Pais
From: Allen Pais In preparation for unconditionally passing the struct tasklet_struct pointer to all tasklet callbacks, switch to using the new tasklet_setup() and from_tasklet() to pass the tasklet pointer explicitly. Signed-off-by: Romain Perier Signed-off-by: Allen Pais --- drivers/crypto/

[PATCH v5 09/19] crypto: img-hash: convert tasklets to use new tasklet_setup() API

2021-02-08 Thread Allen Pais
From: Allen Pais In preparation for unconditionally passing the struct tasklet_struct pointer to all tasklet callbacks, switch to using the new tasklet_setup() and from_tasklet() to pass the tasklet pointer explicitly. Signed-off-by: Romain Perier Signed-off-by: Allen Pais --- drivers/crypto/

[PATCH v5 08/19] crypto: hifn_795x: convert tasklets to use new tasklet_setup() API

2021-02-08 Thread Allen Pais
From: Allen Pais In preparation for unconditionally passing the struct tasklet_struct pointer to all tasklet callbacks, switch to using the new tasklet_setup() and from_tasklet() to pass the tasklet pointer explicitly. Signed-off-by: Romain Perier Signed-off-by: Allen Pais --- drivers/crypto/

[PATCH v5 11/19] crypto: mediatek: convert tasklets to use new tasklet_setup() API

2021-02-08 Thread Allen Pais
From: Allen Pais In preparation for unconditionally passing the struct tasklet_struct pointer to all tasklet callbacks, switch to using the new tasklet_setup() and from_tasklet() to pass the tasklet pointer explicitly. Signed-off-by: Romain Perier Signed-off-by: Allen Pais --- drivers/crypto/

[PATCH v5 07/19] crypto: ccree: convert tasklets to use new tasklet_setup() API

2021-02-08 Thread Allen Pais
From: Allen Pais In preparation for unconditionally passing the struct tasklet_struct pointer to all tasklet callbacks, switch to using the new tasklet_setup() and from_tasklet() to pass the tasklet pointer explicitly. Signed-off-by: Romain Perier Signed-off-by: Allen Pais --- drivers/crypto/

[PATCH v5 03/19] crypto: axis: convert tasklets to use new tasklet_setup() API

2021-02-08 Thread Allen Pais
From: Allen Pais In preparation for unconditionally passing the struct tasklet_struct pointer to all tasklet callbacks, switch to using the new tasklet_setup() and from_tasklet() to pass the tasklet pointer explicitly. Signed-off-by: Romain Perier Signed-off-by: Allen Pais --- drivers/crypto/

[PATCH v5 04/19] crypto: caam: convert tasklets to use new tasklet_setup() API

2021-02-08 Thread Allen Pais
From: Allen Pais In preparation for unconditionally passing the struct tasklet_struct pointer to all tasklet callbacks, switch to using the new tasklet_setup() and from_tasklet() to pass the tasklet pointer explicitly. Reviewed-by: Horia Geantă Signed-off-by: Romain Perier Signed-off-by: Allen

[PATCH v8 6/9] crypto: add new ecc curve and expose them

2021-02-08 Thread Meng Yu
1. Add ecc curves(P224, P384, P521) for ECDH; 2. Reorder ECC 'Curves ID' in 'include/crypto/ecdh.h'; 3. Move 'ecc_get_curve' to 'include/crypto/ecc_curve.h', so everyone in kernel tree can easily get ecc curve params; Signed-off-by: Meng Yu Reviewed-by: Zaibo Xu --- crypto/ecc.c

[PATCH v5 05/19] crypto: cavium: convert tasklets to use new tasklet_setup() API

2021-02-08 Thread Allen Pais
From: Allen Pais In preparation for unconditionally passing the struct tasklet_struct pointer to all tasklet callbacks, switch to using the new tasklet_setup() and from_tasklet() to pass the tasklet pointer explicitly. Signed-off-by: Romain Perier Signed-off-by: Allen Pais --- drivers/crypto/

[PATCH v8 2/9] crypto: hisilicon/hpre - add algorithm type

2021-02-08 Thread Meng Yu
Algorithm type is brought in to get hardware HPRE queue to support different algorithms. Signed-off-by: Meng Yu Reviewed-by: Zaibo Xu --- drivers/crypto/hisilicon/hpre/hpre.h| 10 +- drivers/crypto/hisilicon/hpre/hpre_crypto.c | 12 ++-- drivers/crypto/hisilicon/hpre/hpr

[PATCH v5 02/19] crypto: atmel: convert tasklets to use new tasklet_setup() API

2021-02-08 Thread Allen Pais
From: Allen Pais In preparation for unconditionally passing the struct tasklet_struct pointer to all tasklet callbacks, switch to using the new tasklet_setup() and from_tasklet() to pass the tasklet pointer explicitly. Signed-off-by: Romain Perier Signed-off-by: Allen Pais --- drivers/crypto/

[PATCH v8 8/9] crypto: add curve25519 params and expose them

2021-02-08 Thread Meng Yu
1. Add curve 25519 parameters; 2. Add curve25519 function 'ecc_get_curve25519_param', to make its parameters be exposed to everyone in kernel tree. Signed-off-by: Meng Yu Reviewed-by: Zaibo Xu --- crypto/ecc.c | 6 ++ crypto/ecc_curve_defs.h| 18 ++ inc

[PATCH v5 01/19] crypto: amcc: convert tasklets to use new tasklet_setup() API

2021-02-08 Thread Allen Pais
From: Allen Pais In preparation for unconditionally passing the struct tasklet_struct pointer to all tasklet callbacks, switch to using the new tasklet_setup() and from_tasklet() to pass the tasklet pointer explicitly. Signed-off-by: Romain Perier Signed-off-by: Allen Pais --- drivers/crypto/

[PATCH v5 00/19]crypto: convert tasklets to use new tasklet_setup API()

2021-02-08 Thread Allen Pais
From: Allen Pais Commit 12cc923f1ccc ("tasklet: Introduce new initialization API") introduced a new tasklet initialization API. This series converts all the crypto modules to use the new tasklet_setup() API The series is based on v5.11-rc4 (19c329f68089) v5: - Fix amcc build failure. v4: -

[PATCH v8 5/9] crypto: move curve_id of ECDH to algorithm name

2021-02-08 Thread Meng Yu
1. Move curve id of ECDH from the key into the algorithm name instead in crypto; 2. Modify 'testmgr.c' and 'testmgr.h' to adapt the modification. Signed-off-by: Meng Yu Reviewed-by: Zaibo Xu --- crypto/ecdh.c | 72 +++ crypto/ecdh_helpe

[PATCH v8 9/9] crypto: hisilicon/hpre - add 'CURVE25519' algorithm

2021-02-08 Thread Meng Yu
Enable 'CURVE25519' algorithm in Kunpeng 930. Signed-off-by: Meng Yu Reviewed-by: Zaibo Xu --- drivers/crypto/hisilicon/Kconfig| 1 + drivers/crypto/hisilicon/hpre/hpre.h| 2 + drivers/crypto/hisilicon/hpre/hpre_crypto.c | 366 +++- 3 files change

[PATCH v8 4/9] net/bluetooth: modify ECDH name in 'crypto_alloc_kpp'

2021-02-08 Thread Meng Yu
Algorithm name of ECDH will be changed in crypto, so we modify its name when we call ECDH. Signed-off-by: Meng Yu Reviewed-by: Zaibo Xu --- net/bluetooth/ecdh_helper.c | 2 -- net/bluetooth/selftest.c| 2 +- net/bluetooth/smp.c | 6 +++--- 3 files changed, 4 insertions(+), 6 deletio

[PATCH v8 7/9] crypto: hisilicon/hpre - add 'ECDH' algorithm

2021-02-08 Thread Meng Yu
1. Enable 'ECDH' algorithm in Kunpeng 930; 2. HPRE ECDH Support: ecdh-nist-p192, ecdh-nist-p224, ecdh-nist-p256, ecdh-nist-p384, ecdh-nist-p521. Signed-off-by: Meng Yu Reviewed-by: Zaibo Xu --- drivers/crypto/hisilicon/hpre/hpre.h| 2 +- drivers/crypto/hisilicon/hpre/hpre_crypto.c

[PATCH v8 3/9] crypto: atmel-ecc - move curve_id of ECDH from the key to algorithm name

2021-02-08 Thread Meng Yu
As curve id of ECDH will be moved from its key into algorithm name, we cannot use 'curve_id' in 'struct ecdh', so we should modify ECDH driver in atmel, and make ECDH algorithm name be the same as crypto (like 'ecdh-nist-pxxx'); Signed-off-by: Meng Yu Reviewed-by: Zaibo Xu --- drivers/crypto/at

[PATCH v8 0/9] add ECDH and CURVE25519 algorithms support for Kunpeng 930

2021-02-08 Thread Meng Yu
1. Move curve ID from the key into the algorithm name (like 'ecdh-nist-pxxx' so we get its tfm like 'crypto_alloc_kpp("ecdh-nist-p256", 0, 0)'), in 'crypto/ecc.c' (has been verified by testmgr) and 'crypto/atmel-ecc.c' (only compiled, not do test), and modify 'testmgr.c' and 'net/bluetoo

[PATCH v8 1/9] crypto: hisilicon/hpre - add version adapt to new algorithms

2021-02-08 Thread Meng Yu
A new generation of accelerator Kunpeng930 has appeared, and the corresponding driver needs to be updated to support some new algorithms of Kunpeng930. To be compatible with Kunpeng920, we add parameter 'struct hisi_qm *qm' to sec_algs_(un)register to identify the chip's version. Signed-off-by: Me

[PATCH] crypto: sha: remove unneeded semicolon

2021-02-08 Thread Yang Li
Eliminate the following coccicheck warning: ./arch/powerpc/crypto/sha1-spe-glue.c:110:2-3: Unneeded semicolon Reported-by: Abaci Robot Signed-off-by: Yang Li --- arch/powerpc/crypto/sha1-spe-glue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/crypto/sha1-spe-