[PATCH 2/5] crypto: atmel-ecc: add support for ACPI probing on non-AT91 platforms

2019-04-30 Thread Ard Biesheuvel
The Atmel/Microchip EC508A is a I2C device that could be wired into any platform, and is being used on the Linaro/96boards Secure96 mezzanine adapter. This means it could be found on any platform, even on ones that use ACPI enumeration (via PRP0001 devices). So update the code to enable this use ca

[PATCH 5/5] dt-bindings: add Atmel SHA204A I2C crypto processor

2019-04-30 Thread Ard Biesheuvel
Add a compatible string for the Atmel SHA204A I2C crypto processor. Cc: Rob Herring Cc: Mark Rutland Signed-off-by: Ard Biesheuvel --- Documentation/devicetree/bindings/crypto/atmel-crypto.txt | 13 + 1 file changed, 13 insertions(+) diff --git a/Documentation/devicetree/bindings/

[PATCH 3/5] crypto: atmel-ecc: factor out code that can be shared

2019-04-30 Thread Ard Biesheuvel
In preparation of adding support for the random number generator in Atmel atsha204a devices, refactor the existing atmel-ecc driver (which drives hardware that is closely related) so we can share the basic I2C and command queuing routines. Signed-off-by: Ard Biesheuvel --- drivers/crypto/Kconfig

[PATCH 4/5] crypto: atmel-i2c: add support for SHA204A random number generator

2019-04-30 Thread Ard Biesheuvel
The Linaro/96boards Secure96 mezzanine contains (among other things) an Atmel SHA204A symmetric crypto processor. This chip implements a number of different functionalities, but one that is highly useful for many different 96boards platforms is the random number generator. So let's implement a dri

[PATCH 0/5] synquacer - wire up Atmel SHA204A as RNG in DT and ACPI mode

2019-04-30 Thread Ard Biesheuvel
The Socionext SynQuacer based 96boards DeveloperBox platform does not incorporate a random number generator, but it does have a 96boards low speed connector which supports extension boards such as the Secure96, which has a TPM and some crypto accelerators, one of which incorporates a random number

[PATCH 1/5] i2c: acpi: permit bus speed to be discovered after enumeration

2019-04-30 Thread Ard Biesheuvel
Currently, the I2C ACPI enumeration code only permits the max bus rate to be discovered before enumerating the slaves on the bus. In some cases, drivers for slave devices may require this information, e.g., some ATmel crypto drivers need to generate a so-called wake token of a fixed duration, regar

Re: crypto: inside_secure - call for volunteers

2019-04-30 Thread antoine.ten...@bootlin.com
On Tue, Apr 30, 2019 at 01:41:27PM +, Pascal Van Leeuwen wrote: > > > > I do have access to Marvell boards, having the EIP197 & EIP97 engines. > > I > > can help testing your modifications on those boards. Do you have a > > public branch somewhere I can access? > > > I do have a git tree on Git

RE: crypto: inside_secure - call for volunteers

2019-04-30 Thread Pascal Van Leeuwen
> -Original Message- > From: linux-crypto-ow...@vger.kernel.org [mailto:linux-crypto- > ow...@vger.kernel.org] On Behalf Of antoine.ten...@bootlin.com > Sent: Tuesday, April 30, 2019 3:27 PM > To: Pascal Van Leeuwen > Cc: linux-crypto@vger.kernel.org; antoine.ten...@bootlin.com; Herbert >

Re: crypto: inside_secure - call for volunteers

2019-04-30 Thread antoine.ten...@bootlin.com
Hi Pascal, On Tue, Apr 30, 2019 at 01:08:27PM +, Pascal Van Leeuwen wrote: > > Over the past weeks I have been working on the crypto driver for > Inside Secure (EIP97/EIP197) hardware. This started out as a personal > side project to be able to do some architectural exploration using > real a

crypto: inside_secure - call for volunteers

2019-04-30 Thread Pascal Van Leeuwen
Hi all, Over the past weeks I have been working on the crypto driver for Inside Secure (EIP97/EIP197) hardware. This started out as a personal side project to be able to do some architectural exploration using real application software, but as I started fixing issues I realised these fixes may be

Re: crypto: akcipher: userspace API?

2019-04-30 Thread Herbert Xu
On Tue, Apr 30, 2019 at 12:52:28PM +0200, Marek Behun wrote: > > I would like to ask what is the current status of the userspace > akcipher crypto API. > > The last patches I found are from 2017 > https://marc.info/?t=15023472624&r=1&w=2 and were not applied. The akcipher kernel API is still

crypto: akcipher: userspace API?

2019-04-30 Thread Marek Behun
Hello, I would like to ask what is the current status of the userspace akcipher crypto API. The last patches I found are from 2017 https://marc.info/?t=15023472624&r=1&w=2 and were not applied. Marek