문제

How can I achieve the same result in C with OpenSSL as the getEncoded() Method produces? It is required for a Diffie-Hellman Key Agreement and I have to send my public key to a java server (But I think the getEncoded() Method not only encodes the Public Key but also the parameters which should be also required for my case)

My current status is that I have a OpenSSL DH Object which contains the PublicKey and p&g as BigNums.

Would bey very great if anyone knows how to do that.

도움이 되었습니까?

해결책

If encoded DH object means DER encoded, then i2d_DHParams can help you. It is given here.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top