Skip to content

Commit bb022d5

Browse files
digitalixSean-Der
authored andcommitted
Implemented SRTP_AEAD_AES_256_GCM
This adds missing bits for SRTP_AEAD_AES_256_GCM and updates srtp module to v2.0.14.
1 parent 0199c58 commit bb022d5

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

constants.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,5 @@ const (
3939
)
4040

4141
func defaultSrtpProtectionProfiles() []dtls.SRTPProtectionProfile {
42-
return []dtls.SRTPProtectionProfile{dtls.SRTP_AEAD_AES_128_GCM, dtls.SRTP_AES128_CM_HMAC_SHA1_80}
42+
return []dtls.SRTPProtectionProfile{dtls.SRTP_AEAD_AES_256_GCM, dtls.SRTP_AEAD_AES_128_GCM, dtls.SRTP_AES128_CM_HMAC_SHA1_80}
4343
}

dtlstransport.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,8 @@ func (t *DTLSTransport) Start(remoteParameters DTLSParameters) error {
361361
switch srtpProfile {
362362
case dtls.SRTP_AEAD_AES_128_GCM:
363363
t.srtpProtectionProfile = srtp.ProtectionProfileAeadAes128Gcm
364+
case dtls.SRTP_AEAD_AES_256_GCM:
365+
t.srtpProtectionProfile = srtp.ProtectionProfileAeadAes256Gcm
364366
case dtls.SRTP_AES128_CM_HMAC_SHA1_80:
365367
t.srtpProtectionProfile = srtp.ProtectionProfileAes128CmHmacSha1_80
366368
default:

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ require (
1515
github.com/pion/rtp v1.7.13
1616
github.com/pion/sctp v1.8.7
1717
github.com/pion/sdp/v3 v3.0.6
18-
github.com/pion/srtp/v2 v2.0.13
18+
github.com/pion/srtp/v2 v2.0.14
1919
github.com/pion/stun v0.5.2
2020
github.com/pion/transport/v2 v2.2.0
2121
github.com/sclevine/agouti v3.0.0+incompatible

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ github.com/pion/sctp v1.8.7 h1:JnABvFakZueGAn4KU/4PSKg+GWbF6QWbKTWZOSGJjXw=
6363
github.com/pion/sctp v1.8.7/go.mod h1:g1Ul+ARqZq5JEmoFy87Q/4CePtKnTJ1QCL9dBBdN6AU=
6464
github.com/pion/sdp/v3 v3.0.6 h1:WuDLhtuFUUVpTfus9ILC4HRyHsW6TdugjEX/QY9OiUw=
6565
github.com/pion/sdp/v3 v3.0.6/go.mod h1:iiFWFpQO8Fy3S5ldclBkpXqmWy02ns78NOKoLLL0YQw=
66-
github.com/pion/srtp/v2 v2.0.13 h1:GJQNMCqbYrNIBt1f3maX+E+woREVh2ilhAafBh0vqmk=
67-
github.com/pion/srtp/v2 v2.0.13/go.mod h1:FA7u5fWpVITMYNL70TA3csQuMQJA5/+6ZMajGxveHgM=
66+
github.com/pion/srtp/v2 v2.0.14 h1:Glt0MqEvINrDxL+aanmK4DiFjvs+uN2iYc6XD/iKpoY=
67+
github.com/pion/srtp/v2 v2.0.14/go.mod h1:b/pQOlDrbB0HEH5EUAQXzSYxikFbNcNuKmF8tM0hCtw=
6868
github.com/pion/stun v0.4.0/go.mod h1:QPsh1/SbXASntw3zkkrIk3ZJVKz4saBY2G7S10P3wCw=
6969
github.com/pion/stun v0.5.2 h1:J/8glQnDV91dfk2+ZnGN0o9bUJgABhTNljwfQWByoXE=
7070
github.com/pion/stun v0.5.2/go.mod h1:TNo1HjyjaFVpMZsvowqPeV8TfwRytympQC0//neaksA=

0 commit comments

Comments
 (0)