fuzz

package
v0.0.0-...-b27285a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 3, 2019 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Overview

Package fuzz provides generic fuzzers for crypto interfaces.

Index

Constants

This section is empty.

Variables

View Source
var ErrShort = errors.New("fuzz: provided data too short")

ErrShort is returned when fuzz data is too short.

Functions

func Curve

func Curve(data []byte, c elliptic.Curve) int

Curve compares c to its generic implementation on the given fuzz data.

func Hash

func Hash(data []byte, a, b hash.Hash) int

Hash compares two hash implementations on the given fuzz data.

func MustWrite

func MustWrite(w io.Writer, b []byte)

MustWrite writes b to w and panics if anything goes wrong.

func Rand

func Rand(data []byte) (*rand.Rand, []byte, error)

Rand builds a random source from fuzz data.

func RandWrite

func RandWrite(w io.Writer, r *rand.Rand, b []byte)

RandWrite writes b to w in random-sized chunks, based on the given random source.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL