diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2015-05-23 03:41:57 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2015-05-25 06:41:32 -0400 |
commit | 374d4ad18a0c4bc844dee42b3b43916e5f46608d (patch) | |
tree | 5ed06f31f36a694f9f8706a309f117735b2f1f00 /crypto/echainiv.c | |
parent | dd04446e48e859c913a395497ba1a289e707269a (diff) |
crypto: aead - Remove unused cryptoff parameter
This patch removes the cryptoff parameter now that all users
set it to zero.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/echainiv.c')
-rw-r--r-- | crypto/echainiv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/echainiv.c b/crypto/echainiv.c index 149d8fb87962..bd85dcc4fa3d 100644 --- a/crypto/echainiv.c +++ b/crypto/echainiv.c | |||
@@ -259,7 +259,7 @@ static int echainiv_encrypt(struct aead_request *req) | |||
259 | aead_request_set_callback(subreq, req->base.flags, compl, data); | 259 | aead_request_set_callback(subreq, req->base.flags, compl, data); |
260 | aead_request_set_crypt(subreq, req->dst, req->dst, | 260 | aead_request_set_crypt(subreq, req->dst, req->dst, |
261 | req->cryptlen - ivsize, info); | 261 | req->cryptlen - ivsize, info); |
262 | aead_request_set_ad(subreq, req->assoclen + ivsize, 0); | 262 | aead_request_set_ad(subreq, req->assoclen + ivsize); |
263 | 263 | ||
264 | crypto_xor(info, ctx->salt, ivsize); | 264 | crypto_xor(info, ctx->salt, ivsize); |
265 | scatterwalk_map_and_copy(info, req->dst, req->assoclen, ivsize, 1); | 265 | scatterwalk_map_and_copy(info, req->dst, req->assoclen, ivsize, 1); |
@@ -322,7 +322,7 @@ static int echainiv_decrypt(struct aead_request *req) | |||
322 | aead_request_set_callback(subreq, req->base.flags, compl, data); | 322 | aead_request_set_callback(subreq, req->base.flags, compl, data); |
323 | aead_request_set_crypt(subreq, req->src, req->dst, | 323 | aead_request_set_crypt(subreq, req->src, req->dst, |
324 | req->cryptlen - ivsize, req->iv); | 324 | req->cryptlen - ivsize, req->iv); |
325 | aead_request_set_ad(subreq, req->assoclen + ivsize, 0); | 325 | aead_request_set_ad(subreq, req->assoclen + ivsize); |
326 | 326 | ||
327 | scatterwalk_map_and_copy(req->iv, req->src, req->assoclen, ivsize, 0); | 327 | scatterwalk_map_and_copy(req->iv, req->src, req->assoclen, ivsize, 0); |
328 | if (req->src != req->dst) | 328 | if (req->src != req->dst) |