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 密钥保管库的密钥标识符 URL)。
- encryptionAlgorithm
- String
加密算法名称。 例如,RSA_OAEP。
- columnEncryptionKey
- Byte[]
要加密的列加密密钥。
返回
Byte[]
返回表示 Byte 加密列加密密钥的数组。