<PackageReference Include="Microsoft.Data.SqlClient" Version="7.0.0-preview3.25342.7" />

Microsoft.Data.SqlClient.AlwaysEncrypted.EncryptedColumnEncryptionKeyParameters

Represents the parameters used to construct an encrypted column encryption key, used to encrypt and decrypt data in SQL Server Always Encrypted columns.
public EncryptedColumnEncryptionKeyParameters(RSA rsa, string keyPath, string keyType, string keyPathReference)

Initializes a new instance of the EncryptedColumnEncryptionKeyParameters struct with the specified RSA key, key path, key type, and key path reference.

public byte[] Decrypt(byte[] encryptedCek)

Decrypts an encrypted column encryption key (CEK) using the RSA key associated with this instance.

public void Dispose()

Releases all resources used by this EncryptedColumnEncryptionKeyParameters.

public byte[] Encrypt(byte[] columnEncryptionKey)

Encrypts the specified column encryption key using the RSA key associated with this instance.