Re: [PATCH RFC 4/4] fscrypt: Add new encryption policy for btrfs.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: Sweet Tea Dorminy <sweettea-kernel@xxxxxxxxxx>
- Subject: Re: [PATCH RFC 4/4] fscrypt: Add new encryption policy for btrfs.
- From: David Sterba <dsterba@xxxxxxx>
- Date: Tue, 26 Jul 2022 19:45:38 +0200
- In-reply-to: <7130dd3f-202c-2e70-c37f-57be9b85548b@dorminy.me>
- Mail-followup-to: dsterba@xxxxxxx, Sweet Tea Dorminy <sweettea-kernel@xxxxxxxxxx>, Eric Biggers <ebiggers@xxxxxxxxxx>, "Theodore Y . Ts'o" <tytso@xxxxxxx>, Jaegeuk Kim <jaegeuk@xxxxxxxxxx>, linux-fscrypt@xxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, linux-btrfs@xxxxxxxxxxxxxxx, osandov@xxxxxxxxxxx, kernel-team@xxxxxx
- References: <cover.1658623235.git.sweettea-kernel@dorminy.me> <675dd03f1a4498b09925fbf93cc38b8430cb7a59.1658623235.git.sweettea-kernel@dorminy.me> <Yt8oEiN6AkglKfIc@sol.localdomain> <7130dd3f-202c-2e70-c37f-57be9b85548b@dorminy.me>
- User-agent: Mutt/1.5.23.1-rc1 (2014-03-12)
On Mon, Jul 25, 2022 at 10:16:07PM -0400, Sweet Tea Dorminy wrote:
> On 7/25/22 19:32, Eric Biggers wrote:
> > On Sat, Jul 23, 2022 at 08:52:28PM -0400, Sweet Tea Dorminy wrote:
> > Given that this new proposal uses per-block metadata, has
> > support for authenticated encryption been considered? Has space been reserved
> > in the per-block metadata for authentication tags so that authenticated
> > encryption support could be added later even if it's not in the initial version?
>
> I don't know sufficiently much about authenticated encryption to have
> considered it. As currently drafted, btrfs encrypts before checksumming
> if checksums are enabled, and checks against checksums before
> decrypting. Although at present we haven't discussed authentication
> tags, btrfs could store them in a separate itemtype which could be added
> at any time, much as we currently store fsverity data. We do have
> sufficient room saved for adding other encryption types, if necessary;
> we could use some of that to indicate the existence of authentication
> tags for the extents' data.
The AEAD tag can be used in place of checksum (also stored in the
checksum item).
[Index of Archives]
[linux Cryptography]
[Asterisk App Development]
[PJ SIP]
[Gnu Gatekeeper]
[IETF Sipping]
[Info Cyrus]
[ALSA User]
[Fedora Linux Users]
[Linux SCTP]
[DCCP]
[Gimp]
[Yosemite News]
[Deep Creek Hot Springs]
[Yosemite Campsites]
[ISDN Cause Codes]