SqlColumnEncryptionKeyStoreProvider::EncryptColumnEncryptionKey Method (String^, String^, array<Byte>^)

.NET Framework (current version)
 

Encrypts a column encryption key using the column master key with the specified key path and using the specified algorithm.

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

public:
virtual array<unsigned char>^ EncryptColumnEncryptionKey(
	String^ masterKeyPath,
	String^ encryptionAlgorithm,
	array<unsigned char>^ columnEncryptionKey
) abstract

Parameters

masterKeyPath
Type: System::String^

The master key path.

encryptionAlgorithm
Type: System::String^

The encryption algorithm.

columnEncryptionKey
Type: array<System::Byte>^

The encrypted column encryption key.

Return Value

Type: array<System::Byte>^

Returns Byte.
The encrypted column encryption key.

.NET Framework
Available since 4.6
Return to top
Show: