Uredi

Deli z drugimi prek


SqlColumnEncryptionCertificateStoreProvider.EncryptColumnEncryptionKey Method

Definition

Encrypts a column encryption key 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> ^ EncryptColumnEncryptionKey(System::String ^ masterKeyPath, System::String ^ encryptionAlgorithm, cli::array <System::Byte> ^ columnEncryptionKey);
public override byte[] EncryptColumnEncryptionKey (string masterKeyPath, string encryptionAlgorithm, byte[] columnEncryptionKey);
override this.EncryptColumnEncryptionKey : string * string * byte[] -> byte[]
Public Overrides Function EncryptColumnEncryptionKey (masterKeyPath As String, encryptionAlgorithm As String, columnEncryptionKey As Byte()) As Byte()

Parameters

masterKeyPath
String

The master key path.

encryptionAlgorithm
String

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

columnEncryptionKey
Byte[]

The encrypted column encryption key.

Returns

Byte[]

Returns Byte.
The encrypted column encryption key.

Applies to