added vendor dir

This commit is contained in:
Derek McQuay
2017-01-24 18:27:39 -08:00
parent f5d1e2aca3
commit 9f98331c59
184 changed files with 43627 additions and 0 deletions
+25
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
}