AES GCM encryption for mediasoup

Is it possible to use AES GCM encryption mechanism for encrypt/decrypt mediastream?

Too short question. Let’s do this another way: which encryption mechanism is mediasoup using now?

HMAC_SHA1 I believe.

Based on what you think so?

As the doc says that is just for SRTP over plain or pipe transport. In WebRTC world, SRTP ciphers are negotiated using DTLS, so check DtlsTransport.cpp.

1 Like

Ok. @ibc
I didn’t understand anything from DtlsTransport.cpp because I don’t know c++ but I saw SrtpAesGcm256MasterKeyLength so I believe AES GCM can be used with this https://mediasoup.org/documentation/v3/mediasoup/api/#webRtcTransport-connect