summaryrefslogtreecommitdiff
path: root/fs/f2fs/f2fs_crypto.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/f2fs/f2fs_crypto.h')
-rw-r--r--fs/f2fs/f2fs_crypto.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/f2fs/f2fs_crypto.h b/fs/f2fs/f2fs_crypto.h
index 3323266e7e2b..6e4139493ba5 100644
--- a/fs/f2fs/f2fs_crypto.h
+++ b/fs/f2fs/f2fs_crypto.h
@@ -65,6 +65,9 @@ struct f2fs_encryption_context {
#define F2FS_AES_256_XTS_KEY_SIZE 64
#define F2FS_MAX_KEY_SIZE 64
+#define F2FS_KEY_DESC_PREFIX "f2fs:"
+#define F2FS_KEY_DESC_PREFIX_SIZE 5
+
struct f2fs_encryption_key {
__u32 mode;
char raw[F2FS_MAX_KEY_SIZE];