fscrypt: rename FS_KEY_DERIVATION_NONCE_SIZE
authorEric Biggers <ebiggers@google.com>
Wed, 8 Jul 2020 21:57:22 +0000 (14:57 -0700)
committerEric Biggers <ebiggers@google.com>
Tue, 21 Jul 2020 00:26:33 +0000 (17:26 -0700)
commit1d6217a4f9905917ee63315c8ea3d63833792f51
tree37cb1e743e5ae2c7b9fb063dcea047492c13a668
parente455de313ef8bd1fa05a3eb6ef1bfd96eaf38e2a
fscrypt: rename FS_KEY_DERIVATION_NONCE_SIZE

The name "FS_KEY_DERIVATION_NONCE_SIZE" is a bit outdated since due to
the addition of FSCRYPT_POLICY_FLAG_DIRECT_KEY, the file nonce may now
be used as a tweak instead of for key derivation.  Also, we're now
prefixing the fscrypt constants with "FSCRYPT_" instead of "FS_".

Therefore, rename this constant to FSCRYPT_FILE_NONCE_SIZE.

Link: https://lore.kernel.org/r/20200708215722.147154-1-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@google.com>
Documentation/filesystems/fscrypt.rst
fs/crypto/crypto.c
fs/crypto/fscrypt_private.h
fs/crypto/keysetup.c
fs/crypto/keysetup_v1.c
fs/crypto/policy.c