RE: Rabin Finger Print Support in Crypto Subsystem

2016-04-12 Thread Pramod Kumar
Any input, Please... > -Original Message- > From: Pramod Kumar [mailto:pramod.ku...@broadcom.com] > Sent: 07 April 2016 14:21 > To: linux-crypto@vger.kernel.org > Subject: Rabin Finger Print Support in Crypto Subsystem > > Hi Guys, > > > I was looking for “Rabin Finger Print” support in Li

[PATCH v5 2/3] ARM: i.MX25: add scc module to dtsi

2016-04-12 Thread Steffen Trumtrar
Add the Security Controller (SCC) module to the dtsi. Signed-off-by: Steffen Trumtrar --- arch/arm/boot/dts/imx25.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/imx25.dtsi b/arch/arm/boot/dts/imx25.dtsi index 6b1f4bbe6ec6..af6af8741fe5 100644 --- a/arch/arm/b

[PATCH v5 1/3] Documentation: devicetree: add Freescale SCC bindings

2016-04-12 Thread Steffen Trumtrar
Add documentation for the Freescale Security Controller (SCC) found on i.MX25 SoCs. Signed-off-by: Steffen Trumtrar Acked-by: Rob Herring --- Changes in v2: - add clocks to required properties - add Acked-by .../devicetree/bindings/crypto/fsl-imx-scc.txt | 21 +

[PATCH v5 3/3] crypto: add basic driver for the MXC SCC

2016-04-12 Thread Steffen Trumtrar
According to the Freescale GPL driver code, there are two different Security Controller (SCC) versions: SCC and SCC2. The SCC is found on older i.MX SoCs, e.g. the i.MX25. This is the version implemented and tested here. As there is no publicly available documentation for this IP core, all inform

[PATCH] crypto: sha1-mb - use corrcet pointer while completing jobs

2016-04-12 Thread Xiaodong Liu
In sha_complete_job, incorrect mcryptd_hash_request_ctx pointer is used when check and complete other jobs. If the memory of first completed req is freed, while still completing other jobs in the func, kernel will crash since NULL pointer is assigned to RIP. Signed-off-by: Xiaodong Liu --- arch/

[PATCH 1/2] crypto: Key-agreement Protocol Primitives API (KPP)

2016-04-12 Thread Salvatore Benedetto
Add key-agreement protocol primitives (kpp) API which allows to implement primitives required by protocols such as DH and ECDH. The API is composed mainly by the following functions * set_params() - It allows the user to set the parameters known to both parties involved in the key-agreement ses

[PATCH 0/2] Key-agreement Protocol Primitives (KPP) API

2016-04-12 Thread Salvatore Benedetto
Hi Herb, the following patchset introduces a new API for abstracting key-agreement protocols such as DH and ECDH. It provides the primitives required for implementing the protocol, thus the name KPP (Key-agreement Protocol Primitives). Regards, Salvatore Salvatore Benedetto (2): crypto: Key-ag

[PATCH 2/2] crypto: kpp - Add DH software implementation

2016-04-12 Thread Salvatore Benedetto
* Implement MPI based Diffie-Hellman under kpp API * Add test with data generad by OpenSSL Signed-off-by: Salvatore Benedetto --- crypto/Kconfig | 8 ++ crypto/Makefile | 2 + crypto/dh.c | 233 crypto/testmgr.c| 157

Re: [PATCH 0/3] crypto: af_alg - add TLS type encryption

2016-04-12 Thread Fridolin Pokorny
On 08.04.2016 04:58, Tom Herbert wrote: > On Thu, Apr 7, 2016 at 11:52 PM, Herbert Xu > wrote: >> On Wed, Apr 06, 2016 at 10:56:12AM -0700, Tadeusz Struk wrote: >>> >>> The intend is to enable HW acceleration of the TLS protocol. >>> The way it will work is that the user space will send a packe

Re: [PATCH 2/2] crypto: kpp - Add DH software implementation

2016-04-12 Thread Stephan Mueller
Am Dienstag, 12. April 2016, 11:39:16 schrieb Salvatore Benedetto: Hi Salvatore, > * Implement MPI based Diffie-Hellman under kpp API > * Add test with data generad by OpenSSL > > Signed-off-by: Salvatore Benedetto > --- > crypto/Kconfig | 8 ++ > crypto/Makefile | 2 + > crypto

RE: [PATCH 2/2] crypto: kpp - Add DH software implementation

2016-04-12 Thread Benedetto, Salvatore
Hi Stephan, > -Original Message- > From: Stephan Mueller [mailto:s...@eperm.de] > Sent: Tuesday, April 12, 2016 2:01 PM > To: Benedetto, Salvatore > Cc: herb...@gondor.apana.org.au; linux-crypto@vger.kernel.org > Subject: Re: [PATCH 2/2] crypto: kpp - Add DH software implementation > > A

Re: [PATCH 2/2] crypto: kpp - Add DH software implementation

2016-04-12 Thread Stephan Mueller
Am Dienstag, 12. April 2016, 13:18:42 schrieb Benedetto, Salvatore: Hi Salvatore, > Hi Stephan, > > > -Original Message- > > From: Stephan Mueller [mailto:s...@eperm.de] > > Sent: Tuesday, April 12, 2016 2:01 PM > > To: Benedetto, Salvatore > > Cc: herb...@gondor.apana.org.au; linux-cry

Re: [PATCH v2 1/2] dt/bindings: Add bindings for hisilicon random number generator

2016-04-12 Thread Rob Herring
On Mon, Apr 11, 2016 at 8:16 PM, Kefeng Wang wrote: > > > On 2016/4/11 22:43, Rob Herring wrote: >> On Thu, Apr 07, 2016 at 04:23:16PM +0800, Kefeng Wang wrote: >>> Document the devicetree bindings for the random number generator found >>> on Hisilicon Hip04 and Hip05 soc. >>> >>> Signed-off-by: K

Re: [PATCH v4 6/7] crypto: KEYS - add generic handlers to symmetric key type

2016-04-12 Thread David Howells
Tadeusz Struk wrote: > +/** > + * asymmetric_key_verify_signature - invoke verify signature operation on a > key > + *of the asymmetric subtype > + * @key: key from the system keyring > + * @sig: signature to verify > + * > + * return: 0 on success or errno on fai

Re: [PATCH v4 6/7] crypto: KEYS - add generic handlers to symmetric key type

2016-04-12 Thread Tadeusz Struk
On 04/12/2016 03:10 PM, David Howells wrote: >> +/** >> > + * asymmetric_key_verify_signature - invoke verify signature operation on >> > a key >> > + * of the asymmetric subtype >> > + * @key: key from the system keyring >> > + * @sig: signature to verify >> >

Re: [PATCH v2 1/2] dt/bindings: Add bindings for hisilicon random number generator

2016-04-12 Thread Kefeng Wang
On 2016/4/12 21:54, Rob Herring wrote: > On Mon, Apr 11, 2016 at 8:16 PM, Kefeng Wang > wrote: >> >> >> On 2016/4/11 22:43, Rob Herring wrote: >>> On Thu, Apr 07, 2016 at 04:23:16PM +0800, Kefeng Wang wrote: Document the devicetree bindings for the random number generator found on His