Skip to content

[Client encryption]: Implement EncryptionContainerStream#4848

Closed
JanHyka wants to merge 114 commits intoAzure:masterfrom
juraj-blazek:users/jan-hyka/new_controls
Closed

[Client encryption]: Implement EncryptionContainerStream#4848
JanHyka wants to merge 114 commits intoAzure:masterfrom
juraj-blazek:users/jan-hyka/new_controls

Conversation

@JanHyka
Copy link
Copy Markdown
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
@JanHyka JanHyka closed this Sep 18, 2025
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