Re: [PATCH 5/5] arm64: add Crypto Extensions based synchronous core AES cipher

2014-02-03 Thread Will Deacon
On Thu, Jan 30, 2014 at 07:20:38PM +, Ard Biesheuvel wrote: > On 30 January 2014 19:56, Will Deacon wrote: > > On Wed, Jan 29, 2014 at 04:50:46PM +, Ard Biesheuvel wrote: > >> +static void aes_cipher_encrypt(struct crypto_tfm *tfm, u8 dst[], u8 const > >> src[]) > >> +{ > >> + struct

Re: [PATCH 5/5] arm64: add Crypto Extensions based synchronous core AES cipher

2014-02-03 Thread Will Deacon
On Thu, Jan 30, 2014 at 07:20:38PM +, Ard Biesheuvel wrote: On 30 January 2014 19:56, Will Deacon will.dea...@arm.com wrote: On Wed, Jan 29, 2014 at 04:50:46PM +, Ard Biesheuvel wrote: +static void aes_cipher_encrypt(struct crypto_tfm *tfm, u8 dst[], u8 const src[]) +{ +

Re: [PATCH 5/5] arm64: add Crypto Extensions based synchronous core AES cipher

2014-01-30 Thread Ard Biesheuvel
On 30 January 2014 19:56, Will Deacon wrote: > Hi Ard, > > On Wed, Jan 29, 2014 at 04:50:46PM +, Ard Biesheuvel wrote: >> diff --git a/arch/arm64/crypto/aes-ce-cipher.c >> b/arch/arm64/crypto/aes-ce-cipher.c >> new file mode 100644 >> index ..b5a5d5d6e4b8 >> --- /dev/null >> +++

Re: [PATCH 5/5] arm64: add Crypto Extensions based synchronous core AES cipher

2014-01-30 Thread Will Deacon
Hi Ard, On Wed, Jan 29, 2014 at 04:50:46PM +, Ard Biesheuvel wrote: > diff --git a/arch/arm64/crypto/aes-ce-cipher.c > b/arch/arm64/crypto/aes-ce-cipher.c > new file mode 100644 > index ..b5a5d5d6e4b8 > --- /dev/null > +++ b/arch/arm64/crypto/aes-ce-cipher.c > @@ -0,0 +1,103 @@ >

Re: [PATCH 5/5] arm64: add Crypto Extensions based synchronous core AES cipher

2014-01-30 Thread Will Deacon
Hi Ard, On Wed, Jan 29, 2014 at 04:50:46PM +, Ard Biesheuvel wrote: diff --git a/arch/arm64/crypto/aes-ce-cipher.c b/arch/arm64/crypto/aes-ce-cipher.c new file mode 100644 index ..b5a5d5d6e4b8 --- /dev/null +++ b/arch/arm64/crypto/aes-ce-cipher.c @@ -0,0 +1,103 @@ +/* +

Re: [PATCH 5/5] arm64: add Crypto Extensions based synchronous core AES cipher

2014-01-30 Thread Ard Biesheuvel
On 30 January 2014 19:56, Will Deacon will.dea...@arm.com wrote: Hi Ard, On Wed, Jan 29, 2014 at 04:50:46PM +, Ard Biesheuvel wrote: diff --git a/arch/arm64/crypto/aes-ce-cipher.c b/arch/arm64/crypto/aes-ce-cipher.c new file mode 100644 index ..b5a5d5d6e4b8 --- /dev/null

[PATCH 5/5] arm64: add Crypto Extensions based synchronous core AES cipher

2014-01-29 Thread Ard Biesheuvel
This implements the core AES cipher using the Crypto Extensions, using only NEON registers q0 and q1. Signed-off-by: Ard Biesheuvel --- arch/arm64/Makefile | 1 + arch/arm64/crypto/Makefile| 13 + arch/arm64/crypto/aes-ce-cipher.c | 103

[PATCH 5/5] arm64: add Crypto Extensions based synchronous core AES cipher

2014-01-29 Thread Ard Biesheuvel
This implements the core AES cipher using the Crypto Extensions, using only NEON registers q0 and q1. Signed-off-by: Ard Biesheuvel ard.biesheu...@linaro.org --- arch/arm64/Makefile | 1 + arch/arm64/crypto/Makefile| 13 + arch/arm64/crypto/aes-ce-cipher.c | 103