DecryptData decrypts the data stream
(rc io.ReadCloser)
| 1097 | |
| 1098 | // DecryptData decrypts the data stream |
| 1099 | func (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 | // |