diff --git a/.golangci.yml b/.golangci.yml index e618944..88cb4fb 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -136,4 +136,3 @@ issues: - path: cmd linters: - forbidigo - diff --git a/.reuse/dep5 b/.reuse/dep5 index eb7fac2..4ce0569 100644 --- a/.reuse/dep5 +++ b/.reuse/dep5 @@ -6,6 +6,6 @@ Files: README.md DESIGN.md **/README.md AUTHORS.txt renovate.json go.mod go.sum Copyright: 2023 The Pion community License: MIT -Files: testdata/fuzz/* **/testdata/fuzz/* api/*.txt +Files: testdata/seed/* testdata/fuzz/* **/testdata/fuzz/* api/*.txt Copyright: 2023 The Pion community License: CC0-1.0 diff --git a/cmd/stun-bench/main.go b/cmd/stun-bench/main.go index 3eef3bf..8576555 100644 --- a/cmd/stun-bench/main.go +++ b/cmd/stun-bench/main.go @@ -100,7 +100,7 @@ func main() { //nolint:gocognit,cyclop log.Fatalf("Failed to generate transaction ID: %s", err) } } else { - mathRand.Read(req.TransactionID[:]) //nolint:gosec + mathRand.Read(req.TransactionID[:]) //nolint } req.Type = stun.BindingRequest req.WriteHeader() diff --git a/integrity.go b/integrity.go index ba61602..7ea5151 100644 --- a/integrity.go +++ b/integrity.go @@ -3,7 +3,7 @@ package stun -import ( //nolint:gci +import ( "crypto/md5" //nolint:gosec "crypto/sha1" //nolint:gosec "errors" diff --git a/internal/hmac/hmac_test.go b/internal/hmac/hmac_test.go index 59217da..db02f39 100644 --- a/internal/hmac/hmac_test.go +++ b/internal/hmac/hmac_test.go @@ -3,7 +3,7 @@ package hmac -import ( //nolint:gci +import ( "crypto/md5" //nolint:gosec "crypto/sha1" //nolint:gosec "crypto/sha256" diff --git a/internal/hmac/pool.go b/internal/hmac/pool.go index c632251..14aa9d8 100644 --- a/internal/hmac/pool.go +++ b/internal/hmac/pool.go @@ -3,7 +3,7 @@ package hmac -import ( //nolint:gci +import ( "crypto/sha1" //nolint:gosec "crypto/sha256" "hash" diff --git a/internal/hmac/pool_test.go b/internal/hmac/pool_test.go index 9fbb96f..ac3e2b7 100644 --- a/internal/hmac/pool_test.go +++ b/internal/hmac/pool_test.go @@ -3,7 +3,7 @@ package hmac -import ( //nolint:gci +import ( "crypto/sha1" //nolint:gosec "crypto/sha256" "fmt"