mirror of
https://github.com/go-i2p/go-i2p.git
synced 2025-07-04 21:55:18 -04:00
fuzzing with dvyukov/go-fuzz
This commit is contained in:
11
lib/common/fuzz/keys_and_cert/fuzz.go
Normal file
11
lib/common/fuzz/keys_and_cert/fuzz.go
Normal file
@ -0,0 +1,11 @@
|
||||
package exportable
|
||||
|
||||
import "github.com/hkparker/go-i2p/lib/common"
|
||||
|
||||
func Fuzz(data []byte) int {
|
||||
keys_and_cert, _, _ := common.ReadKeysAndCert(data)
|
||||
keys_and_cert.Certificate()
|
||||
keys_and_cert.PublicKey()
|
||||
keys_and_cert.SigningPublicKey()
|
||||
return 0
|
||||
}
|
Reference in New Issue
Block a user