CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2003

    Passing AES encrypted packets between C++ and Java


    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.


  2. #2
    Join Date
    Jul 2002
    Portsmouth. United Kingdom

    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

  3. #3
    Join Date
    May 2001

    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

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.