On Tue, Oct 08, 2002 at 12:25:24PM -0400, J Smith wrote:
> BlockTransformation* bt = getEncryptionObject();
> 
> The getEncryptionObject() method being implemented in some class thusly:
> 
> BlockTransformation* MyAESClass::getEncryptionObject()
> {
>       return new AESEncryption((byte*) itsKey, itsKeylength);
> }

This code should still work. What error are you getting exactly?

> Once I had bt set to a BlockTransformation (in this case, an AESEncryption 
> object), I would hand it off to another method that would implement 
> CBCPaddedEncryptor or CBC_CTS_Encryptor or some ECB implementation.

Instead of CBCPaddedEncryptor, you now use CBC_Mode_ExternalCipher and 
optionally StreamTransformationFilter.

Reply via email to