I'm experiencing the exact same issue as:
http://comments.gmane.org/gmane.comp.encryption.cryptopp/2518
In this case, because I'm using DefaultEncryptorWithMAC with AES-256, I
get the exception "cannot decrypt message with this passphrase".
Generally,
----
std::string pdata;
std::ifstream ifs(sFilePlainText.c_str(), std::ifstream::binary);
std::ofstream ofs(sFileCipherText.c_str(), std::ofstream::binary);
m_enc = new Base64Encoder(NULL, true, 72);
AlgorithmParameters params = MakeParameters(Name::Separator(),
ConstByteArrayParameter("\n#"))
(Name::InsertLineBreaks(), true);
m_enc->IsolatedInitialize(params);
m_enc->Attach(new FileSink(ofs));
m_dem = new DefaultEncryptorWithMAC((byte*)password.data(),
password.size(), new Redirector(*m_enc));
// ... ifs >> pdata ...
m_dem->Put2((byte const*)pdata.data(), pdata.size(), 0, true);
m_dem->MessageEnd();
----
Encrypts/decrypts fine within each OS. The encrypted output for each OS
is different - Ubuntu's is smaller in size. I've gone at this all day.
Any help is appreciated.