Topic: Where to get the private keys from DH in the client/server example ?
I am using the #define WOLFSSL_STATIC_EPHEMERAL setting so I have static keys in order to be able to decrypt my packets. I get from a client/server ( from the examples ) run, that the used curve is SECP256R1 which I think is fine and I could use either that or FFDHE2048.
1.) Now, I need to be able from the code of the examples ( client and server ) to be able to get their private keys.
At which point of the code's can I get these ( without the STATIC EPHEMERAL )?
2.) If I use the static ephemeral, do the buffers at:
ssl->ctx->staticKE->dhKey and eccKey
correspond to the private keys of the ffdhe-2048 and secp256r1 ? Because during debugging I can see something completely different even when trying to decode it from the octal value that the debugger gives me to ASCII. (See attached screenshot: [img]privateKey.PNG[/img])
3.) Last question, the sent public keys as seen Wireshark of the ClientHello and ServerHello can be seen in the Key Share Entry: Group: secp256r1 > Key Exchange 04faa99a... ? ( this is more to confirm that I am indeed capturing the correct public keys )