MCPcopy
hub / github.com/kopia/kopia / Protect

Method Protect

internal/cacheprot/storage_protection.go:52–55  ·  view source on GitHub ↗
(_ string, input gather.Bytes, output *gather.WriteBuffer)

Source from the content-addressed store, hash-verified

50}
51
52func (p checksumProtection) Protect(_ string, input gather.Bytes, output *gather.WriteBuffer) {
53 output.Reset()
54 hmac.Append(input, p.Secret, output)
55}
56
57func (p checksumProtection) Verify(_ string, input gather.Bytes, output *gather.WriteBuffer) error {
58 output.Reset()

Callers

nothing calls this directly

Calls 2

AppendFunction · 0.92
ResetMethod · 0.65

Tested by

no test coverage detected