Have you tried using the EVP version and then i2d_PUBKEY?

Matt

On 7 April 2013 10:14, crvchul <[email protected]> wrote:
> Hello,
>
> It would be very great if my problem could be solved here.
> In C I have to make a Diffie-Hellman Key Exchange and the problem is that
> the corresponding Java Server expects a ASN.1 DER encoded
> SubjectPublicKeyInfo, the same thing that Java creates with the getEncoded()
> Method, described here  Click
> <http://docs.oracle.com/javase/1.5.0/docs/api/java/security/Key.html>
> and I have tried many things but I seem to misunderstand something.
> I am at the point that I generated the Keys already and have an DH object,
> but I also used the EVP Api and can have access to a EVP_PKEY Object, that
> contains the parameters and y.
>
>
>
>
> --
> View this message in context: 
> http://openssl.6102.n7.nabble.com/Diffie-Hellman-ASN-1-DER-Encoding-tp44697.html
> Sent from the OpenSSL - Dev mailing list archive at Nabble.com.
> ______________________________________________________________________
> OpenSSL Project                                 http://www.openssl.org
> Development Mailing List                       [email protected]
> Automated List Manager                           [email protected]
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [email protected]
Automated List Manager                           [email protected]

Reply via email to