diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2015-05-23 15:41:57 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2015-05-25 18:41:32 +0800 |
commit | 7cd298d06cad210c681a4c3f5d77ca6d173ebc4d (patch) | |
tree | 8fcd303953cb0b7d6339e45b80e0ce44628f995c /crypto/echainiv.c | |
parent | def24f45f10de2ac4faf9f3b9264edbf1adcc997 (diff) | |
download | linux-crypto-7cd298d06cad210c681a4c3f5d77ca6d173ebc4d.tar.gz linux-crypto-7cd298d06cad210c681a4c3f5d77ca6d173ebc4d.zip |
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 149d8fb8..bd85dcc4 100644 --- a/crypto/echainiv.c +++ b/crypto/echainiv.c @@ -259,7 +259,7 @@ static int echainiv_encrypt(struct aead_request *req) aead_request_set_callback(subreq, req->base.flags, compl, data); aead_request_set_crypt(subreq, req->dst, req->dst, req->cryptlen - ivsize, info); - aead_request_set_ad(subreq, req->assoclen + ivsize, 0); + aead_request_set_ad(subreq, req->assoclen + ivsize); crypto_xor(info, ctx->salt, ivsize); scatterwalk_map_and_copy(info, req->dst, req->assoclen, ivsize, 1); @@ -322,7 +322,7 @@ static int echainiv_decrypt(struct aead_request *req) aead_request_set_callback(subreq, req->base.flags, compl, data); aead_request_set_crypt(subreq, req->src, req->dst, req->cryptlen - ivsize, req->iv); - aead_request_set_ad(subreq, req->assoclen + ivsize, 0); + aead_request_set_ad(subreq, req->assoclen + ivsize); scatterwalk_map_and_copy(req->iv, req->src, req->assoclen, ivsize, 0); if (req->src != req->dst) |