Got it... We need to use a BlockCipher[]:

CryptoPP::BlockCipher* Ciphers[] =
{
  new CryptoPP::AES::Encryption(),
  new CryptoPP::Blowfish::Encryption(),
  new CryptoPP::BTEA::Encryption(),
 ...
}

On 12/4/07, Jeffrey Walton <[EMAIL PROTECTED]> wrote:
> Hi All/Wei,
>
> I'm trying to compare all the symetric ciphers in the library. I'm
> tanking on mode objects, because they require compile time parameters.
> Is there any way to accomplish the following?
>
> Jeff
>
> BlockCipherDocumentation* Ciphers[] = {
>  new CryptoPP::AES(),
>  new CryptoPP::Blowfish(),
>  ...
> }
>
> for(int i=0; i<sizeof(Ciphers)/sizeof(Ciphers[0]); i++ )
> {
>  CryptoPP::ECB_Mode< *Ciphers[i] > Encryptor;
>  std::cout << Encryptor.AlgorithmName() << std::endl;
> }
>

--~--~---------~--~----~------------~-------~--~----~
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