1 (edited by sissiok 2015-07-28 15:02:21)

Topic: diffie hellman settings not compatible with RFC3526

Hi, I try to implement a Diffie-Hellman key exchange. If I set DH parameter p and g as dh2048.der and dh1024.der in certs fold carried by wolfSSL, it works fine. But if I set p and g to RFC3526 2048-bit MODP Group, I get error MP_EXPTMOD_E in wc_DhGenerateKeyPair() and wc_DhAgree(). Why?

Thanks.

Share

Re: diffie hellman settings not compatible with RFC3526

Hi sissiok,

Are you including <wolfssl/options.h> in your application, as the first wolfSSL header include?  This makes sure that wolfSSL and your application were compiled with the same preprocessor flags.

I just tested the 2048-bit MODP Group from RFC 3526, and it seemed to work.  I have attached my test app here for reference.  Can you compare this to how you were doing it?

Thanks,
Chris

Post's attachments

main.c 4.11 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.