Bewerken

Share via


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'.

public:
 override cli::array <System::Byte> ^ DecryptColumnEncryptionKey(System::String ^ masterKeyPath, System::String ^ encryptionAlgorithm, cli::array <System::Byte> ^ encryptedColumnEncryptionKey);
public override byte[] DecryptColumnEncryptionKey (string masterKeyPath, string encryptionAlgorithm, byte[] encryptedColumnEncryptionKey);
override this.DecryptColumnEncryptionKey : string * string * byte[] -> byte[]
Public Overrides Function DecryptColumnEncryptionKey (masterKeyPath As String, encryptionAlgorithm As String, encryptedColumnEncryptionKey As Byte()) As Byte()

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