Documentation
¶
Index ¶
- Constants
- Variables
- func AlpineArtifactBytes(ff *fuzz.ConsumeFuzzer) ([]byte, error)
- func AssertCanonicalIdempotent(ctx context.Context, t *testing.T, canonical []byte)
- func AssertDecodeEntryEquivalent[T any](t *testing.T, typed *T, decode func(any, *T) error)
- func CreateAlpineProps(ff *fuzz.ConsumeFuzzer) (types.ArtifactProperties, func(), error)
- func CreateProps(ff *fuzz.ConsumeFuzzer, fuzzType string) (types.ArtifactProperties, []func(), error)
- func SetFuzzLogger()
Constants ¶
const RSACert = `` /* 1179-byte string literal not displayed */
copy pasted from rekor/pkg/pki/x509/e2e.go
const RSAKey = `` /* 1703-byte string literal not displayed */
copy pasted from rekor/pkg/pki/x509/e2e.go
Variables ¶
var ( CertPrivateKey *rsa.PrivateKey Certificate *x509.Certificate )
Functions ¶
func AlpineArtifactBytes ¶
func AlpineArtifactBytes(ff *fuzz.ConsumeFuzzer) ([]byte, error)
func AssertCanonicalIdempotent ¶ added in v1.5.2
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
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.