tink-crypto/tink

Seekable writes to encrypted files

stusmall opened this issue · 1 comments

Help us help you
I'm working on evaluating tink for a project. I'm experimenting with the C++ implementation and targeting a few different systems. I have a series of medium sized files that I will need to regularly read and update arbitrary sections of. Performance is critical so I can't decrypt and re-encrypt the files each time a small slice needs to be edited.

What sort of feature would you like to see?

I see that is there is a DecryptingRandomAccessStream for seeking in encrypted files and reading chunks, I'd also like to update small slices of data inside the blob. Does any API like this exist today? I've looked but can't seem to find any. I don't know if this is related to the underlying crypto implementation or because of the API exposed.

Looked into the implementation and I saw why there is no way to expose a random access write with the current implementation.