From 3d34ee1bdf9a416cc4c812df2a9bf78d61e0a7a5 Mon Sep 17 00:00:00 2001 From: Adam Kupczyk Date: Thu, 9 Mar 2017 16:47:19 +0100 Subject: [PATCH] Added TODOs to remember to reuse auth/Crypt. Signed-off-by: Adam Kupczyk --- src/rgw/rgw_crypt.cc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/rgw/rgw_crypt.cc b/src/rgw/rgw_crypt.cc index 988bbcbc154..4da4b1604b0 100644 --- a/src/rgw/rgw_crypt.cc +++ b/src/rgw/rgw_crypt.cc @@ -21,9 +21,9 @@ #endif #ifdef USE_CRYPTOPP -#include -#include -#include +#include +#include +#include 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 -- 2.47.3