Re: [RFC] [PATCH 0/7] IPsec: convert to ahash

2009-07-17 Thread Steffen Klassert
On Thu, Jul 16, 2009 at 11:46:14PM +0800, Herbert Xu wrote: > > My suggestion would be to optimise for the common case, where > assoc is a single-entry list. So just put some space aside in > the request context for a two-entry sg list and copy the assoc > sg entry into it and chain it with the r

[PATCH] crypto: authenc - convert to ahash

2009-07-17 Thread Steffen Klassert
This patch converts authenc to the new ahash interface. Signed-off-by: Steffen Klassert --- crypto/authenc.c | 217 ++ 1 files changed, 152 insertions(+), 65 deletions(-) diff --git a/crypto/authenc.c b/crypto/authenc.c index 2e16ce0..dec62ce

Re: [RFC] [PATCH 2/7] crypto: authenc - convert to ahash

2009-07-17 Thread David Miller
From: Steffen Klassert Date: Thu, 16 Jul 2009 13:17:47 +0200 > + /* > + * head must be a scatterlist with two entries. > + * We remove a potentially set termination bit > + * on the first enty. > + */ > + head->page_link &= ~0x02; > + > if (chain) { >