From 760fc160762852896865ca4cbc12cf8153c9c4cc Mon Sep 17 00:00:00 2001 From: manzerbredes Date: Mon, 9 Mar 2015 13:01:13 +0400 Subject: Remove useless includes and comments. --- CryptClass/AESCrypt.cpp | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) (limited to 'CryptClass/AESCrypt.cpp') diff --git a/CryptClass/AESCrypt.cpp b/CryptClass/AESCrypt.cpp index 78a553e..08f00f2 100644 --- a/CryptClass/AESCrypt.cpp +++ b/CryptClass/AESCrypt.cpp @@ -9,7 +9,7 @@ */ #include "AESCrypt.hpp" -#include + //Constructor AESCrypt::AESCrypt(){ this->hash=HASHCrypt(); //Init hash attribute @@ -27,23 +27,6 @@ std::string AESCrypt::encrypt(std::string key, std::string data){ byte digest[32]; hash.getSHA_256(key, digest, (int)sizeof(digest)); - - - - //Add padding for AES - /*char pad=0x01; - int tmpL=data.length(); - while(tmpL % 128 != 0){ - tmpL++; - pad+=1; - - } - std::cout << "pad:"<< std::hex << pad; - while(data.length() % 128 != 0){ - data+=pad; - } - - std::cout << data.length();*/ //Contain data encrypted std::string cipher; -- cgit v1.2.3