Sdílet prostřednictvím


SqlColumnEncryptionCertificateStoreProvider.EncryptColumnEncryptionKey Metoda

Definice

Zašifruje šifrovací klíč sloupce pomocí certifikátu se zadanou cestou ke klíči a pomocí zadaného algoritmu. Formát cesty ke klíči by měl být "Místní počítač/My/<certificate_thumbprint>" nebo "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()

Parametry

masterKeyPath
String

Cesta k hlavnímu klíči.

encryptionAlgorithm
String

Šifrovací algoritmus. V současné době je jediná platná hodnota: RSA_OAEP.

columnEncryptionKey
Byte[]

Šifrovaný šifrovací klíč sloupce

Návraty

Byte[]

Vrací objekt Byte.
Šifrovaný šifrovací klíč sloupce

Platí pro