MCPcopy Index your code
hub / github.com/rclone/rclone / DecryptData

Method DecryptData

backend/crypt/cipher.go:1099–1105  ·  view source on GitHub ↗

DecryptData decrypts the data stream

(rc io.ReadCloser)

Source from the content-addressed store, hash-verified

1097
1098// DecryptData decrypts the data stream
1099func (c *Cipher) DecryptData(rc io.ReadCloser) (io.ReadCloser, error) {
1100 out, err := c.newDecrypter(rc)
1101 if err != nil {
1102 return nil, err
1103 }
1104 return out, nil
1105}
1106
1107// DecryptDataSeek decrypts the data stream from offset
1108//

Callers 1

TestEncryptDataFunction · 0.80

Calls 1

newDecrypterMethod · 0.95

Tested by 1

TestEncryptDataFunction · 0.64