Hi _PINUX_,

> + why cfbEncryptor.MessageEnd(); is still called in the
> FAQ sample code.
How is the filter suppose to know when the stream ends? The filter's
job is buffering - it accumulates and then pushes 'blocksize' chunks
to the encryption object.

Jeff

On 11/2/07, _PINUX_ <[EMAIL PROTECTED]> wrote:
>
> It seems when using StreamTransformationFilter it should buffer the
> incomplete block automatically when needed. But:
>
> + why cfbEncryptor.MessageEnd(); is still called in the FAQ sample
> code.
>
> + If StreamTransformationFilter takes care of the padding, why the
> data is not a multiple of block size is thrown in the decryption code.
> There is a slight change in my test. I use MAX_KEYLENGTH. So here's
> the scenario:
>
> Key size 256        Block size 128        IV size 128
>
> Thanks
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to [EMAIL PROTECTED]
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.
-~----------~----~----~----~------~----~------~--~---

Reply via email to