eCryptfs: Change the type of cipher_code from u16 to u8.
Only the lower byte of cipher_code is ever used, so it makes sense
for its type to be u8.
Signed-off-by: Trevor Highland <[EMAIL PROTECTED]>
---
fs/ecryptfs/crypto.c |8
fs/ecryptfs/ecryptfs_kernel.h |4 ++
eCryptfs: Load each file decryption key only once
There is no need to keep re-setting the same key for any given
eCryptfs inode. This patch optimizes the use of the crypto API and
helps performance a bit.
Signed-off-by: Trevor Highland <[EMAIL PROTECTED]>
---
fs/ecryptfs/crypto.c
Change the type of cipher_code from u16 to u8.
Signed-off-by: Trevor Highland <[EMAIL PROTECTED]>
---
fs/ecryptfs/crypto.c |8
fs/ecryptfs/ecryptfs_kernel.h |4 ++--
fs/ecryptfs/keystore.c|8
3 files changed, 10 insertions(+), 10 deletions(-)
Load each file decryption key only once
Signed-off-by: Trevor Highland <[EMAIL PROTECTED]>
---
fs/ecryptfs/crypto.c |9 +
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/fs/ecryptfs/crypto.c b/fs/ecryptfs/crypto.c
index 70f7aab..949fe44 100644
--- a/fs/ec
Only one byte of cipher_code is being written to the file header so it
should be of type u8.
Trevor
0001-Change-the-type-of-cipher_code-from-u16-to-u8.txt
Description: application/mbox
There is no need to set the decryption key every time eCryptfs decrypts
an extent.
Trevor
0001-eCryptfs-Load-each-file-decryption-key-only-once.patch
Description: application/mbox
6 matches
Mail list logo