SqlColumnEncryptionCertificateStoreProvider.EncryptColumnEncryptionKey 方法

定义

使用具有指定密钥路径的证书和使用指定的算法对列加密密钥进行加密。 密钥路径的格式应为“Local Machine/My/<certificate_thumbprint>”或“Current User/My/<certificate_thumbprint>”。

public override byte[] EncryptColumnEncryptionKey (string masterKeyPath, string encryptionAlgorithm, byte[] columnEncryptionKey);

参数

masterKeyPath
String

主密钥路径。

encryptionAlgorithm
String

加密算法。 目前,唯一有效的值为: RSA_OAEP

columnEncryptionKey
Byte[]

加密的列加密密钥。

返回

Byte[]

返回 Byte
加密的列加密密钥。

适用于

产品 版本
.NET Framework 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1