crypto: api - crypto_alg_mod_lookup either tested or untested
authorHerbert Xu <herbert@gondor.apana.org.au>
Tue, 17 Feb 2009 12:18:34 +0000 (20:18 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 18 Feb 2009 08:49:43 +0000 (16:49 +0800)
commitff753308d2f70f210ba468492cd9a01274d9d7ce
treee94719f65cfa3a52b36725b7115e4666d108d8dc
parent049359d655277c382683a6030ae0bac485568ffc
crypto: api - crypto_alg_mod_lookup either tested or untested

As it stands crypto_alg_mod_lookup will search either tested or
untested algorithms, but never both at the same time.  However,
we need exactly that when constructing givcipher and aead so
this patch adds support for that by setting the tested bit in
type but clearing it in mask.  This combination is currently
unused.

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