From: Sage Weil Date: Mon, 2 Aug 2010 22:48:23 +0000 (-0700) Subject: ceph: move AES iv definition to shared header X-Git-Tag: upstream/snapshot3+hdmi~13120^2~25 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cbbfe499055f49c09210e04d9f88c2f483052384;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git ceph: move AES iv definition to shared header Signed-off-by: Sage Weil --- diff --git a/fs/ceph/ceph_fs.h b/fs/ceph/ceph_fs.h index bf7dea6..5bf4ec2 100644 --- a/fs/ceph/ceph_fs.h +++ b/fs/ceph/ceph_fs.h @@ -74,6 +74,8 @@ int ceph_file_layout_is_valid(const struct ceph_file_layout *layout); #define CEPH_CRYPTO_NONE 0x0 #define CEPH_CRYPTO_AES 0x1 +#define CEPH_AES_IV "cephsageyudagreg" + /* security/authentication protocols */ #define CEPH_AUTH_UNKNOWN 0x0 #define CEPH_AUTH_NONE 0x1 diff --git a/fs/ceph/crypto.c b/fs/ceph/crypto.c index c931827..a3e627f 100644 --- a/fs/ceph/crypto.c +++ b/fs/ceph/crypto.c @@ -75,7 +75,7 @@ static struct crypto_blkcipher *ceph_crypto_alloc_cipher(void) return crypto_alloc_blkcipher("cbc(aes)", 0, CRYPTO_ALG_ASYNC); } -static const u8 *aes_iv = "cephsageyudagreg"; +static const u8 *aes_iv = (u8 *)CEPH_AES_IV; static int ceph_aes_encrypt(const void *key, int key_len, void *dst, size_t *dst_len,