MCPcopy Create free account
hub / github.com/WICG/webpackage / Sign

Method Sign

go/internal/signingalgorithm/signingalgorithm.go:23–26  ·  view source on GitHub ↗

Sign returns the SHA-256 hash of the input.

(m []byte)

Source from the content-addressed store, hash-verified

21
22// Sign returns the SHA-256 hash of the input.
23func (e *MockSigningAlgorithm) Sign(m []byte) ([]byte, error) {
24 h := sha256.Sum256(m)
25 return h[:], nil
26}
27
28type ecdsaSigningAlgorithm struct {
29 privKey *ecdsa.PrivateKey

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected