MCPcopy
hub / github.com/kopia/kopia / Decrypt

Method Decrypt

repo/format/encryptor_wrapper.go:26–37  ·  view source on GitHub ↗
(cipherText gather.Bytes, contentID []byte, output *gather.WriteBuffer)

Source from the content-addressed store, hash-verified

24}
25
26func (p *encryptorWrapper) Decrypt(cipherText gather.Bytes, contentID []byte, output *gather.WriteBuffer) error {
27 var tmp gather.WriteBuffer
28 defer tmp.Close()
29
30 if err := p.next.Decrypt(cipherText, contentID, &tmp); err != nil {
31 //nolint:wrapcheck
32 return err
33 }
34
35 //nolint:wrapcheck
36 return p.impl.Decrypt(tmp.Bytes(), contentID, output)
37}
38
39func (p *encryptorWrapper) Overhead() int {
40 panic("Should not be called")

Callers

nothing calls this directly

Calls 3

CloseMethod · 0.95
BytesMethod · 0.95
DecryptMethod · 0.65

Tested by

no test coverage detected