SqlColumnEncryptionCngProvider.DecryptColumnEncryptionKey Method

Definition

Decrypts the given encrypted value using an asymmetric key specified by the key path and the specified algorithm. The key path will be in the format of [ProviderName]/KeyIdentifier and should be an asymmetric key stored in the specified CNG key store provider. The valid algorithm used to encrypt/decrypt the CEK is 'RSA_OAEP'.

C#
public override byte[] DecryptColumnEncryptionKey(string masterKeyPath, string encryptionAlgorithm, byte[] encryptedColumnEncryptionKey);

Parameters

masterKeyPath
String

The master key path.

encryptionAlgorithm
String

The encryption algorithm.

encryptedColumnEncryptionKey
Byte[]

The encrypted column encryption key.

Returns

Byte[]

The decrypted column encryption key.

Applies to

Proizvod Verzije
.NET Framework 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1