Hi Jeffrey,

>Hi Stefan,

> I believe you can specify this through a constructor.

> Otherwise, I've seen Wei move functions (on request) from protected to
> public to facilitate such operations. I hesitate to suggest it, since
> I am not aware of all the side effects.

> Jeff

You are right. :-)

This is the code:

template <class BASE>
void
CipherModeFinalTemplate_ExternalCipher<BASE>::SetCipherWithIV(BlockCipher
&cipher, const byte *iv, int feedbackSize)
{
    this->ThrowIfInvalidIV(iv);
    this->m_cipher = &cipher;
    this->ResizeBuffers();
    this->SetFeedbackSize(feedbackSize);
    if (this->IsResynchronizable())
        this->Resynchronize(iv);
}

Therefore you can call it directly with the constructor: For example:

CFB_Mode_ExternalCipher::Encryption cfbEncryption(aesEncryption, iv,
1);

Now, it works like a charm. Thanks!

Best regards,
Stephen
--~--~---------~--~----~------------~-------~--~----~
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