]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
Added TODOs to remember to reuse auth/Crypt.
authorAdam Kupczyk <akupczyk@mirantis.com>
Thu, 9 Mar 2017 15:47:19 +0000 (16:47 +0100)
committerAdam Kupczyk <akupczyk@mirantis.com>
Wed, 5 Apr 2017 16:31:58 +0000 (18:31 +0200)
Signed-off-by: Adam Kupczyk <akupczyk@mirantis.com>
src/rgw/rgw_crypt.cc

index 988bbcbc154a2f0ac203822079dd71a554603d16..4da4b1604b0f334296205d84f8a8de31024a9995 100644 (file)
@@ -21,9 +21,9 @@
 #endif
 
 #ifdef USE_CRYPTOPP
-#include <crypto++/cryptlib.h>
-#include <crypto++/modes.h>
-#include <crypto++/aes.h>
+#include <cryptopp/cryptlib.h>
+#include <cryptopp/modes.h>
+#include <cryptopp/aes.h>
 using namespace CryptoPP;
 #endif
 
@@ -34,6 +34,7 @@ using namespace rgw;
 
 /**
  * Encryption in CTR mode. offset is used as IV for each block.
+ * TODO: move this code to auth/Crypto for others to reuse.
  */
 class AES_256_CTR : public BlockCrypt {
 public:
@@ -219,6 +220,8 @@ CryptoAccelRef get_crypto_accel(CephContext *cct)
 
 /**
  * Encryption in CBC mode. Chunked to 4K blocks. Offset is used as IV for each 4K block.
+ * TODO: use auth/Crypto instead of reimplementing.
+ *
  *
  * A. Encryption
  * 1. Input is split to 4K chunks + remainder in one, smaller chunk