projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
73a7e69
)
ceph: move AES iv definition to shared header
author
Sage Weil
<sage@newdream.net>
Mon, 2 Aug 2010 22:48:23 +0000
(15:48 -0700)
committer
Sage Weil
<sage@newdream.net>
Mon, 2 Aug 2010 22:48:31 +0000
(15:48 -0700)
Signed-off-by: Sage Weil <sage@newdream.net>
fs/ceph/ceph_fs.h
patch
|
blob
|
history
fs/ceph/crypto.c
patch
|
blob
|
history
diff --git
a/fs/ceph/ceph_fs.h
b/fs/ceph/ceph_fs.h
index bf7dea673237c1c02168b833004678aaa45d663f..5bf4ec2cf9eba60a0ef9f90b912523a0f26e7031 100644
(file)
--- 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 c9318278f419c7162bd648e7bd9706a4cc01907f..a3e627f63293b2d329f620525328280a9ae15291 100644
(file)
--- 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,