Skip to content

Commit

Permalink
Merge pull request #22 from krakend/owasp_fixes
Browse files Browse the repository at this point in the history
Remove warnings about hashing functions
  • Loading branch information
kpacha authored Sep 18, 2024
2 parents 5060bae + df26e2e commit 9ec884c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions hasher.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package bloomfilter

import (
"crypto/md5"
"crypto/sha1"
"crypto/md5" // skipcq: GSC-G501
"crypto/sha1" // skipcq: GSC-G505
"encoding/binary"
"fmt"
"hash"
Expand Down Expand Up @@ -34,8 +34,8 @@ var (

ErrImpossibleToTreat = fmt.Errorf("unable to union")

MD5 = HashWrapper(md5.New())
SHA1 = HashWrapper(sha1.New())
MD5 = HashWrapper(md5.New()) // skipcq: GO-S1023, GSC-G401
SHA1 = HashWrapper(sha1.New()) // skipcq: GO-S1025, GSC-G401
CRC64 = HashWrapper(crc64.New(crc64.MakeTable(crc64.ECMA)))
FNV64 = HashWrapper(fnv.New64())
FNV128 = HashWrapper(fnv.New128())
Expand Down

0 comments on commit 9ec884c

Please sign in to comment.