Using the code from: http://www.cryptopp.com/wiki/Diffie-Hellman_Key_Exchange
I am encrypting the message with the pubA and decrypting with privA, but the decrypted message does not match the original. CFB_Mode<AES>::Encryption cfbEncryption(pubA, aesKeyLength, iv); cfbEncryption.ProcessData((byte*)encrypted, (byte*)message, messageLen); ////////////////////////////////////////////////////////////////////////// // Decrypt CFB_Mode<AES>::Decryption cfbDecryption(privA, aesKeyLength, iv); cfbDecryption.ProcessData((byte*)decrypted, (byte*)encrypted, messageLen); decrypted != message I am just starting out here with crypto++, but I am missing something? Is there something different with DH keypairs created with dhA.GenerateKeyPair(rngA, privA, pubA) such that encrypting with the public key and decrypting with the private key does not result in the original message? Thanks --~--~---------~--~----~------------~-------~--~----~ 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. -~----------~----~----~----~------~----~------~--~---
