crypto/: remove unused functions
PATCH 1/1 crypto/: remove unused functions
This patch removes the following no longer used functions:
- api.c: crypto_alg_available()
- digest.c: crypto_digest_init()
- digest.c: crypto_digest_update()
- digest.c: crypto_digest_final()
- digest.c: crypto_digest_digest()
Signed-off-by Adrian Bunk <[email protected]>
---
crypto/api.c | 15 ------------ crypto/digest.c | 48 ----------------------------------------- include/linux/crypto.h | 22 ------------------ 3 files changed, 85 deletions(-)
include/linux/crypto.h renamed from include/linux/crypto.h.old +0 -22
@@ -241,12 +241,8 @@* Algorithm query interface. */ #ifdef CONFIG_CRYPTO -int crypto_alg_available(const char *name, u32 flags) - __deprecated_for_modules;int crypto_has_alg (const char *name,u32 type,u32 mask);#else -static int crypto_alg_available(const char *name, u32 flags) - __deprecated_for_modules;static inline int crypto_alg_available (const char *name,u32 flags) {return 0 ;
@@ -707,16 +703,6 @@ dst, src); } -void crypto_digest_init(struct crypto_tfm *tfm) __deprecated_for_modules; -void crypto_digest_update(struct crypto_tfm *tfm, - struct scatterlist *sg, unsigned int nsg) - __deprecated_for_modules; -void crypto_digest_final(struct crypto_tfm *tfm, u8 *out) - __deprecated_for_modules; -void crypto_digest_digest(struct crypto_tfm *tfm, - struct scatterlist *sg, unsigned int nsg, u8 *out) - __deprecated_for_modules; -static inline struct crypto_hash *__crypto_hash_cast (struct crypto_tfm *tfm) {return (struct crypto_hash *)tfm;
@@ -729,14 +715,6 @@return __crypto_hash_cast (tfm); } -static int crypto_digest_setkey (struct crypto_tfm *tfm,const u8 *key, -unsigned int keylen)__deprecated ; -static inline int crypto_digest_setkey (struct crypto_tfm *tfm, -const u8 *key,unsigned int keylen) -{ -return tfm->crt_hash.setkey (crypto_hash_cast (tfm), key, keylen); -} -static inline struct crypto_hash *crypto_alloc_hash (const char *alg_name,u32 type,u32 mask) {
crypto/api.c renamed from crypto/api.c.old +0 -15
@@ -466,23 +466,8 @@kfree (tfm); } -int crypto_alg_available (const char *name,u32 flags) -{ -int ret =0 ; -struct crypto_alg *alg =crypto_alg_mod_lookup (name,0 , -CRYPTO_ALG_ASYNC ); - -if (!IS_ERR (alg)) { -crypto_mod_put (alg); - ret =1 ; - } - -return ret; -} -EXPORT_SYMBOL_GPL (crypto_alloc_tfm);EXPORT_SYMBOL_GPL (crypto_free_tfm); -EXPORT_SYMBOL_GPL (crypto_alg_available);int crypto_has_alg (const char *name,u32 type,u32 mask) {
crypto/digest.c renamed from crypto/digest.c.old +0 -48
54 lines not on this page · raw message
Herbert Xu
maintainerQuoted 8 lines · Adrian Bunk
This patch removes the following no longer used functions:
-api.c:crypto_alg_available()
-digest.c:crypto_digest_init()
-digest.c:crypto_digest_update()
-digest.c:crypto_digest_final()
-digest.c:crypto_digest_digest()Signed-off-by Adrian Bunk <[email protected]>
Patch applied. Thanks Adrian.
Signature · 4 lines
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt