Re: [PATCH v8 1/2] crypto: AF_ALG: add AEAD support

2015-01-19 Thread Stephan Mueller
Am Dienstag, 20. Januar 2015, 14:00:17 schrieb Herbert Xu: Hi Herbert, >On Fri, Jan 09, 2015 at 04:30:45AM +0100, Stephan Mueller wrote: >> Am Donnerstag, 8. Januar 2015, 22:09:31 schrieb Herbert Xu: >> >> Hi Herbert, >> >> > On Wed, Jan 07, 2015 at 04:51:38PM +0100, Stephan Mueller wrote: >>

Re: [PATCH v8 1/2] crypto: AF_ALG: add AEAD support

2015-01-19 Thread Herbert Xu
On Fri, Jan 09, 2015 at 04:30:45AM +0100, Stephan Mueller wrote: > Am Donnerstag, 8. Januar 2015, 22:09:31 schrieb Herbert Xu: > > Hi Herbert, > > > On Wed, Jan 07, 2015 at 04:51:38PM +0100, Stephan Mueller wrote: > > > + if (!aead_writable(sk)) { > > > + /* > > > +

Re: [PATCH v8 1/2] crypto: AF_ALG: add AEAD support

2015-01-19 Thread Herbert Xu
On Fri, Jan 09, 2015 at 04:30:45AM +0100, Stephan Mueller wrote: Am Donnerstag, 8. Januar 2015, 22:09:31 schrieb Herbert Xu: Hi Herbert, On Wed, Jan 07, 2015 at 04:51:38PM +0100, Stephan Mueller wrote: + if (!aead_writable(sk)) { + /* + *

Re: [PATCH v8 1/2] crypto: AF_ALG: add AEAD support

2015-01-19 Thread Stephan Mueller
Am Dienstag, 20. Januar 2015, 14:00:17 schrieb Herbert Xu: Hi Herbert, On Fri, Jan 09, 2015 at 04:30:45AM +0100, Stephan Mueller wrote: Am Donnerstag, 8. Januar 2015, 22:09:31 schrieb Herbert Xu: Hi Herbert, On Wed, Jan 07, 2015 at 04:51:38PM +0100, Stephan Mueller wrote: +

Re: [PATCH v8 1/2] crypto: AF_ALG: add AEAD support

2015-01-08 Thread Stephan Mueller
Am Donnerstag, 8. Januar 2015, 22:09:31 schrieb Herbert Xu: Hi Herbert, > On Wed, Jan 07, 2015 at 04:51:38PM +0100, Stephan Mueller wrote: > > + if (!aead_writable(sk)) { > > + /* > > +* If there is more data to be expected, but we cannot > > +

Re: [PATCH v8 1/2] crypto: AF_ALG: add AEAD support

2015-01-08 Thread Herbert Xu
On Wed, Jan 07, 2015 at 04:51:38PM +0100, Stephan Mueller wrote: > > + if (!aead_writable(sk)) { > + /* > + * If there is more data to be expected, but we cannot > + * write more data, forcefully define that we do not > +

Re: [PATCH v8 1/2] crypto: AF_ALG: add AEAD support

2015-01-08 Thread Stephan Mueller
Am Donnerstag, 8. Januar 2015, 22:09:31 schrieb Herbert Xu: Hi Herbert, On Wed, Jan 07, 2015 at 04:51:38PM +0100, Stephan Mueller wrote: + if (!aead_writable(sk)) { + /* +* If there is more data to be expected, but we cannot +

Re: [PATCH v8 1/2] crypto: AF_ALG: add AEAD support

2015-01-08 Thread Herbert Xu
On Wed, Jan 07, 2015 at 04:51:38PM +0100, Stephan Mueller wrote: + if (!aead_writable(sk)) { + /* + * If there is more data to be expected, but we cannot + * write more data, forcefully define that we do not +

[PATCH v8 1/2] crypto: AF_ALG: add AEAD support

2015-01-07 Thread Stephan Mueller
This patch adds the AEAD support for AF_ALG. The implementation is based on algif_skcipher, but contains heavy modifications to streamline the interface for AEAD uses. To use AEAD, the user space consumer has to use the salg_type named "aead". The AEAD implementation includes some overhead to

[PATCH v8 1/2] crypto: AF_ALG: add AEAD support

2015-01-07 Thread Stephan Mueller
This patch adds the AEAD support for AF_ALG. The implementation is based on algif_skcipher, but contains heavy modifications to streamline the interface for AEAD uses. To use AEAD, the user space consumer has to use the salg_type named aead. The AEAD implementation includes some overhead to