SqlColumnEncryptionCertificateStoreProvider::DecryptColumnEncryptionKey Method (String^, String^, array<Byte>^)

.NET Framework (current version)
 

Decrypts the specified encrypted value of a column encryption key. The encrypted value is expected to be encrypted using the certificate with the specified key path and using the specified algorithm. The format of the key path should be “Local Machine/My/<certificate_thumbrint>” or “Current User/My/<certificate_thumbprint>”.

Namespace:   System.Data.SqlClient
Assembly:  System.Data (in System.Data.dll)

public:
virtual array<unsigned char>^ DecryptColumnEncryptionKey(
	String^ masterKeyPath,
	String^ encryptionAlgorithm,
	array<unsigned char>^ encryptedColumnEncryptionKey
) override

Parameters

masterKeyPath
Type: System::String^

The master key path.

encryptionAlgorithm
Type: System::String^

The encryption algorithm. Currently, the only valid value is: RSA_OAEP

encryptedColumnEncryptionKey
Type: array<System::Byte>^

The encrypted column encryption key.

Return Value

Type: array<System::Byte>^

Returns Byte.
The decrypted column encryption key.

.NET Framework
Available since 4.6
Return to top
Show: