Skip to content

Commit 8cd9236

Browse files
committed
Added DTLS-SRTP IDs for NULL and AES256CM ciphers
1 parent 9f5ddeb commit 8cd9236

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

pkg/protocol/extension/srtp_protection_profile.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ type SRTPProtectionProfile uint16
1010
const (
1111
SRTP_AES128_CM_HMAC_SHA1_80 SRTPProtectionProfile = 0x0001 // nolint
1212
SRTP_AES128_CM_HMAC_SHA1_32 SRTPProtectionProfile = 0x0002 // nolint
13+
SRTP_AES256_CM_SHA1_80 SRTPProtectionProfile = 0x0003 // nolint
14+
SRTP_AES256_CM_SHA1_32 SRTPProtectionProfile = 0x0004 // nolint
15+
SRTP_NULL_HMAC_SHA1_80 SRTPProtectionProfile = 0x0005 // nolint
16+
SRTP_NULL_HMAC_SHA1_32 SRTPProtectionProfile = 0x0006 // nolint
1317
SRTP_AEAD_AES_128_GCM SRTPProtectionProfile = 0x0007 // nolint
1418
SRTP_AEAD_AES_256_GCM SRTPProtectionProfile = 0x0008 // nolint
1519
)

srtp_protection_profile.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ type SRTPProtectionProfile = extension.SRTPProtectionProfile
1212
const (
1313
SRTP_AES128_CM_HMAC_SHA1_80 SRTPProtectionProfile = extension.SRTP_AES128_CM_HMAC_SHA1_80 // nolint:revive,stylecheck
1414
SRTP_AES128_CM_HMAC_SHA1_32 SRTPProtectionProfile = extension.SRTP_AES128_CM_HMAC_SHA1_32 // nolint:revive,stylecheck
15+
SRTP_AES256_CM_SHA1_80 SRTPProtectionProfile = extension.SRTP_AES256_CM_SHA1_80 // nolint:revive,stylecheck
16+
SRTP_AES256_CM_SHA1_32 SRTPProtectionProfile = extension.SRTP_AES256_CM_SHA1_32 // nolint:revive,stylecheck
17+
SRTP_NULL_HMAC_SHA1_80 SRTPProtectionProfile = extension.SRTP_NULL_HMAC_SHA1_80 // nolint:revive,stylecheck
18+
SRTP_NULL_HMAC_SHA1_32 SRTPProtectionProfile = extension.SRTP_NULL_HMAC_SHA1_32 // nolint:revive,stylecheck
1519
SRTP_AEAD_AES_128_GCM SRTPProtectionProfile = extension.SRTP_AEAD_AES_128_GCM // nolint:revive,stylecheck
1620
SRTP_AEAD_AES_256_GCM SRTPProtectionProfile = extension.SRTP_AEAD_AES_256_GCM // nolint:revive,stylecheck
1721
)

0 commit comments

Comments
 (0)