Hi All,

I'm new to Crypto++.

I'm looking for an algo to encrypt/decrypt file streams.

I saw there is a DefaultEncryptorWithMAC() and DefaultDecryptorWithMAC()
which uses DES-EDE2 and HMAC/SHA-1 and takes a passphrase as input.

I was considering using AES as the cipher and doing something similar to the above. To test the idea, I simply edited default.h and changed the Default_BlockCipher typedef to be AES (and included aes.h) , i.e.

typedef AES Default_BlockCipher;


Then rebuilt it and ran the test using this to encrypt and decrypt a file. It seemed to work fine (based on minimal testing).

I haven't analyzed the code with a fine tooth comb to ascertain issues in doing this...

I know I can always roll my own, handling iv/keys/mode/padding but this seemed like a quick starting point.

Has anyone else done this? Are there gotchas that I should be aware of?

Thanks
E.


Reply via email to