Situation: I am using Crypto++ 5.0 and creating an app similar to cryptarc, in
fact I am using cryptarc as a pattern, I am not using the BSL stuff because I
could not find it to download.

Needless to say the classes in cryptarc are written for 4.2 version of the lib
and they do not conform to the current requirements, specificaly they do not
support Put2().

I have traced through the code quite a bit to find that (I think) PUt2 seems
to be acting like a trafic cop based on the contents of the data and the
messageEnd flag.

My minimal version of Put2 looks like this

int foo::Put2( byte* inString, int count, int messageEnd, int blocking)
{
    Put( inString, count );
    if (messageEnd) {
        MessageEnd();   // this will propigate to AttachedTransformation() 
                        // if any 
    }
    if(blocking) {
        // do I need to do anything here?
    }
    return 0;
}

This seems to work but it seems simplistic, compaired to say what happens in
BufferedTransformation.  Are my interpretations correct?

Thanks.

[Mark]
========
[Mark]

Reply via email to