On Wed, Oct 02, 2002 at 01:42:23AM -0400, Aparajita Fishman wrote:
> BlowfishEncryption encryption(reinterpret_cast<const byte*>(key, 
> strlen(key);
> CBCPaddedEncryptor cbcEncryptor(encryption,
>                                                               reinterpret_cast<const 
> byte*>(IV),
>                                                               new 
>                                                               
> StrSink(outCipherText));
> cbcEncryptor.PutMessageEnd(reinterpret_cast<const byte*>(inText), 
> inTextLength);

CBC_Mode<Blowfish>::Encryption encryption(key, strlen(key), iv);
StreamTransformationFilter cbcEncryptor(encryption, new StringSink ...

Add reinterpret_cast where necessary. The rest stays the same.

Reply via email to