diff --git a/rtc-srtp/src/cipher/cipher_aead_aes_gcm.rs b/rtc-srtp/src/cipher/cipher_aead_aes_gcm.rs index 1e561a2..8555b52 100644 --- a/rtc-srtp/src/cipher/cipher_aead_aes_gcm.rs +++ b/rtc-srtp/src/cipher/cipher_aead_aes_gcm.rs @@ -176,7 +176,7 @@ impl CipherAeadAesGcm { master_key, master_salt, 0, - master_key.len(), + master_salt.len(), )?; let srtcp_session_salt = aes_cm_key_derivation( @@ -184,7 +184,7 @@ impl CipherAeadAesGcm { master_key, master_salt, 0, - master_key.len(), + master_salt.len(), )?; Ok(CipherAeadAesGcm {