cryptoutil

package
v0.2.19 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2026 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DigestSHA256Prefix = "sha256:"
)

Variables

This section is empty.

Functions

func IsDigestEqual

func IsDigestEqual(
	left *Digest,
	right *Digest,
) bool

func ValidateDigest

func ValidateDigest(value Digest) error

Types

type Digest

type Digest string

func CanonicalDigest added in v0.2.17

func CanonicalDigest(value any) (Digest, error)

func CloneDigest

func CloneDigest(value *Digest) *Digest

func DigestBytes

func DigestBytes(content []byte) Digest

DigestBytes returns the canonical SHA-256 digest representation used by the artifact store for arbitrary immutable content.

Jump to

Keyboard shortcuts

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