(cipherText gather.Bytes, contentID []byte, output *gather.WriteBuffer)
| 24 | } |
| 25 | |
| 26 | func (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 | |
| 39 | func (p *encryptorWrapper) Overhead() int { |
| 40 | panic("Should not be called") |