n2_crypto: Plumb fallback ahash requests properly.
authorDavid S. Miller <davem@davemloft.net>
Sat, 22 May 2010 08:09:04 +0000 (01:09 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 May 2010 00:37:15 +0000 (17:37 -0700)
commitc9aa55e5271a53d28e93fa58759d318b403c15ba
treea6726466da33e2be0ed943beb5cb2c9dc3ca146c
parent527b9525256f97ad8d092bbfc8fdc3c5409f4a4d
n2_crypto: Plumb fallback ahash requests properly.

Do this by putting the async fallback request at the end of an n2
specific ahash request context, then properly adjusting the request
private size in our ahash ->cra_init().

We also need to put the writable state bits into the n2 request
private instead of the n2 cra_ctx.

With help from Herbert Xu.

Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/crypto/n2_core.c