SqlColumnEncryptionCngProvider.EncryptColumnEncryptionKey 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
利用由金鑰路徑與演算法指定的非對稱金鑰加密給定的明文欄位加密金鑰。 金鑰路徑格式為 [ProviderName]/KeyIdentifier,並應為儲存在指定 CNG 金鑰儲存提供者中的非對稱金鑰。 用於加密/解密 CEK 的有效演算法是「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()
參數
- masterKeyPath
- String
主鑰匙路徑。
- encryptionAlgorithm
- String
加密演算法。
- columnEncryptionKey
- Byte[]
加密欄位加密金鑰。
傳回
Byte[]
加密欄位加密金鑰。