summaryrefslogtreecommitdiffstats
path: root/crypto/ahash.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2016-02-01 08:36:54 -0500
committerHerbert Xu <herbert@gondor.apana.org.au>2016-02-06 02:33:20 -0500
commit896545098777564212b9e91af4c973f094649aa7 (patch)
tree980e96d4362f304e5ec39ddc1a343b2fed5c5234 /crypto/ahash.c
parent6dae10001e84253992142c7343fdae16a13f3d73 (diff)
crypto: hash - Remove crypto_hash interface
This patch removes all traces of the crypto_hash interface, now that everyone has switched over to shash or ahash. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/ahash.c')
-rw-r--r--crypto/ahash.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/crypto/ahash.c b/crypto/ahash.c
index 8b08a59221a6..5fc1f172963d 100644
--- a/crypto/ahash.c
+++ b/crypto/ahash.c
@@ -166,24 +166,6 @@ int crypto_ahash_walk_first(struct ahash_request *req,
166} 166}
167EXPORT_SYMBOL_GPL(crypto_ahash_walk_first); 167EXPORT_SYMBOL_GPL(crypto_ahash_walk_first);
168 168
169int crypto_hash_walk_first_compat(struct hash_desc *hdesc,
170 struct crypto_hash_walk *walk,
171 struct scatterlist *sg, unsigned int len)
172{
173 walk->total = len;
174
175 if (!walk->total) {
176 walk->entrylen = 0;
177 return 0;
178 }
179
180 walk->alignmask = crypto_hash_alignmask(hdesc->tfm);
181 walk->sg = sg;
182 walk->flags = hdesc->flags & CRYPTO_TFM_REQ_MASK;
183
184 return hash_walk_new_entry(walk);
185}
186
187static int ahash_setkey_unaligned(struct crypto_ahash *tfm, const u8 *key, 169static int ahash_setkey_unaligned(struct crypto_ahash *tfm, const u8 *key,
188 unsigned int keylen) 170 unsigned int keylen)
189{ 171{