Table of Contents

Class EncryptionMaterialsV4

Namespace
Amazon.Extensions.S3.Encryption
Assembly
Amazon.Extensions.S3.Encryption.dll

The "key encrypting key" materials used in V4 encrypt/decryption with key commitment support. These materials may be an asymmetric key, a symmetric key, or a KMS key ID. Every material has its unique type such as RsaOaepSha1, AesGcm or KmsContext respectively.

public class EncryptionMaterialsV4 : EncryptionMaterialsBase
Inheritance
EncryptionMaterialsV4

Constructors

EncryptionMaterialsV4(AsymmetricAlgorithm, AsymmetricAlgorithmType)

Constructs a new EncryptionMaterialsV4 object, storing an asymmetric key.

public EncryptionMaterialsV4(AsymmetricAlgorithm algorithm, AsymmetricAlgorithmType algorithmType)

Parameters

algorithm AsymmetricAlgorithm

Generic asymmetric algorithm

algorithmType AsymmetricAlgorithmType

Type of the asymmetric algorithm

EncryptionMaterialsV4(SymmetricAlgorithm, SymmetricAlgorithmType)

Constructs a new EncryptionMaterialsV4 object, storing a symmetric key.

public EncryptionMaterialsV4(SymmetricAlgorithm algorithm, SymmetricAlgorithmType algorithmType)

Parameters

algorithm SymmetricAlgorithm

Generic symmetric algorithm

algorithmType SymmetricAlgorithmType

Type of the symmetric algorithm

EncryptionMaterialsV4(string, KmsType)

Constructs a new EncryptionMaterialsV4 object, storing a KMS Key ID

public EncryptionMaterialsV4(string kmsKeyId, KmsType kmsType)

Parameters

kmsKeyId string

Generic KMS Id

kmsType KmsType

Type of the KMS Id

EncryptionMaterialsV4(string, KmsType, Dictionary<string, string>)

Constructs a new EncryptionMaterialsV4 object, storing a KMS Key ID

public EncryptionMaterialsV4(string kmsKeyId, KmsType kmsType, Dictionary<string, string> encryptionContext)

Parameters

kmsKeyId string

Generic KMS Id

kmsType KmsType

Type of the KMS Id

encryptionContext Dictionary<string, string>

Encryption context that will be sent to AWS KMS