digest

package
v2.49.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SHA256DigestAlgorithm = "sha256"
	SHA512DigestAlgorithm = "sha512"
)

Variables

This section is empty.

Functions

func CalculateDigestWithAlgorithm

func CalculateDigestWithAlgorithm(r io.Reader, alg string) (string, error)

func IsValidDigestAlgorithm

func IsValidDigestAlgorithm(alg string) bool

IsValidDigestAlgorithm returns true if the provided algorithm is supported

func ValidDigestAlgorithms

func ValidDigestAlgorithms() []string

ValidDigestAlgorithms returns a list of supported digest algorithms

Types

This section is empty.

Jump to

Keyboard shortcuts

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