I'm trying to understand e4crypt and fscrypt, and also how they differ. But it is hard to find documentation on e4crypt other than the command line tool man page and some old tutorials.
Is there any documentation on how the kernel side of things work?
I'm mainly interested in the higher level stuff: what is stored where?
The applicable policy and crypto options/algorithm need to be stored somewhere. (In the inode? extended atributes? Of every file or just the root encrypted directory?)
Also the fscrypt documentation says fscrypt is a kernel-level library that filesystems can use to implement encryption. Does that mean that e4crypt encryption has a separate implementation or do they use the same implementation for the low level encryption stuff?