Commit a71e7dca authored by Eric Biggers's avatar Eric Biggers Committed by Gerrit - the friendly Code Review server
Browse files

fscrypt: add IV_INO_LBLK_32 support for FS_ENCRYPTION_MODE_PRIVATE



With FS_ENCRYPTION_MODE_PRIVATE (AES-256-XTS inline encryption), add
support for the IV_INO_LBLK_32 IV generation method which adds the
SipHash of the inode number to the file logical block number mod 2^32.
The SipHash key is computed as SHA-256(master_key).

Conflicts:
       fs/crypto/fscrypt_private.h
       fs/crypto/keyinfo.c

Change-Id: I655e1ac45559d1f327da034b1b64ce55b9ac1597
Signed-off-by: default avatarEric Biggers <ebiggers@google.com>
[neersoni@codeaurora.org: Use first 32 bytes of wrapped master key in sip hash
and fix compilation errors]
Signed-off-by: default avatarNeeraj Soni <neersoni@codeaurora.org>
[vagrawa@codeaurora.org: fix merge conflicts in files fs/crypto/keyinfo.c
and fs/crypto/fscrypt_private.h]
Signed-off-by: default avatarVaibhav Agrawal <vagrawa@codeaurora.org>
parent cd8777fa
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment