Java and Python routers don't get along. :-(
Hezekiah <[email protected]> Sat, 2 Aug 2003 22:00:52 -0400
| Newsgroups | gmane.comp.security.invisiblenet.iip.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi, jrand0m! :) (You're message about posting to iip-dev specified that messages concerning code should be sent there as well. This one does. If I was overly literal in my interpretation [which I often am], then just tell me.) :) As you know, last night you instructed me how to get the Java router to make a file containing the binary data of a message. (You used CreateSessionMessage as an example.) Well, I tried that and made a nice binary file. Unfortunately, the Python router didn't use the same data format as the one the java router does. (In case you're wondering, I piped the java created binary message file into my router via netcat. You can be certain the data was transmitted accurately byte for byte.) I looked into the situation a little and found myself somewhat confused. For example, the Destination.java file appears to insert its items into the output stream _backwards_. (i.e. certificate, signing key, and public key instead of public key, signing key, and certificate like how the data structures spec describes.) I asked thecrypto about it, and he told me that you put data into an OutputStream in the exact order you want it to come out. So it would look like Destination.java is putting the data in backwards. Anyway, I reversed the order in Destination and tried again, but still got failures. At that point, I just threw together a Python file that generates binary message data files using the Python code I have. So it would appear we have a discrepancy. I've attached the binary message file for CreateSessionMessage I got from the Java router. We need to work this out. -- Hezekiah P.S. I tried to contact you via IIP, so we could sit down and figure all this out, but the network appears to be down.
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQA/LGzaeHiZTMH32ioRAgzdAJ0TLdIiSbYFrGgK1Z7P319ZcAFIMACfZaIC CTbXqIkoEuXGnUvNzEGdTRY= =5LhP -----END PGP SIGNATURE-----