DecryptDataSeek decrypts the data stream from offset The open function must return a ReadCloser opened to the offset supplied. You must use this form of DecryptData if you might want to Seek the file handle
(ctx context.Context, open OpenRangeSeek, offset, limit int64)
| 1110 | // |
| 1111 | // You must use this form of DecryptData if you might want to Seek the file handle |
| 1112 | func (c *Cipher) DecryptDataSeek(ctx context.Context, open OpenRangeSeek, offset, limit int64) (ReadSeekCloser, error) { |
| 1113 | out, err := c.newDecrypterSeek(ctx, open, offset, limit) |
| 1114 | if err != nil { |
| 1115 | return nil, err |
| 1116 | } |
| 1117 | return out, nil |
| 1118 | } |
| 1119 | |
| 1120 | // EncryptedSize calculates the size of the data when encrypted |
| 1121 | func (c *Cipher) EncryptedSize(size int64) int64 { |