Re: [PATCH] arm: crypto: Add NEON optimized SHA-256

2015-03-25 Thread Jean-Christophe PLAGNIOL-VILLARD
On 15:48 Mon 16 Mar , Sami Tolvanen wrote: > Add Andy Polyakov's NEON optimized SHA-256 implementation. > > On Nexus 6, this implementation is ~2x faster than sha256-generic. do you plan to add the sha512 from openssl too? Whould be nice so armv4 can get faster implementatio too Best Regard

Re: [PATCHv2] arm: crypto: Add optimized SHA-256/224

2015-03-24 Thread Jean-Christophe PLAGNIOL-VILLARD
On 15:46 Tue 24 Mar , Ard Biesheuvel wrote: > On 24 March 2015 at 14:06, Ard Biesheuvel wrote: > > On 24 March 2015 at 14:05, Jean-Christophe PLAGNIOL-VILLARD > > wrote: > >> >> + '&eor ($t0,$t0,$a,"ror#".($Sigma0[2]-$Sigma0[0]))',

Re: [PATCHv2] arm: crypto: Add optimized SHA-256/224

2015-03-24 Thread Jean-Christophe PLAGNIOL-VILLARD
On 13:50 Mon 23 Mar , Sami Tolvanen wrote: > Add Andy Polyakov's optimized assembly and NEON implementations for > SHA-256/224. > > The sha256-armv4.pl script for generating the assembly code is from > OpenSSL commit 2ecd32a1f8f0643ae7b38f59bbaf9f0d6ef326fe. > > Compared to sha256-generic the

Re: [PATCHv2] arm: crypto: Add optimized SHA-256/224

2015-03-24 Thread Jean-Christophe PLAGNIOL-VILLARD
>> + '&eor ($t0,$t0,$a,"ror#".($Sigma0[2]-$Sigma0[0]))', # Sigma0(a) > >> + '&add ($h,$h,$t1)', # h+=Ch(e,f,g) > >> + '&ldr ($t1,sprintf "[sp,#%d]",4*(($j+1)&15)) if (($j&15)!=15);'. > >> + '&ldr ($t1,"[$Ktbl]") if ($j==15);'. >

Re: [PATCH 2/3] ARM: at91/dt/trivial: before sama5d3, Atmel MPU were using at91 prefix

2013-10-14 Thread Jean-Christophe PLAGNIOL-VILLARD
On 18:46 Mon 14 Oct , Nicolas Ferre wrote: > Change the sha/aes/tdes compatibility string to match common > case for the at91sam9g45 family which is to keep the at91 prefix. > > Signed-off-by: Nicolas Ferre > --- > arch/arm/boot/dts/sama5d3.dtsi | 6 +++--- > 1 file changed, 3 insertions(+),

Re: [PATCH 1/5] ARM: AT91SAM9G45: fix crypto peripherals irq issue due to sparse irq support.

2012-11-07 Thread Jean-Christophe PLAGNIOL-VILLARD
On 17:31 Tue 06 Nov , Nicolas Royer wrote: > Spare irq support introduced by commit "8fe82a5 ARM: at91: sparse irq support" > involves to add the NR_IRQS_LEGACY offset to irq number. > > Signed-off-by: Nicolas Royer > Acked-by: Nicolas Ferre > Acked-by: Eric Bénard > Tested-by: Eric Bénard

Re: [PATCH 2/5 v2] ARM: AT91SAM9G45: same platform data structure for all crypto peripherals

2012-11-07 Thread Jean-Christophe PLAGNIOL-VILLARD
On 17:27 Wed 07 Nov , Nicolas Royer wrote: > Only AES use DMA in AT91SAM9G45 (TDES and SHA use PDC). > > However latest Atmel TDES and SHA IP releases use DMA instead of PDC. > --> Atmel TDES and SHA drivers need DMA platform data for those IP releases. > > Goal of this patch is to use the

Re: [PATCH 2/5 v2] ARM: AT91SAM9G45: same platform data structure for all crypto peripherals

2012-11-07 Thread Jean-Christophe PLAGNIOL-VILLARD
On 17:59 Wed 07 Nov , Eric Bénard wrote: > Hi Jean-Christophe, > > Le Wed, 7 Nov 2012 17:45:23 +0100, > Jean-Christophe PLAGNIOL-VILLARD a écrit : > > > @@ -1900,7 +1900,7 @@ static void __init at91

Re: [PATCH 2/5] ARM: AT91SAM9G45: same platform data structure for all crypto peripherals

2012-11-07 Thread Jean-Christophe PLAGNIOL-VILLARD
On 17:32 Tue 06 Nov , Nicolas Royer wrote: > Only AES use DMA in AT91SAM9G45 (TDES and SHA use PDC). > > However latest Atmel TDES and SHA IP releases use DMA instead of PDC. > --> Atmel TDES and SHA drivers need DMA platform data for those IP releases. > > Goal of this patch is to use the

Re: [PATCH 2/5] crypto: add Atmel AES driver

2012-07-06 Thread Jean-Christophe PLAGNIOL-VILLARD
On 19:19 Sun 01 Jul , Eric Bénard wrote: > From: Nicolas Royer > > Signed-off-by: Nicolas Royer > Acked-by: Nicolas Ferre > Acked-by: Eric Bénard > Tested-by: Eric Bénard > --- > drivers/crypto/Kconfig | 17 + > drivers/crypto/Makefile |3 +- > drivers/crypto/atmel