Rickey Braddam wrote:Yes, this worked! Thanks! :)Hi, Cornell. I think I see what's happening here, but if I'm right I don't know why the decrypt works in either case.... at any rate, my comments are embedded below. I've snipped the original that my comments don't apply to. About the IV i have checked it is not changing, but I will note this for future. But I still not understand, when I am doing: DES::Decryption desEncryption(key, DES::DEFAULT_KEYLENGTH); CFB_Mode_ExternalCipher::Encryption cfbEncryption(desEncryption, iv); DES::Decryption desDecryption(key, DES::DEFAULT_KEYLENGTH); CFB_Mode_ExternalCipher::Decryption cfbDecryption(desDecryption, iv); cfbEncryption.ProcessData(chiper, plain,bSize); cfbDecryption.ProcessData(out_plain, chiper,bSize); it works, when: DES::Encryption desEncryption(key, DES::DEFAULT_KEYLENGTH); CFB_Mode_ExternalCipher::Encryption cfbEncryption(desEncryption, iv); DES::Encryption desDecryption(key, DES::DEFAULT_KEYLENGTH); CFB_Mode_ExternalCipher::Decryption cfbDecryption(desDecryption, iv); cfbEncryption.ProcessData(chiper, plain,bSize); cfbDecryption.ProcessData(out_plain, chiper,bSize); it allso works, but the chipertext itself is different... Which one to use and is this the right way of doing encryption/decription? What is the difference beetween DES::Encryption and DES::Decryption if they both works... |
- getting DSA key length Renzo Tomaselli
- SymmetricCipher Decoder is not working if created... Cornel Maftuleac
- Re: SymmetricCipher Decoder is not working if... Russell Robinson
- Re: SymmetricCipher Decoder is not workin... Voronkov Konstantin
- Re[2]: SymmetricCipher Decoder is not... Russell Robinson
- Re: Re[2]: SymmetricCipher Decod... Voronkov Konstantin
- Re: SymmetricCipher Decoder is not working if... Rickey Braddam
- Re: SymmetricCipher Decoder is not workin... Cornel Maftuleac
- Re: SymmetricCipher Decoder is not wo... Rickey Braddam
