I've seemed to reach an impasse, and no amount of google-ing is helping 
right now.

I'm encrypting a message in java, sending it over a socket, and decrypting 
in c++ (x86_64).  Both use a hard coded salt and password (byte[] and 
char[] in java and byte[] and string converted to byte * in c++).  Java's 
generating it's key with PBKDF2WithHmacSHA1, generats an IV, and uses 
AES/CFB/PKCS7Padding with Bouncy Castle provider for encryption.  Java's 
sending a hex encoded IV and cipher text to c++.  c++ is using 
crypto++'s PKCS5_PBKDF2_HMAC<SHA1> for key, StringSource with HexDecoder to 
recover the IV, and CFB_Mode<AES>::Decryption and StringSource with 
HexDecoder to recover the message from cipher text.

I've had both applications dump all of their information to the console - 
plain text, IV in various encodings, cipher text in various encodings, 
salt, password, what c++ receives and breaks into IV and cipher text... 
 Everything matches except, plain text != recoverd text.  Could I simply be 
running into an endian issue that's being masked bye conversions used to 
output data to the console?

I can post any/all code that may be helpful in trouble shooting this.

Thanks in advance.

-- 
-- 
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.
--- 
You received this message because you are subscribed to the Google Groups 
"Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to