crypto: algif_aead - fix comment regarding memory layout
authorStephan Mueller <smueller@chronox.de>
Wed, 9 Aug 2017 14:20:00 +0000 (16:20 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 22 Aug 2017 06:54:50 +0000 (14:54 +0800)
Signed-off-by: Stephan Mueller <smueller@chronox.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/algif_aead.c

index 48d46e7..516b38c 100644 (file)
@@ -201,11 +201,11 @@ static int _aead_recvmsg(struct socket *sock, struct msghdr *msg,
                 * Encryption operation - The in-place cipher operation is
                 * achieved by the following operation:
                 *
-                * TX SGL: AAD || PT || Tag
+                * TX SGL: AAD || PT
                 *          |      |
                 *          | copy |
                 *          v      v
-                * RX SGL: AAD || PT
+                * RX SGL: AAD || PT || Tag
                 */
                err = crypto_aead_copy_sgl(null_tfm, tsgl->sg,
                                           areq->first_rsgl.sgl.sg, processed);