crypto: api - Add crypto_alloc_instance2
authorHerbert Xu <herbert@gondor.apana.org.au>
Tue, 7 Jul 2009 06:07:37 +0000 (14:07 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 7 Jul 2009 10:55:28 +0000 (18:55 +0800)
commit70ec7bb91ad0d6cce84c8e17f8cbb608dda7b18c
treef8423c8e2a51b42c78ea63913a9e3654877555ca
parentf2ac72e8268d9559c3114d5a22679f91f80a2238
crypto: api - Add crypto_alloc_instance2

This patch adds a new argument to crypto_alloc_instance which
sets aside some space before the instance for use by algorithms
such as shash that place type-specific data before crypto_alg.

For compatibility the function has been renamed so that existing
users aren't affected.

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