Skip to content

Commit 4d8147a

Browse files
committed
Port SqlColumnEncryptionCspProvider to using the new AE primitives
1 parent bf96e9b commit 4d8147a

File tree

3 files changed

+46
-271
lines changed

3 files changed

+46
-271
lines changed

src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlColumnEncryptionCngProvider.Windows.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public override byte[] DecryptColumnEncryptionKey(string masterKeyPath, string e
3838
// Validate the input parameters
3939
ValidateNonEmptyKeyPath(masterKeyPath, isSystemOp: true);
4040

41-
if (encryptedColumnEncryptionKey == null)
41+
if (encryptedColumnEncryptionKey is null)
4242
{
4343
throw SQL.NullEncryptedColumnEncryptionKey();
4444
}
@@ -64,7 +64,7 @@ public override byte[] EncryptColumnEncryptionKey(string masterKeyPath, string e
6464
// Validate the input parameters
6565
ValidateNonEmptyKeyPath(masterKeyPath, isSystemOp: false);
6666

67-
if (columnEncryptionKey == null)
67+
if (columnEncryptionKey is null)
6868
{
6969
throw SQL.NullColumnEncryptionKey();
7070
}

0 commit comments

Comments
 (0)