Topic: PSK

Hello everybody,
I wanna to use PSK in DTLS.  I chose wolfDTLS_client_method().

If use PSK, is it supposed as session key? I'm confused, how session key is produced?

Share

Re: PSK

Hello lili,

Thanks for your post. PSK is used to negotiate the first connection handshake. If sessions are enabled, the server will provide a session key (or ticket) that can be to quickly resume the connection without the full handshake.

Here is an example:
https://github.com/wolfSSL/wolfssl-exam … s-resume.c

Kind regards,
Eric @ wolfSSL Support