]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
auth: define AES iv in common header
authorSage Weil <sage@newdream.net>
Fri, 30 Jul 2010 17:24:45 +0000 (10:24 -0700)
committerSage Weil <sage@newdream.net>
Fri, 30 Jul 2010 17:24:45 +0000 (10:24 -0700)
Signed-off-by: Sage Weil <sage@newdream.net>
src/auth/Crypto.cc
src/include/ceph_fs.h

index bca39bfa6d2eb5fe69b23b0915a779aa1faa6bac..102c8d234c021a27cc8e118a5c12027ad530003d 100644 (file)
@@ -107,7 +107,7 @@ public:
   int decrypt(bufferptr& secret, const bufferlist& in, bufferlist& out);
 };
 
-static const unsigned char *aes_iv = (const unsigned char *)"cephsageyudagreg";
+static const unsigned char *aes_iv = CEPH_AES_IV;
 
 int CryptoAES::create(bufferptr& secret)
 {
index 70a451ccbc9f4e25fc8e5560ee43fc2b423b2d4f..9247c238c25213285d0e0a5e51b35952890afc45 100644 (file)
@@ -76,6 +76,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