SqlColumnEncryptionKeyStoreProvider.EncryptColumnEncryptionKey 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
利用欄位主金鑰、指定的金鑰路徑及演算法加密欄位加密金鑰。
public:
abstract cli::array <System::Byte> ^ EncryptColumnEncryptionKey(System::String ^ masterKeyPath, System::String ^ encryptionAlgorithm, cli::array <System::Byte> ^ columnEncryptionKey);
public abstract byte[] EncryptColumnEncryptionKey(string masterKeyPath, string encryptionAlgorithm, byte[] columnEncryptionKey);
abstract member EncryptColumnEncryptionKey : string * string * byte[] -> byte[]
Public MustOverride Function EncryptColumnEncryptionKey (masterKeyPath As String, encryptionAlgorithm As String, columnEncryptionKey As Byte()) As Byte()
參數
- masterKeyPath
- String
欄位主鍵路徑。 路徑格式是針對金鑰儲存提供者實作而定(例如憑證儲存的拇指印,或 Azure Key Vault 的金鑰識別碼 URL)。
- encryptionAlgorithm
- String
加密演算法名稱。 例如: RSA_OAEP 。
- columnEncryptionKey
- Byte[]
欄位加密金鑰用於加密。
傳回
Byte[]
回傳 Byte 一個代表加密欄位加密金鑰的陣列。