-
Notifications
You must be signed in to change notification settings - Fork 499
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Client encryption]: Adds Stream based processor (#4806)
# Pull Request Template ## Description - JsonProcessor.Stream was added to drop DOM overhead. - EncryptionProcessor has added overloads allowing consumer provision of output stream - tests were extended to new processor - performance tests were extended by provided stream overloads. RecyclableMemoryStream 3.0.1 is being used. ## Type of change Please delete options that are not relevant. - [] New feature (non-breaking change which adds functionality) - [] This change might require a documentation update ## Closing issues Contributes to #4678 --------- Co-authored-by: Juraj Blazek <[email protected]> Co-authored-by: juraj-blazek <[email protected]> Co-authored-by: Santosh Kulkarni <[email protected]> Co-authored-by: Kiran Kumar Kolli <[email protected]>
- Loading branch information
1 parent
89c79a2
commit f1e5c2f
Showing
18 changed files
with
1,177 additions
and
138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
Microsoft.Azure.Cosmos.Encryption.Custom/src/EncryptionFormatVersion.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// ------------------------------------------------------------ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// ------------------------------------------------------------ | ||
|
||
namespace Microsoft.Azure.Cosmos.Encryption.Custom | ||
{ | ||
internal static class EncryptionFormatVersion | ||
{ | ||
public const int AeAes = 2; | ||
public const int Mde = 3; | ||
public const int MdeWithCompression = 4; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
Microsoft.Azure.Cosmos.Encryption.Custom/src/EncryptionPropertiesWrapper.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// ------------------------------------------------------------ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// ------------------------------------------------------------ | ||
|
||
namespace Microsoft.Azure.Cosmos.Encryption.Custom | ||
{ | ||
using System.Text.Json.Serialization; | ||
|
||
internal class EncryptionPropertiesWrapper | ||
{ | ||
[JsonPropertyName(Constants.EncryptedInfo)] | ||
public EncryptionProperties EncryptionProperties { get; } | ||
|
||
public EncryptionPropertiesWrapper(EncryptionProperties encryptionProperties) | ||
{ | ||
this.EncryptionProperties = encryptionProperties; | ||
} | ||
} | ||
} |
Oops, something went wrong.