diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2009-07-08 05:53:16 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2009-07-08 06:58:29 -0400 |
commit | d06854f0243d91badabaab14503f7f3bb770061d (patch) | |
tree | 252603fecb02a8cc4933b0e582444ff7cb504018 /crypto/internal.h | |
parent | 942969992d86330c9700e2cd9afe8a6bea42df78 (diff) |
crypto: api - Add crypto_attr_alg2 helper
This patch adds the helper crypto_attr_alg2 which is similar to
crypto_attr_alg but takes an extra frontend argument. This is
intended to be used by new style algorithm types such as shash.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/internal.h')
-rw-r--r-- | crypto/internal.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crypto/internal.h b/crypto/internal.h index 95baaea21fbc..7efa4d0533ff 100644 --- a/crypto/internal.h +++ b/crypto/internal.h | |||
@@ -106,6 +106,9 @@ struct crypto_tfm *__crypto_alloc_tfm(struct crypto_alg *alg, u32 type, | |||
106 | u32 mask); | 106 | u32 mask); |
107 | void *crypto_create_tfm(struct crypto_alg *alg, | 107 | void *crypto_create_tfm(struct crypto_alg *alg, |
108 | const struct crypto_type *frontend); | 108 | const struct crypto_type *frontend); |
109 | struct crypto_alg *crypto_find_alg(const char *alg_name, | ||
110 | const struct crypto_type *frontend, | ||
111 | u32 type, u32 mask); | ||
109 | void *crypto_alloc_tfm(const char *alg_name, | 112 | void *crypto_alloc_tfm(const char *alg_name, |
110 | const struct crypto_type *frontend, u32 type, u32 mask); | 113 | const struct crypto_type *frontend, u32 type, u32 mask); |
111 | 114 | ||