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!
Re: Passing AES encrypted packets between C++ and Java
Could it be something to do with the sizes of integers between Java & C++?
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).