linux-crypto.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* A question about modifying the buffer under authenticated encryption
@ 2024-02-06 21:46 Mikulas Patocka
  2024-02-07  0:47 ` Eric Biggers
  0 siblings, 1 reply; 6+ messages in thread
From: Mikulas Patocka @ 2024-02-06 21:46 UTC (permalink / raw)
  To: Herbert Xu, David S. Miller; +Cc: linux-crypto, dm-devel

Hi

I'm trying to fix some problems in dm-crypt that it may report 
authentication failures when the user reads data with O_DIRECT and 
modifies the read buffer while it is being read.

I'd like to ask you:

1. If the authenticated encryption encrypts a message, reading from 
   buffer1 and writing to buffer2 - and buffer1 changes while reading from 
   it - is it possible that it generates invalid authentication tag?

2. If the authenticated encryption decrypts a message, reading from 
   buffer1 and writing to buffer2 - and buffer2 changes while writing to 
   it - is is possible that it reports authentication tag mismatch?

Mikulas


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-02-08  4:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).