[WIP] Add support of objects encryption #2197
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This change is not complete yet.
Streaming encryption produces encrypted data with a length equals to the plain version of the data. We need streaming so mirroring can work effectively: mirroring needs to know the size of the source and target object size to compare and decide if it should mirror or not, but in some encryption algorithms like CBC, it is not the same (though close) so it would be difficult to decide if we should upload or not.
Streaming has its own disadvantages.. I am investigation..
Fixes #2074