diff --git a/main.cpp b/main.cpp index edbd9cd..ea23a4e 100644 --- a/main.cpp +++ b/main.cpp @@ -45,7 +45,6 @@ int main() {//g++ AES.cpp main.cpp -o program getline(cin, tmp); for (int i = 0; i < 16; i++) { key[i] = tmp[i]; } - cout << "textLength " << textLength << '\n'; unsigned char *ciphertext = new unsigned char [textLength]; encryptECB(textLength,plaintext, key, ciphertext); diff --git a/pkcs7_HPP.cpp b/pkcs7_HPP.cpp index 48991fc..309c4b8 100644 --- a/pkcs7_HPP.cpp +++ b/pkcs7_HPP.cpp @@ -1,7 +1,6 @@ #include"pkcs7_HPP.hpp" using namespace std; void pkcs7_padding(string& str, int BlockSize) { - cout << BlockSize << ' ' << str.size() << '\n'; int PaddingSize = BlockSize - (str.size() % BlockSize); unsigned char PaddingChar = (unsigned char)PaddingSize; for (int i = 0; i < PaddingSize; i++) { @@ -12,9 +11,7 @@ void pkcs7_padding(string& str, int BlockSize) { } void pkcs7_unpadding(string& str) { - cout << "ttttt " << (unsigned char)str[str.size() - 1] << '\n'; int PaddingSize = (int)((unsigned char)str[str.size() - 1]); - cout << "paddingsize " << PaddingSize << '\n'; str.resize(str.size() - PaddingSize); return; } \ No newline at end of file