pipetransport.connect invalid/unsupported srtpParameters.cryptoSuite when cyptoSuite is AES_CM_128_HMAC_SHA1_80

hi
pipeTransport.connect works when srtpParameters is something like this :

{
  cryptoSuite: 'AEAD_AES_256_GCM',
  keyBase64: 'MTA1cWplNnU5YjZsdmd5a21ocTM0M3JyeXdubW9kYjEzMmpjcDR3MHpwb2o='
}

but its throwing error when srtpParameters is like this :

{
  cryptoSuite: 'AES_CM_128_HMAC_SHA1_80',
  keyBase64: 'ZmVjNXo1MzIzMDk4NDh6dHNqOWljdTR6Y3gyMXBs'
}

what is cryptoSuite choosed based on?
and whats wrong with AES_CM_128_HMAC_SHA1_80
how can i set it to AEAD_AES_256_GCM (so it works) ?

the error is :
invalid/unsupported srtpParameters.cryptoSuite [method:transport.connect]

my mediasoup version is 3.10.11
os is ubuntu 18

This is the only crypto suite supported in PipeTransport. Indeed it should be documented.

2 Likes