MCPcopy
hub / github.com/smallstep/cli / hash

Function hash

command/crypto/key/sign.go:204–208  ·  view source on GitHub ↗
(h crypto.Hash, data []byte)

Source from the content-addressed store, hash-verified

202}
203
204func hash(h crypto.Hash, data []byte) []byte {
205 v := h.New()
206 v.Write(data)
207 return v.Sum(nil)
208}
209
210func rsaHash(ctx *cli.Context) (crypto.SignerOpts, error) {
211 var h crypto.Hash

Callers 2

signActionFunction · 0.85
verifyActionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…