MCPcopy
hub / github.com/caddyserver/certmagic / fastHash

Function fastHash

crypto.go:137–141  ·  view source on GitHub ↗

fastHash hashes input using a hashing algorithm that is fast, and returns the hash as a hex-encoded string. Do not use this for cryptographic purposes.

(input []byte)

Source from the content-addressed store, hash-verified

135// is fast, and returns the hash as a hex-encoded string.
136// Do not use this for cryptographic purposes.
137func fastHash(input []byte) string {
138 h := fnv.New32a()
139 h.Write(input)
140 return fmt.Sprintf("%x", h.Sum32())
141}
142
143// saveCertResource saves the certificate resource to disk. This
144// includes the certificate file itself, the private key, and the

Callers 1

OCSPStapleMethod · 0.85

Calls 1

WriteMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…