summaryrefslogtreecommitdiffstats
path: root/include/crypto
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2015-05-23 03:41:57 -0400
committerHerbert Xu <herbert@gondor.apana.org.au>2015-05-25 06:41:32 -0400
commit374d4ad18a0c4bc844dee42b3b43916e5f46608d (patch)
tree5ed06f31f36a694f9f8706a309f117735b2f1f00 /include/crypto
parentdd04446e48e859c913a395497ba1a289e707269a (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 'include/crypto')
-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 @@
52 * @base: Common attributes for async crypto requests 52 * @base: Common attributes for async crypto requests
53 * @assoclen: Length in bytes of associated data for authentication 53 * @assoclen: Length in bytes of associated data for authentication
54 * @cryptlen: Length of data to be encrypted or decrypted 54 * @cryptlen: Length of data to be encrypted or decrypted
55 * @cryptoff: Bytes to skip after AD before plain/cipher text
56 * @iv: Initialisation vector 55 * @iv: Initialisation vector
57 * @assoc: Associated data 56 * @assoc: Associated data
58 * @src: Source data 57 * @src: Source data
@@ -66,7 +65,6 @@ struct aead_request {
66 65
67 unsigned int assoclen; 66 unsigned int assoclen;
68 unsigned int cryptlen; 67 unsigned int cryptlen;
69 unsigned int cryptoff;
70 68
71 u8 *iv; 69 u8 *iv;
72 70
@@ -525,18 +523,15 @@ static inline void aead_request_set_assoc(struct aead_request *req,
525 * aead_request_set_ad - set associated data information 523 * aead_request_set_ad - set associated data information
526 * @req: request handle 524 * @req: request handle
527 * @assoclen: number of bytes in associated data 525 * @assoclen: number of bytes in associated data
528 * @cryptoff: Number of bytes to skip after AD before plain/cipher text
529 * 526 *
530 * Setting the AD information. This function sets the length of 527 * Setting the AD information. This function sets the length of
531 * the associated data and the number of bytes to skip after it to 528 * the associated data and the number of bytes to skip after it to
532 * access the plain/cipher text. 529 * access the plain/cipher text.
533 */ 530 */
534static inline void aead_request_set_ad(struct aead_request *req, 531static inline void aead_request_set_ad(struct aead_request *req,
535 unsigned int assoclen, 532 unsigned int assoclen)
536 unsigned int cryptoff)
537{ 533{
538 req->assoclen = assoclen; 534 req->assoclen = assoclen;
539 req->cryptoff = cryptoff;
540 req->old = false; 535 req->old = false;
541} 536}
542 537