[PATCH 0/3] crypto: sahara: Add support for SAHARA in i.MX27.

2013-02-21 Thread Javier Martin
This series of patches provide AES-ECB and AES-CBC support for the SAHARA2 cryptographic accelerator which is inside the i.MX27 SoC. It is expected that more algorithms will be supported in the future. For testing, a Visstrim M10 board has been used and the code related to this platform has been

[PATCH 2/3] crypto: sahara: Add driver for SAHARA2 accelerator.

2013-02-21 Thread Javier Martin
SAHARA2 HW module is included in the i.MX27 SoC from Freescale. It is capable of performing cipher algorithms such as AES, 3DES..., hashing and RNG too. This driver provides support for AES-CBC and AES-ECB by now. Signed-off-by: Javier Martin javier.mar...@vista-silicon.com ---

[PATCH 3/3] Visstrim M10: Add support for SAHARA2 module.

2013-02-21 Thread Javier Martin
Signed-off-by: Javier Martin javier.mar...@vista-silicon.com --- arch/arm/mach-imx/Kconfig |1 + arch/arm/mach-imx/mach-imx27_visstrim_m10.c |1 + 2 files changed, 2 insertions(+) diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig index 1ad0d76..d232a56

Re: [PATCH 0/3] crypto: sahara: Add support for SAHARA in i.MX27.

2013-02-21 Thread Arnd Bergmann
On Thursday 21 February 2013, Javier Martin wrote: This series of patches provide AES-ECB and AES-CBC support for the SAHARA2 cryptographic accelerator which is inside the i.MX27 SoC. It is expected that more algorithms will be supported in the future. For testing, a Visstrim M10 board has

Re: [PATCH 2/3] crypto: sahara: Add driver for SAHARA2 accelerator.

2013-02-21 Thread Arnd Bergmann
On Thursday 21 February 2013, Javier Martin wrote: + +struct sahara_dev { + struct device *device; + void __iomem*regs_base; + struct clk *clk_ipg; + struct clk *clk_ahb; + + struct sahara_ctx *ctx; + spinlock_t

Re: [RFC][PATCH] Entropy generator with 100 kB/s throughput

2013-02-21 Thread Phil Carmody
Apologies if this is misthreaded, I had to hand-craft the headers. The patch offers an entropy generator based on CPU timing jitter. The entropy collector has the following properties: * it does not maintain any state and therefore does not need any seed What is this pool if it's not

Re: [PATCH 0/3] crypto: sahara: Add support for SAHARA in i.MX27.

2013-02-21 Thread javier Martin
Hi Arnd, On 21 February 2013 13:59, Arnd Bergmann a...@arndb.de wrote: On Thursday 21 February 2013, Javier Martin wrote: This series of patches provide AES-ECB and AES-CBC support for the SAHARA2 cryptographic accelerator which is inside the i.MX27 SoC. It is expected that more algorithms

Re: [RFC][PATCH] Entropy generator with 100 kB/s throughput

2013-02-21 Thread Stephan Mueller
On 21.02.2013 15:07:12, +0100, Phil Carmody pc+l...@asdf.org wrote: Hi Phil, Apologies if this is misthreaded, I had to hand-craft the headers. The patch offers an entropy generator based on CPU timing jitter. The entropy collector has the following properties: * it does not maintain any

Re: [PATCH 2/3] crypto: sahara: Add driver for SAHARA2 accelerator.

2013-02-21 Thread javier Martin
Hi Arnd, thanks for your review. On 21 February 2013 14:13, Arnd Bergmann a...@arndb.de wrote: On Thursday 21 February 2013, Javier Martin wrote: + +struct sahara_dev { + struct device *device; + void __iomem*regs_base; + struct clk *clk_ipg;

Re: [PATCH 0/3] crypto: sahara: Add support for SAHARA in i.MX27.

2013-02-21 Thread Arnd Bergmann
On Thursday 21 February 2013, javier Martin wrote: We know about the existence of DT and the constant migration process that is taking place towards it. Moreover we are strongly interested in converting the Visstrim SM10 platform to DT. Unfortunately, there are several issues that need to

Re: [PATCH 0/3] crypto: sahara: Add support for SAHARA in i.MX27.

2013-02-21 Thread Fabio Estevam
On Thu, Feb 21, 2013 at 1:40 PM, Arnaud Patard arnaud.pat...@rtp-net.org wrote: How different are the variants ? I've a imx51 device with DT support so if someone running sahara on a system with DT is needed, I can be this person (as long as a way to test it is provided too). mx27 has

Re: [PATCH 0/3] crypto: sahara: Add support for SAHARA in i.MX27.

2013-02-21 Thread Rtp
Fabio Estevam feste...@gmail.com writes: Hi, On Thu, Feb 21, 2013 at 12:23 PM, Sascha Hauer s.ha...@pengutronix.de wrote: Neither i.MX25, i.MX31 nor i.MX21 have this unit. I haven't checked the others, but I assume this is i.MX27 only. There is Sahara variants on mx51/mx53. How different

[PATCH] Update the links to the white papers on CRC32C calculations with PCLMULQDQ instructions.

2013-02-21 Thread Tim Chen
Herbert, The following patch update the stale link to the CRC32C white paper that was referenced. Tim Signed-off-by: Tim Chen tim.c.c...@linux.intel.com --- arch/x86/crypto/crc32c-pcl-intel-asm_64.S |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git

Re: [RFC][PATCH] Entropy generator with 100 kB/s throughput

2013-02-21 Thread Theodore Ts'o
On Thu, Feb 21, 2013 at 12:46:45PM -0500, Sandy Harris wrote: Also, in some designs it is possible to get very close to calculating entropy. The Turbid generator, for example, uses physical measurements of sound card properties plus arguments from standard circuit physics to prove a lower

Re: [PATCH 0/3] crypto: sahara: Add support for SAHARA in i.MX27.

2013-02-21 Thread Rtp
Fabio Estevam feste...@gmail.com writes: Hi, On Thu, Feb 21, 2013 at 1:40 PM, Arnaud Patard arnaud.pat...@rtp-net.org wrote: How different are the variants ? I've a imx51 device with DT support so if someone running sahara on a system with DT is needed, I can be this person (as long as a