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 | 374d4ad18a0c4bc844dee42b3b43916e5f46608d (patch) | |
tree | 5ed06f31f36a694f9f8706a309f117735b2f1f00 /crypto/echainiv.c | |
parent | dd04446e48e859c913a395497ba1a289e707269a (diff) | |
download | op-kernel-dev-374d4ad18a0c4bc844dee42b3b43916e5f46608d.zip op-kernel-dev-374d4ad18a0c4bc844dee42b3b43916e5f46608d.tar.gz |
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 149d8fb..bd85dcc 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) |