diff options
| author | Rodrigo Vivi <[email protected]> | 2018-07-23 09:13:12 -0700 | 
|---|---|---|
| committer | Rodrigo Vivi <[email protected]> | 2018-07-23 09:13:12 -0700 | 
| commit | c74a7469f97c0f40b46e82ee979f9fb1bb6e847c (patch) | |
| tree | f2690a1a916b73ef94657fbf0e0141ae57701825 /fs/crypto/fscrypt_private.h | |
| parent | 6f15a7de86c8cf2dc09fc9e6d07047efa40ef809 (diff) | |
| parent | 500775074f88d9cf5416bed2ca19592812d62c41 (diff) | |
Merge drm/drm-next into drm-intel-next-queued
We need a backmerge to get DP_DPCD_REV_14 before we push other
i915 changes to dinq that could break compilation.
Signed-off-by: Rodrigo Vivi <[email protected]>
Diffstat (limited to 'fs/crypto/fscrypt_private.h')
| -rw-r--r-- | fs/crypto/fscrypt_private.h | 24 | 
1 files changed, 14 insertions, 10 deletions
| diff --git a/fs/crypto/fscrypt_private.h b/fs/crypto/fscrypt_private.h index ad6722bae8b7..39c20ef26db4 100644 --- a/fs/crypto/fscrypt_private.h +++ b/fs/crypto/fscrypt_private.h @@ -18,15 +18,7 @@  /* Encryption parameters */  #define FS_IV_SIZE			16 -#define FS_AES_128_ECB_KEY_SIZE		16 -#define FS_AES_128_CBC_KEY_SIZE		16 -#define FS_AES_128_CTS_KEY_SIZE		16 -#define FS_AES_256_GCM_KEY_SIZE		32 -#define FS_AES_256_CBC_KEY_SIZE		32 -#define FS_AES_256_CTS_KEY_SIZE		32 -#define FS_AES_256_XTS_KEY_SIZE		64 - -#define FS_KEY_DERIVATION_NONCE_SIZE		16 +#define FS_KEY_DERIVATION_NONCE_SIZE	16  /**   * Encryption context for inode @@ -91,13 +83,16 @@ static inline bool fscrypt_valid_enc_modes(u32 contents_mode,  	    filenames_mode == FS_ENCRYPTION_MODE_AES_256_CTS)  		return true; +	if (contents_mode == FS_ENCRYPTION_MODE_SPECK128_256_XTS && +	    filenames_mode == FS_ENCRYPTION_MODE_SPECK128_256_CTS) +		return true; +  	return false;  }  /* crypto.c */  extern struct kmem_cache *fscrypt_info_cachep;  extern int fscrypt_initialize(unsigned int cop_flags); -extern struct workqueue_struct *fscrypt_read_workqueue;  extern int fscrypt_do_page_crypto(const struct inode *inode,  				  fscrypt_direction_t rw, u64 lblk_num,  				  struct page *src_page, @@ -106,6 +101,15 @@ extern int fscrypt_do_page_crypto(const struct inode *inode,  				  gfp_t gfp_flags);  extern struct page *fscrypt_alloc_bounce_page(struct fscrypt_ctx *ctx,  					      gfp_t gfp_flags); +extern const struct dentry_operations fscrypt_d_ops; + +extern void __printf(3, 4) __cold +fscrypt_msg(struct super_block *sb, const char *level, const char *fmt, ...); + +#define fscrypt_warn(sb, fmt, ...)		\ +	fscrypt_msg(sb, KERN_WARNING, fmt, ##__VA_ARGS__) +#define fscrypt_err(sb, fmt, ...)		\ +	fscrypt_msg(sb, KERN_ERR, fmt, ##__VA_ARGS__)  /* fname.c */  extern int fname_encrypt(struct inode *inode, const struct qstr *iname, |