diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2016-01-23 13:51:01 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2016-01-25 22:42:12 +0800 |
commit | f2aefdab5dff83d3c801449051be1ba72c7e933a (patch) | |
tree | 167102bb66295086a223e47d4d4fc7a6ad3de3eb /crypto/internal.h | |
parent | 1aaa753d918c48c603195a468766e6a2b32b87f9 (diff) | |
download | talos-obmc-linux-f2aefdab5dff83d3c801449051be1ba72c7e933a.tar.gz talos-obmc-linux-f2aefdab5dff83d3c801449051be1ba72c7e933a.zip |
crypto: api - Add crypto_type_has_alg helper
This patch adds the helper crypto_type_has_alg which is meant
to replace crypto_has_alg for new-style crypto types. Rather
than hard-coding type/mask information they're now retrieved
from the crypto_type object.
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 00e42a3ed814..7eefcdb00227 100644 --- a/crypto/internal.h +++ b/crypto/internal.h @@ -104,6 +104,9 @@ int crypto_probing_notify(unsigned long val, void *v); unsigned int crypto_alg_extsize(struct crypto_alg *alg); +int crypto_type_has_alg(const char *name, const struct crypto_type *frontend, + u32 type, u32 mask); + static inline struct crypto_alg *crypto_alg_get(struct crypto_alg *alg) { atomic_inc(&alg->cra_refcnt); |