Nyelv

SqlColumnEncryptionKeyStoreProvider.DecryptColumnEncryptionKey Method

Definition

Decrypts the specified encrypted value of a column encryption key. The encrypted value is expected to be encrypted using the column master key with the specified key path and using the specified algorithm.

public:
 abstract cli::array <System::Byte> ^ DecryptColumnEncryptionKey(System::String ^ masterKeyPath, System::String ^ encryptionAlgorithm, cli::array <System::Byte> ^ encryptedColumnEncryptionKey);
public abstract byte[] DecryptColumnEncryptionKey(string masterKeyPath, string encryptionAlgorithm, byte[] encryptedColumnEncryptionKey);
abstract member DecryptColumnEncryptionKey : string * string * byte[] -> byte[]
Public MustOverride Function DecryptColumnEncryptionKey (masterKeyPath As String, encryptionAlgorithm As String, encryptedColumnEncryptionKey As Byte()) As Byte()

Parameters

masterKeyPath
String

The column master key path. The path format is specific to the key store provider implementation (e.g. a thumbprint for the certificate store, or a key identifier URL for Azure Key Vault).

encryptionAlgorithm
String

The encryption algorithm name. For example, RSA_OAEP.

encryptedColumnEncryptionKey
Byte[]

The encrypted column encryption key.

Returns

Byte[]

Returns a Byte array representing the decrypted column encryption key.

Applies to