SqlColumnEncryptionCspProvider.EncryptColumnEncryptionKey Metoda

Definice

Zašifruje zadaný šifrovací klíč sloupce ve formátu prostého textu pomocí asymetrického klíče určeného cestou ke klíči a zadaným algoritmem. Cesta ke klíči bude ve formátu [ProviderName]/KeyIdentifier a měla by být asymetrickým klíčem uloženým v zadaném poskytovateli CSP. Platný algoritmus použitý k šifrování/dešifrování CEK je "RSA_OAEP".

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

Parametry

masterKeyPath
String

Cesta k hlavnímu klíči.

encryptionAlgorithm
String

Šifrovací algoritmus.

columnEncryptionKey
Byte[]

Šifrovaný šifrovací klíč sloupce

Návraty

Byte[]

Šifrovaný šifrovací klíč sloupce

Platí pro