แก้ไข

แชร์ผ่าน


SqlColumnEncryptionCertificateStoreProvider.DecryptColumnEncryptionKey Method

Definition

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_thumbprint>" or "Current User/My/<certificate_thumbprint>".

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. Currently, the only valid value is: RSA_OAEP.

encryptedColumnEncryptionKey
Byte[]

The encrypted column encryption key.

Returns

Byte[]

Returns Byte.
The decrypted column encryption key.

Applies to