summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2015-05-23 09:41:57 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2015-05-25 12:41:32 +0200
commit374d4ad18a0c4bc844dee42b3b43916e5f46608d (patch)
tree5ed06f31f36a694f9f8706a309f117735b2f1f00 /include
parentcrypto: seqiv - Stop using cryptoff (diff)
downloadlinux-374d4ad18a0c4bc844dee42b3b43916e5f46608d.tar.xz
linux-374d4ad18a0c4bc844dee42b3b43916e5f46608d.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 'include')
-rw-r--r--include/crypto/aead.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/include/crypto/aead.h b/include/crypto/aead.h
index ba28c61e765f..94141dc1225e 100644
--- a/include/crypto/aead.h
+++ b/include/crypto/aead.h
@@ -52,7 +52,6 @@
* @base: Common attributes for async crypto requests
* @assoclen: Length in bytes of associated data for authentication
* @cryptlen: Length of data to be encrypted or decrypted
- * @cryptoff: Bytes to skip after AD before plain/cipher text
* @iv: Initialisation vector
* @assoc: Associated data
* @src: Source data
@@ -66,7 +65,6 @@ struct aead_request {
unsigned int assoclen;
unsigned int cryptlen;
- unsigned int cryptoff;
u8 *iv;
@@ -525,18 +523,15 @@ static inline void aead_request_set_assoc(struct aead_request *req,
* aead_request_set_ad - set associated data information
* @req: request handle
* @assoclen: number of bytes in associated data
- * @cryptoff: Number of bytes to skip after AD before plain/cipher text
*
* Setting the AD information. This function sets the length of
* the associated data and the number of bytes to skip after it to
* access the plain/cipher text.
*/
static inline void aead_request_set_ad(struct aead_request *req,
- unsigned int assoclen,
- unsigned int cryptoff)
+ unsigned int assoclen)
{
req->assoclen = assoclen;
- req->cryptoff = cryptoff;
req->old = false;
}