History

fscrypt: Remove FSCRYPT_MODE_MAX

Now that the arrays of per-mode keys in struct fscrypt_master_key have been replaced by a linked list, the definition of FSCRYPT_MODE_MAX doesn't do anything useful. (Previously it was used to size these arrays.) Remove it.

Eric Biggers committed 4 months ago

Commit fa1517b1 parent 7ad19404 files · +0 −10Browse files

Showing the changes to tools/include/uapi (1 of 4 files). Show all

Unified · Split

tools/include/uapi/linux/fscrypt.h+0−1
@@ -30,7 +30,6 @@ · 29 unmodified lines
3030 #define FSCRYPT_MODE_SM4_CTS 8
3131 #define FSCRYPT_MODE_ADIANTUM 9
3232 #define FSCRYPT_MODE_AES_256_HCTR2 10
33−/* If adding a mode number > 10, update FSCRYPT_MODE_MAX in fscrypt_private.h */
3433
3534 /*
3635 * Legacy policy version; ad-hoc KDF and no key verification.