[CRYPTO] templates: Pass type/mask when creating instances
commitebc610e5bc76df073221e64e86c3f7533a09ea40
authorHerbert Xu <herbert@gondor.apana.org.au>
Mon, 1 Jan 2007 07:37:02 +0000 (1 18:37 +1100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 2 May 2007 04:38:31 +0000 (2 14:38 +1000)
treed53f4fa3da412f6df4b5891e23ca7c7607a3a5ce
parent6158efc09016d3186263f6fd3a50667446ec4008
[CRYPTO] templates: Pass type/mask when creating instances

This patch passes the type/mask along when constructing instances of
templates.  This is in preparation for templates that may support
multiple types of instances depending on what is requested.  For example,
the planned software async crypto driver will use this construct.

For the moment this allows us to check whether the instance constructed
is of the correct type and avoid returning success if the type does not
match.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/algapi.c
crypto/cbc.c
crypto/cryptomgr.c
crypto/ecb.c
crypto/hmac.c
crypto/lrw.c
crypto/pcbc.c
crypto/xcbc.c
include/crypto/algapi.h
include/linux/crypto.h