tink-rust icon indicating copy to clipboard operation
tink-rust copied to clipboard

Decrypting reader stream - start at offset / seek?

Open ChocolateLoverRaj opened this issue 10 months ago • 0 comments

If I have 500GB of encrypted data (encrypted with tink_streaming_aead), is it possible to continue decrypting starting at 300GB?

If not, is there any other algorithm / Rust library that lets me:

  • Encrypt / decrypt a stream chunk by chunk
  • Not have additional size per chunk, and only have an additional tag or something at the very beginning or very end?
  • Start in the middle of the stream instead of the beginning (like the Seek trait)?

Here is my use case:

  • Encrypt backup data (a diff of multiple files in one blob / S3 Object)
  • Download the backup data to restore, but handle continuing from the middle of an object if the download failed previously.

ChocolateLoverRaj avatar Jan 09 '25 00:01 ChocolateLoverRaj