Hi Geoff, I'm not sure what I missed first time through, but it works as expected. Thanks.
Jeff On 12/2/07, Geoff Beier <[EMAIL PROTECTED]> wrote: > Hi Jeff, > > > I believe this is a valid combination of cipher/mode [1,2,3], so I'm not > > sure > > what I am doing wrong. I know there are better choices than ECB - this is an > > educational exercise. I also realize ECB does not use an IV, but I > > can't compile with just a key. > > > > CryptoPP::ECB_Mode< CryptoPP::AES >::Encryption > > Encryptor( key, sizeof(key), iv ); > > and > > Encryptor( key, sizeof(key) ); > > > > throws an exception in AlgParams: > > CryptoPP::AlgorithmParametersBase::ParameterNotUsed > > > > It seems to work fine with just a key for me, and I see the exception > (as I would expect, since, as you note, ECB does not use an IV) when I > call the constructor with an IV. > > Here's code that compiles and behaves as expected: > http://pastebin.com/f27e36bc2 > > How is yours different? > > Geoff > --~--~---------~--~----~------------~-------~--~----~ 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. -~----------~----~----~----~------~----~------~--~---
