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

.NET Framework (current version)
 

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_thumbrint>” or “Current User/My/<certificate_thumbprint>”.

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
) 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

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: