summaryrefslogtreecommitdiff
path: root/scripts/selinux
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2018-05-01 01:51:49 +0300
committerTheodore Ts'o <tytso@mit.edu>2018-05-20 23:21:05 +0300
commit646b7d4f2c0ce2b6487c10c1a363727d6f4552ef (patch)
tree1ebc14db33fb6c9b61cb44b42213cd0f936dffe8 /scripts/selinux
parent590f497d08eeae883a4fc2dd938c89520ac139fd (diff)
downloadlinux-646b7d4f2c0ce2b6487c10c1a363727d6f4552ef.tar.xz
fscrypt: only derive the needed portion of the key
Currently the key derivation function in fscrypt uses the master key length as the amount of output key material to derive. This works, but it means we can waste time deriving more key material than is actually used, e.g. most commonly, deriving 64 bytes for directories which only take a 32-byte AES-256-CTS-CBC key. It also forces us to validate that the master key length is a multiple of AES_BLOCK_SIZE, which wouldn't otherwise be necessary. Fix it to only derive the needed length key. Signed-off-by: Eric Biggers <ebiggers@google.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'scripts/selinux')
0 files changed, 0 insertions, 0 deletions