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 include/uapi (1 of 4 files). Show all

Unified · Split

include/uapi/linux/fscrypt.h+0−1
@@ -30,7 +30,6 @@ · 29 unmodified lines
30#define FSCRYPT_MODE_SM4_CTS 830#define FSCRYPT_MODE_SM4_CTS 8
31#define FSCRYPT_MODE_ADIANTUM 931#define FSCRYPT_MODE_ADIANTUM 9
32#define FSCRYPT_MODE_AES_256_HCTR2 1032#define FSCRYPT_MODE_AES_256_HCTR2 10
33/* If adding a mode number > 10, update FSCRYPT_MODE_MAX in fscrypt_private.h */
34 33
35/*34/*
36 * Legacy policy version; ad-hoc KDF and no key verification.35 * Legacy policy version; ad-hoc KDF and no key verification.