[PATCH] crypto: aesni - make driver-gcm-aes-aesni helper a proper aead alg

2015-02-06 Thread Tadeusz Struk
Changed the __driver-gcm-aes-aesni to be a proper aead algorithm. This required a valid setkey and setauthsize functions to be added and also some changes to make sure that math context is not corrupted when the alg is used directly. Note that the __driver-gcm-aes-aesni should not be used directly

Re: [PATCH] crypto: aesni - make driver-gcm-aes-aesni helper a proper aead alg

2015-01-26 Thread Tadeusz Struk
On 01/26/2015 11:20 AM, Stephan Mueller wrote: >> > Here we have two instances of crypto_aead algorithm, one the >> > rfc4106(gcm(aes)), whose setkey points to rfc4106_set_key(), and the >> > internal helper __gcm-aes-aesni (wrapped in by the cryptd interface), >> > whose setkey points to common_rf

Re: [PATCH] crypto: aesni - make driver-gcm-aes-aesni helper a proper aead alg

2015-01-26 Thread Stephan Mueller
Am Montag, 26. Januar 2015, 08:58:33 schrieb Tadeusz Struk: Hi Tadeusz, > On 01/25/2015 04:10 PM, Herbert Xu wrote: > > On Sun, Jan 25, 2015 at 08:26:50AM -0800, Tadeusz Struk wrote: > >> > Hi Stephan, > >> > > >> > On 01/25/2015 12:58 AM, Stephan Mueller wrote: > > >> +static int rfc4106_s

Re: [PATCH] crypto: aesni - make driver-gcm-aes-aesni helper a proper aead alg

2015-01-26 Thread Tadeusz Struk
On 01/25/2015 04:10 PM, Herbert Xu wrote: > On Sun, Jan 25, 2015 at 08:26:50AM -0800, Tadeusz Struk wrote: >> > Hi Stephan, >> > On 01/25/2015 12:58 AM, Stephan Mueller wrote: > >> +static int rfc4106_set_key(struct crypto_aead *parent, const u8 *key, > > >> > + unsigne

Re: [PATCH] crypto: aesni - make driver-gcm-aes-aesni helper a proper aead alg

2015-01-25 Thread Herbert Xu
On Sun, Jan 25, 2015 at 08:26:50AM -0800, Tadeusz Struk wrote: > Hi Stephan, > On 01/25/2015 12:58 AM, Stephan Mueller wrote: > >> +static int rfc4106_set_key(struct crypto_aead *parent, const u8 *key, > >> > + unsigned int key_len) > >> > { > >> > struct aesni_r

Re: [PATCH] crypto: aesni - make driver-gcm-aes-aesni helper a proper aead alg

2015-01-25 Thread Tadeusz Struk
Hi Stephan, On 01/25/2015 12:58 AM, Stephan Mueller wrote: >> +static int rfc4106_set_key(struct crypto_aead *parent, const u8 *key, >> > + unsigned int key_len) >> > { >> >struct aesni_rfc4106_gcm_ctx *ctx = aesni_rfc4106_gcm_ctx_get(parent); >> >struct crypto_aead *cr

Re: [PATCH] crypto: aesni - make driver-gcm-aes-aesni helper a proper aead alg

2015-01-25 Thread Stephan Mueller
Am Freitag, 23. Januar 2015, 14:33:57 schrieb Tadeusz Struk: Hi Tadeusz, > Changed the __driver-gcm-aes-aesni to be a proper aead algorithm. > > Signed-off-by: Tadeusz Struk > --- > arch/x86/crypto/aesni-intel_glue.c | 53 > ++-- 1 file changed, 39 insertions(+

[PATCH] crypto: aesni - make driver-gcm-aes-aesni helper a proper aead alg

2015-01-23 Thread Tadeusz Struk
Changed the __driver-gcm-aes-aesni to be a proper aead algorithm. Signed-off-by: Tadeusz Struk --- arch/x86/crypto/aesni-intel_glue.c | 53 ++-- 1 file changed, 39 insertions(+), 14 deletions(-) diff --git a/arch/x86/crypto/aesni-intel_glue.c b/arch/x86/crypto