Hi,
 
I have modified the DefaultEncryptor and DefaultEncryptorWithMAC provided in the library so it would take the BlockCipher algorithm as a template argument. The Blocksize and Keylength are also template arguments. They seem to work fine this way ( made tests using AES and DES). I'm thinking now to add the Block Mode as a template argument as well.
 
template <class BlockCipher, class BlockMode, unsigned int BS, unsigned int KL> class DefaultEncryptor;
 
What I would like to know is if there are some dangers in doing all this, since it wasn't done so by default? Also,  Denis Bider in his tutorial on Cryptlib 4, states that: I developed AES PHM because, at that time, Crypto++ did not have a general easy-to-use symmetric cipher class that would allow the developer to use AES without having to explicitly deal with various cipher modes and IVs.
 
Thank you,
    Dragos

Reply via email to