SqlColumnEncryptionCspProvider Class
The CMK Store provider implementation for using Microsoft CAPI based Cryptographic Service Providers (CSP) with Always Encrypted.
Assembly: System.Data (in System.Data.dll)
System.Data.SqlClient::SqlColumnEncryptionKeyStoreProvider
System.Data.SqlClient::SqlColumnEncryptionCspProvider
| Name | Description | |
|---|---|---|
![]() | SqlColumnEncryptionCspProvider() | Initializes a new instance of the SqlColumnEncryptionCspProvider class. |
| Name | Description | |
|---|---|---|
![]() | DecryptColumnEncryptionKey(String^, String^, array<Byte>^) | Decrypts the given encrypted value using an asymmetric key specified by the key path and algorithm. The key path will be in the format of [ProviderName]/KeyIdentifier and should be an asymmetric key stored in the specified CSP provider. The valid algorithm used to encrypt/decrypt the CEK is 'RSA_OAEP'.(Overrides SqlColumnEncryptionKeyStoreProvider::DecryptColumnEncryptionKey(String^, String^, array<Byte>^).) |
![]() | EncryptColumnEncryptionKey(String^, String^, array<Byte>^) | Encrypts the given plain text column encryption key using an asymmetric key specified by the key path and the specified algorithm. The key path will be in the format of [ProviderName]/KeyIdentifier and should be an asymmetric key stored in the specified CSP provider. The valid algorithm used to encrypt/decrypt the CEK is 'RSA_OAEP'.(Overrides SqlColumnEncryptionKeyStoreProvider::EncryptColumnEncryptionKey(String^, String^, array<Byte>^).) |
![]() | Equals(Object^) | Determines whether the specified object is equal to the current object.(Inherited from Object.) |
![]() | Finalize() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.) |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType() | |
![]() | MemberwiseClone() | |
![]() | ToString() | Returns a string that represents the current object.(Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() ![]() | ProviderName | A constant string for the provider name 'MSSQL_CSP_PROVIDER'. |
Enables storing Always Encrypted column master key keys in a store, such as a hardware security module (HSM), that supports the Microsoft CAPI based Cryptographic Service Providers (CSP).
Available since 4.6.1
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.



