fuzz

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: May 21, 2026 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const RSACert = `` /* 1179-byte string literal not displayed */

copy pasted from rekor/pkg/pki/x509/e2e.go

View Source
const RSAKey = `` /* 1703-byte string literal not displayed */

copy pasted from rekor/pkg/pki/x509/e2e.go

Variables

View Source
var (
	CertPrivateKey *rsa.PrivateKey
	Certificate    *x509.Certificate
)

Functions

func AlpineArtifactBytes

func AlpineArtifactBytes(ff *fuzz.ConsumeFuzzer) ([]byte, error)

func AssertCanonicalIdempotent added in v1.5.2

func AssertCanonicalIdempotent(ctx context.Context, t *testing.T, canonical []byte)

AssertCanonicalIdempotent enforces the log-stability invariant: bytes produced by types.CanonicalizeEntry must, when re-parsed and re-canonicalized, yield the exact same bytes. A violation means the canonical form stored in the Merkle tree is not actually canonical.

func AssertDecodeEntryEquivalent added in v1.5.2

func AssertDecodeEntryEquivalent[T any](t *testing.T, typed *T, decode func(any, *T) error)

AssertDecodeEntryEquivalent feeds the same logical content to DecodeEntry once as a typed model and once as the map[string]any that encoding/json would produce, then asserts both code paths yield equivalent results. The per-type DecodeEntry functions hand-roll the map fast-path; divergence here means a field was forgotten or decoded differently.

func CreateAlpineProps

func CreateAlpineProps(ff *fuzz.ConsumeFuzzer) (types.ArtifactProperties, func(), error)

Creates an ArtifactProperties with values determined by the fuzzer

func CreateProps

func CreateProps(ff *fuzz.ConsumeFuzzer, fuzzType string) (types.ArtifactProperties, []func(), error)

Creates an ArtifactProperties with values determined by the fuzzer

func SetFuzzLogger

func SetFuzzLogger()

Types

This section is empty.

Jump to

Keyboard shortcuts

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