Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
Added mail to contributor list
  • Loading branch information
tobiasfriden authored and Sean-Der committed Dec 5, 2018
1 parent 8db803e commit b37e959
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion context.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,5 +222,5 @@ func (c *Context) verifyAuthTag(buf, expectedAuthTag, authTag []byte) (bool, err
if _, err := mac.Write(buf); err != nil {
return false, err
}
return bytes.Compare(expectedAuthTag, mac.Sum(nil)[0:10]) == 0, nil
return bytes.Equal(expectedAuthTag, mac.Sum(nil)[0:10]), nil
}
1 change: 1 addition & 0 deletions srtp.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ func (c *Context) DecryptRTP(packet *rtp.Packet) bool {

c.updateRolloverCount(packet.SequenceNumber, s)

// Extract auth tag and verify it
auth := packet.Payload[len(packet.Payload)-10:]
fullPkt := packet.Raw[:]
fullPkt = append(fullPkt, make([]byte, 4)...)
Expand Down

0 comments on commit b37e959

Please sign in to comment.