]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - crypto/algif_aead.c
xfrm: state: simplify rcu_read_unlock handling in two spots
[mirror_ubuntu-artful-kernel.git] / crypto / algif_aead.c
index 668ef402c6eb5098eeeb1c2cdec58ec1dfe170d0..f849311e9fd4c94e57d81ba97279ec5fb0cb0ded 100644 (file)
@@ -556,18 +556,8 @@ static int aead_recvmsg_sync(struct socket *sock, struct msghdr *msg, int flags)
        lock_sock(sk);
 
        /*
-        * AEAD memory structure: For encryption, the tag is appended to the
-        * ciphertext which implies that the memory allocated for the ciphertext
-        * must be increased by the tag length. For decryption, the tag
-        * is expected to be concatenated to the ciphertext. The plaintext
-        * therefore has a memory size of the ciphertext minus the tag length.
-        *
-        * The memory structure for cipher operation has the following
-        * structure:
-        *      AEAD encryption input:  assoc data || plaintext
-        *      AEAD encryption output: cipherntext || auth tag
-        *      AEAD decryption input:  assoc data || ciphertext || auth tag
-        *      AEAD decryption output: plaintext
+        * Please see documentation of aead_request_set_crypt for the
+        * description of the AEAD memory structure expected from the caller.
         */
 
        if (ctx->more) {