crypto: api - Add new template create function
authorHerbert Xu <herbert@gondor.apana.org.au>
Tue, 7 Jul 2009 04:30:33 +0000 (12:30 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 7 Jul 2009 04:30:33 +0000 (12:30 +0800)
commitf2ac72e8268d9559c3114d5a22679f91f80a2238
treee52b3b65b62b48f8a77c9a522d9e55f04bcf6259
parentfd09d7facb7cf3a884979eb5f843338ce1ce9b43
crypto: api - Add new template create function

This patch introduces the template->create function intended
to replace the existing alloc function.  The intention is for
create to handle the registration directly, whereas currently
the caller of alloc has to handle the registration.

This allows type-specific code to be run prior to registration.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/algboss.c
include/crypto/algapi.h