deriveSrtpKeyingMaterial

fnSrtpKeyingMaterial deriveSrtpKeyingMaterial(const(ubyte)[] masterSecret, const(ubyte)[] clientRandom, const(ubyte)[] serverRandom, SrtpProfile profile)

Derives SRTP keying material from DTLS handshake secrets.

Implements RFC 5764 §4.2 key derivation using the TLS 1.2 PRF (or HKDF for TLS 1.3 connections, though DTLS-SRTP is typically used with DTLS 1.2).

Parameters

masterSecretThe DTLS master secret bytes.
clientRandomThe client random from the handshake.
serverRandomThe server random from the handshake.
profileThe negotiated SRTP profile.

Returns

SRTP keying material for both directions.