Skip to content

Commit df22ac2

Browse files
committed
[Cryptography] Add EncryptMessageRequest and DataKey
1 parent 1ff4ac0 commit df22ac2

2 files changed

Lines changed: 22 additions & 0 deletions

File tree

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
namespace Amazon.Cryptography;
2+
3+
public sealed class EncryptMessageRequest
4+
{
5+
public required AlgorithmSuiteId AlgorithmId { get; init; }
6+
7+
public required EncryptionContext EncryptionContext { get; init; }
8+
9+
public uint FrameLength { get; } = 4096;
10+
11+
public required byte[] Plaintext { get; init; }
12+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
namespace Amazon.Cryptography;
2+
3+
public readonly ref struct DataKey
4+
{
5+
public byte[] RawKey { get; init; }
6+
7+
public Utf8String ProviderId { get; init; }
8+
9+
public Utf8String ProviderContext { get; init; }
10+
}

0 commit comments

Comments
 (0)