Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Client encryption]: Implement EncryptionContainerStream #4848

Draft
wants to merge 114 commits into
base: master
Choose a base branch
from

Conversation

JanHyka
Copy link
Contributor

@JanHyka JanHyka commented Oct 24, 2024

Pull Request Template

Description

!This is a work in progress draft!

To allow full utilization of new EncryptionProcessor API, new EncryptionContainer was introduced. It entirely drops all premature deserializations, doesn't explicitly use Newtonsoft anywhere and works with Streams internally until the very last moment where actual strongly typed deserialization is requested. If user asks for Stream, no deserialization is performed, only decryption/decompression.

Internally RecyclableMemoryStream is used instead of MemoryStream since MemoryStream buffer resize always performs new allocation and copy.

To be processed after #4847

Includes

Type of change

Please delete options that are not relevant.

  • [] New feature (non-breaking change which adds functionality)
  • [] This change requires a documentation update

Closing issues

Constributes to #4678

juraj-blazek and others added 30 commits September 12, 2024 13:41
~ reduce validations overhead
~ update api file
@JanHyka JanHyka changed the title [Client encryptions]: Implement EncryptionContainerStream [Client encryption]: Implement EncryptionContainerStream Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants