initial commit

This commit is contained in:
konrad 2018-06-10 11:11:41 +02:00 committed by kolaente
commit 479cf54ada
Signed by untrusted user who does not match committer: konrad
GPG key ID: F40E70337AB24C9B
595 changed files with 427508 additions and 0 deletions

25
vendor/github.com/gorilla/securecookie/fuzz.go generated vendored Normal file
View file

@ -0,0 +1,25 @@
// +build gofuzz
package securecookie
var hashKey = []byte("very-secret12345")
var blockKey = []byte("a-lot-secret1234")
var s = New(hashKey, blockKey)
type Cookie struct {
B bool
I int
S string
}
func Fuzz(data []byte) int {
datas := string(data)
var c Cookie
if err := s.Decode("fuzz", datas, &c); err != nil {
return 0
}
if _, err := s.Encode("fuzz", c); err != nil {
panic(err)
}
return 1
}