// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
-#include <openssl/aes.h>
#include <openssl/evp.h>
#include "crypter.h"
if (!fKeySet)
return false;
+ const int AES_BLOCK_SIZE = 16; // taken from <openssl/aes.h>
+
// max ciphertext len for a n bytes of plaintext is
// n + AES_BLOCK_SIZE - 1 bytes
int nLen = vchPlaintext.size();