From ddea6fdd5f18fd8d3aa1e0974b0987bb2914d33d Mon Sep 17 00:00:00 2001 From: EKR Date: Fri, 18 Jan 2013 13:03:17 -0800 Subject: [PATCH] Bug 829624 - Always use 80-bit MAC with SRTCP. r=jesup --- media/webrtc/signaling/src/mediapipeline/SrtpFlow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/media/webrtc/signaling/src/mediapipeline/SrtpFlow.cpp b/media/webrtc/signaling/src/mediapipeline/SrtpFlow.cpp index 945a0b8354cf..d352c36f48ca 100644 --- a/media/webrtc/signaling/src/mediapipeline/SrtpFlow.cpp +++ b/media/webrtc/signaling/src/mediapipeline/SrtpFlow.cpp @@ -62,8 +62,8 @@ RefPtr SrtpFlow::Create(int cipher_suite, case SRTP_AES128_CM_HMAC_SHA1_32: MOZ_MTLOG(PR_LOG_DEBUG, "Setting SRTP cipher suite SRTP_AES128_CM_HMAC_SHA1_32"); crypto_policy_set_aes_cm_128_hmac_sha1_32(&policy.rtp); - crypto_policy_set_aes_cm_128_hmac_sha1_32(&policy.rtcp); - break; + crypto_policy_set_aes_cm_128_hmac_sha1_80(&policy.rtcp); // 80-bit per RFC 5764 + break; // S 4.1.2. default: MOZ_MTLOG(PR_LOG_ERROR, "Request to set unknown SRTP cipher suite"); return NULL;