We changed generation of encryption key,

old:

KeyGenerator keyGenerator = KeyGenerator.getInstance("AES");
keyGenerator.init(128);
Key ek =  keyGenerator.generateKey();

new:

KeyGenerator keyGenerator = KeyGenerator.getInstance("DESede");
Key ek = keyGenerator.generateKey();

now it works.


Milan Tomic wrote:
Hello,

        It was our mistake in Java code. Works fine now.

Thank you,
Milan



-----Original Message-----
From: Berin Lautenbach [mailto:[EMAIL PROTECTED] Sent: Friday, October 08, 2004 2:41 AM
To: [EMAIL PROTECTED]
Subject: Re: [java & c++] interoperability & encryption



Milan,

Could you send me the code you are using to do the Java encryption? I've just gone from scratch - using your keys - and encrypted some XML in Java and decrypted in C++. So I'm wondering if there is something different about the way I'm doing it vs. the way you are doing it.

Cheers,
        Berin

Berin Lautenbach wrote:


Milan Tomic wrote:


Hello Berin,

Yes, patch solves first problem. Thank you. Do you

have any idea


what could be solution for second problem?


OK - One problem down. I have noted that the second problem also exists
for OpenSSL, so the problem is more fundamental than a crypto layer issue. But what really puzzles me is that both libraries

are handling


all the interop tests, so I'm a bit bemused.

Cheers,
   Berin





Reply via email to