From 40070762493e9a1ca01d5e2eab489da8a1dacd93 Mon Sep 17 00:00:00 2001 From: yngrtc Date: Wed, 19 Jun 2024 19:32:48 -0700 Subject: [PATCH] fix SRTP bug --- rtc-srtp/src/cipher/cipher_aead_aes_gcm.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {