Skip to content

Decrypting reader stream - start at offset / seek? #763

@ChocolateLoverRaj

Description

@ChocolateLoverRaj

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions