-
June 9th, 2009, 03:22 AM
#1
Passing AES encrypted packets between C++ and Java
Hi,
Does anyone have experience or a good example with this kind of code?
I've written code that does this through sockets. Mainly - sends C++ packets to be decrypted on Java. After decryption the packets are gybrish. (Strings)
I've tried CBS with NoPadding.
Another issue I have which I temprorarly overcome with the NoPadding option is that JAVA would throw a Padding exception when trying to decrypt the block.
This is the first time i'm trying to do something like this so I guess the best thing would be to find a working example of this.
Thanks!
-
June 9th, 2009, 08:13 AM
#2
Re: Passing AES encrypted packets between C++ and Java
Could it be something to do with the sizes of integers between Java & C++?
"It doesn't matter how beautiful your theory is, it doesn't matter how smart you are. If it doesn't agree with experiment, it's wrong."
Richard P. Feynman
-
June 9th, 2009, 08:40 AM
#3
Re: Passing AES encrypted packets between C++ and Java
I wouldn't suspect the size, but the byte order. Java uses network byte order (big endian).
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|