diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2016-02-01 08:36:54 -0500 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2016-02-06 02:33:20 -0500 |
commit | 896545098777564212b9e91af4c973f094649aa7 (patch) | |
tree | 980e96d4362f304e5ec39ddc1a343b2fed5c5234 /crypto/ahash.c | |
parent | 6dae10001e84253992142c7343fdae16a13f3d73 (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.c | 18 |
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 | } |
167 | EXPORT_SYMBOL_GPL(crypto_ahash_walk_first); | 167 | EXPORT_SYMBOL_GPL(crypto_ahash_walk_first); |
168 | 168 | ||
169 | int 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 | |||
187 | static int ahash_setkey_unaligned(struct crypto_ahash *tfm, const u8 *key, | 169 | static int ahash_setkey_unaligned(struct crypto_ahash *tfm, const u8 *key, |
188 | unsigned int keylen) | 170 | unsigned int keylen) |
189 | { | 171 | { |