SqlColumnEncryptionCngProvider.DecryptColumnEncryptionKey(String, String, Byte[]) 方法
定义
使用由密钥路径和指定算法指定的非对称密钥对给定的加密值进行解密。Decrypts the given encrypted value using an asymmetric key specified by the key path and the specified algorithm. 密钥路径将采用格式 [ProviderName]/KeyIdentifier,并且应当为存储在指定 CNG 密钥存储提供程序中的非对称密钥。The key path will be in the format of [ProviderName]/KeyIdentifier and should be an asymmetric key stored in the specified CNG key store provider. 用于加密/解密 CEK 的有效算法是“RSA_OAEP”。The valid algorithm used to encrypt/decrypt the CEK is 'RSA_OAEP'.
public:
override cli::array <System::Byte> ^ DecryptColumnEncryptionKey(System::String ^ masterKeyPath, System::String ^ encryptionAlgorithm, cli::array <System::Byte> ^ encryptedColumnEncryptionKey);
public override byte[] DecryptColumnEncryptionKey (string masterKeyPath, string encryptionAlgorithm, byte[] encryptedColumnEncryptionKey);
override this.DecryptColumnEncryptionKey : string * string * byte[] -> byte[]
Public Overrides Function DecryptColumnEncryptionKey (masterKeyPath As String, encryptionAlgorithm As String, encryptedColumnEncryptionKey As Byte()) As Byte()
参数
- masterKeyPath
- String
主密钥路径。The master key path.
- encryptionAlgorithm
- String
加密算法。The encryption algorithm.
- encryptedColumnEncryptionKey
- Byte[]
加密的列加密密钥。The encrypted column encryption key.
返回
- Byte[]
已解密的列加密密钥。The decrypted column encryption key.