From: Herbert Xu <herbert@gondor.apana.org.au>
To: Eric Biggers <ebiggers@kernel.org>
Cc: Mikulas Patocka <mpatocka@redhat.com>,
"David S. Miller" <davem@davemloft.net>,
linux-crypto@vger.kernel.org, dm-devel@lists.linux.dev
Subject: Re: A question about modifying the buffer under authenticated encryption
Date: Thu, 8 Feb 2024 12:40:39 +0800 [thread overview]
Message-ID: <ZcRbR+NaLLKsvscx@gondor.apana.org.au> (raw)
In-Reply-To: <20240208043610.GB85799@sol.localdomain>
On Wed, Feb 07, 2024 at 08:36:10PM -0800, Eric Biggers wrote:
>
> The crypto_aead API allows the source and destination to overlap, yes.
I would prefer to call it in-place rather than overlapping, because
the following is certainly not supported:
encrypt(src: A, dst: A + 16, len: 160)
Just in case someone gets any funny ideas about the API :)
Thanks,
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
prev parent reply other threads:[~2024-02-08 4:40 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-06 21:46 A question about modifying the buffer under authenticated encryption Mikulas Patocka
2024-02-07 0:47 ` Eric Biggers
2024-02-07 12:51 ` Mikulas Patocka
2024-02-08 3:42 ` Herbert Xu
2024-02-08 4:36 ` Eric Biggers
2024-02-08 4:40 ` Herbert Xu [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZcRbR+NaLLKsvscx@gondor.apana.org.au \
--to=herbert@gondor.apana.org.au \
--cc=davem@davemloft.net \
--cc=dm-devel@lists.linux.dev \
--cc=ebiggers@kernel.org \
--cc=linux-crypto@vger.kernel.org \
--cc=mpatocka@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox