Sorry, I wasn't finished with my thought.
My original example has the following:
CBC_Mode_ExternalCipher::Encryption cbcE(desE, iv);
StreamTransformationFilter encryptor(cbcE, NULL,
StreamTransformationFilter::NO_PADDING);
encryptor.Put(plaintext, sizeof(plaintext));
encryptor.MessageEnd();
unsigned int outputLength = encryptor.MaxRetrievable();
ciphertext = new byte[outputLength];
encryptor.Get(ciphertext, outputLength);
If I know I need DES-EDE I know I have to do at least
CBC_Mode<DES_EDE2>::Encryption cbcE;
How do I define the key and IV for this particular cipher mode and how do I
declare the transformation mode.
I've actually been trying to trace my way throught test.cpp and default.cpp
but I keep getting lost. My C++ skill is nonexistant. I have done this in
Java but now I need a DLL or Com object to finish a proof of concept. The
reason I wanted to convert the sample application I originally gave is that
it is the eaisest for me to understand and modify .