Home
last modified time | relevance | path

Searched hist:"9 c6043f41222b448a314b0b8370f33b579f777ea" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/fs/ecryptfs/
H A Dcrypto.cdiff 9c6043f41222b448a314b0b8370f33b579f777ea Sat Apr 06 02:41:48 CDT 2013 Tyler Hicks <tyhicks@canonical.com> eCryptfs: Decrypt pages in-place

When reading in a page, eCryptfs would allocate a helper page, fill it
with encrypted data from the lower filesytem, and then decrypt the data
from the encrypted page and store the result in the eCryptfs page cache
page.

The crypto API supports in-place crypto operations which means that the
allocation of the helper page is unnecessary when decrypting. This patch
gets rid of the unneeded page allocation by reading encrypted data from
the lower filesystem directly into the page cache page. The page cache
page is then decrypted in-place.

Signed-off-by: Tyler Hicks <tyhicks@canonical.com>