diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2015-04-20 07:39:00 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2015-04-21 04:19:54 +0200 |
commit | 38d21433112c25acdb8e93f60be629e7a1c27a26 (patch) | |
tree | 6181b6526feb9f200389026477499ebcc28e6c7c /crypto/internal.h | |
parent | crypto: drbg - Do not seed RNG in drbg_kcapi_init (diff) | |
download | linux-38d21433112c25acdb8e93f60be629e7a1c27a26.tar.xz linux-38d21433112c25acdb8e93f60be629e7a1c27a26.zip |
crypto: api - Add crypto_alg_extsize helper
This patch adds a crypto_alg_extsize helper that can be used
by algorithm types such as pcompress and shash.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/internal.h')
-rw-r--r-- | crypto/internal.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/internal.h b/crypto/internal.h index bd39bfc92eab..ed7a70c6dbc1 100644 --- a/crypto/internal.h +++ b/crypto/internal.h @@ -103,6 +103,8 @@ int crypto_register_notifier(struct notifier_block *nb); int crypto_unregister_notifier(struct notifier_block *nb); int crypto_probing_notify(unsigned long val, void *v); +unsigned int crypto_alg_extsize(struct crypto_alg *alg); + static inline struct crypto_alg *crypto_alg_get(struct crypto_alg *alg) { atomic_inc(&alg->cra_refcnt); |