From: Michael Halcrow Date: Sun, 12 Apr 2015 04:43:56 +0000 (-0400) Subject: ext4 crypto: add ext4 encryption facilities X-Git-Tag: omap-for-v4.1/fixes-rc1~89^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b30ab0e03407d2aa2d9316cba199c757e4bfc8ad;p=pandora-kernel.git ext4 crypto: add ext4 encryption facilities On encrypt, we will re-assign the buffer_heads to point to a bounce page rather than the control_page (which is the original page to write that contains the plaintext). The block I/O occurs against the bounce page. On write completion, we re-assign the buffer_heads to the original plaintext page. On decrypt, we will attach a read completion callback to the bio struct. This read completion will decrypt the read contents in-place prior to setting the page up-to-date. The current encryption mode, AES-256-XTS, lacks cryptographic integrity. AES-256-GCM is in-plan, but we will need to devise a mechanism for handling the integrity data. Signed-off-by: Michael Halcrow Signed-off-by: Ildar Muslukhov Signed-off-by: Theodore Ts'o --- Reading git-diff-tree failed