How to calculate PRF in OpenSSL?

I am developing an EAP-TLS server using OpenSSL. I need to get key material from a TLS session, as described in RFC5216.

Key_Material = TLS-PRF-128 (master_secret, "client EAP encryption", client.random || server.random)

I can get the main secret in the TLS connection by visiting SSL_SESSION-> master_key, but how can I calculate the OpenSSL PRF?

+3
source share
1 answer

I just get a response from the OpenSSL user mailing list. OpenSSL has a fix. You can find it at this link sctp.fh-muenster.de/dtls/tls-exporter.patch . People have the same question as me, can refer to the implementation of the fix.

+1
source

All Articles