MCPcopy Create free account
hub / github.com/cli/cli / ValidDigestAlgorithms

Function ValidDigestAlgorithms

pkg/cmd/attestation/artifact/digest/digest.go:33–35  ·  view source on GitHub ↗

ValidDigestAlgorithms returns a list of supported digest algorithms

()

Source from the content-addressed store, hash-verified

31
32// ValidDigestAlgorithms returns a list of supported digest algorithms
33func ValidDigestAlgorithms() []string {
34 return validDigestAlgorithms[:]
35}
36
37func CalculateDigestWithAlgorithm(r io.Reader, alg string) (string, error) {
38 var h hash.Hash

Callers 1

Calls

no outgoing calls

Tested by 1