MCPcopy
hub / github.com/kopia/kopia / Verify

Method Verify

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

Source from the content-addressed store, hash-verified

55}
56
57func (p checksumProtection) Verify(_ string, input gather.Bytes, output *gather.WriteBuffer) error {
58 output.Reset()
59 //nolint:wrapcheck
60 return hmac.VerifyAndStrip(input, p.Secret, output)
61}
62
63func (p checksumProtection) OverheadBytes() int {
64 return sha256.Size

Callers

nothing calls this directly

Calls 2

VerifyAndStripFunction · 0.92
ResetMethod · 0.65

Tested by

no test coverage detected