Re: [PATCH v4 02/46] fscrypt: add per-extent encryption support

Eric Biggers
2023-12-13T04:16:05Z

On Mon, Dec 04, 2023 at 07:58:20PM -0800, Eric Biggers wrote:
> > @@ -53,6 +55,28 @@ struct fscrypt_context_v2 {
> > u8 nonce[FSCRYPT_FILE_NONCE_SIZE];
> > };
>
> Hmm, I think we're going to want fscrypt_context => fscrypt_inode_context too...
> Also FSCRYPT_FILE_NONCE_SIZE => FSCRYPT_NONCE_SIZE. I guess don't worry about
> it for now, though.

Actually for the nonce size, I'm now thinking you should add a new constant
named FSCRYPT_EXTENT_NONCE_SIZE. It will have the same value as the file one,
but it's a logically separate thing.

- Eric