[CRYPTO] api: Add common instance initialisation code
authorHerbert Xu <herbert@gondor.apana.org.au>
Sun, 6 Aug 2006 13:10:45 +0000 (23:10 +1000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 21 Sep 2006 01:41:04 +0000 (11:41 +1000)
commit7fed0bf271b374be4c98a5880faed4b1128e78e9
tree29a1244ed286c500bf64afcef0c571e771ed0cd5
parentdf89820ebd5bbf4f3c6b5f8ee7d9e983107f6a91
[CRYPTO] api: Add common instance initialisation code

This patch adds the helpers crypto_get_attr_alg and crypto_alloc_instance
which can be used by simple one-argument templates like hmac to process
input parameters and allocate instances.

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