[CRYPTO] api: Added cra_init/cra_exit
authorHerbert Xu <herbert@gondor.apana.org.au>
Wed, 24 May 2006 03:02:26 +0000 (13:02 +1000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 26 Jun 2006 07:34:40 +0000 (17:34 +1000)
commitc7fc05992afcf1d63d6d5fb6142c8d39094dbca9
tree201d72844c0b27269e34bf3172d579b9e556e10c
parent110bf1c0e932615cbe43a8af8a07bc3750ae4295
[CRYPTO] api: Added cra_init/cra_exit

This patch adds the hooks cra_init/cra_exit which are called during a tfm's
construction and destruction respectively.  This will be used by the instances
to allocate child tfm's.

For now this lets us get rid of the coa_init/coa_exit functions which are
used for exactly that purpose (unlike the dia_init function which is called
for each transaction).

In fact the coa_exit path is currently buggy as it may get called twice
when an error is encountered during initialisation.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/api.c
crypto/compress.c
crypto/deflate.c
include/linux/crypto.h