1 write to cipherMD
System.Data (1)
fx\src\data\System\Data\SqlClient\TdsParser.cs (1)
3644
col.
cipherMD
= new SqlCipherMetadata(cipherTable.HasValue ? (SqlTceCipherInfoEntry?)cipherTable.Value[index] : null,
38 references to cipherMD
System.Data (38)
fx\src\data\System\Data\SqlClient\SqlCommand.cs (3)
5162
if (rec.
cipherMD
!= null &&
5182
rec.
cipherMD
.EncryptionInfo = thisParam.CipherMetadata.EncryptionInfo;
5183
byte[] unencryptedBytes = SqlSecurityUtility.DecryptWithKey(rec.value.ByteArray, rec.
cipherMD
, _activeConnection.DataSource);
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (17)
519
if (col.
cipherMD
!= null) {
529
schemaRow[NonVersionedProviderType] = (int) (col.
cipherMD
!= null ? col.baseTI.type : col.type); // SqlDbType enum value - does not change with TypeSystem.
565
schemaRow[ProviderType] = (int) (col.
cipherMD
!= null ? col.baseTI.type : col.type);
585
if (col.
cipherMD
!= null) {
604
else if (col.
cipherMD
!= null) {
633
if (col.
cipherMD
!= null) {
1197
if (metaData.
cipherMD
!= null) {
1264
if (metaData.
cipherMD
!= null) {
1286
if (sqlMetaData.
cipherMD
!= null) {
1353
if (metaData.
cipherMD
!= null) {
1463
if (_metaData[i] != null && _metaData[i].
cipherMD
!= null) {
1562
if (_metaData[i] != null && _metaData[i].
cipherMD
!= null) {
1876
if (_metaData[i].
cipherMD
!= null) {
1892
if (_metaData[i].
cipherMD
!= null) {
1945
if (_metaData[i].
cipherMD
!= null) {
1956
if (_metaData[i].
cipherMD
!= null) {
1973
if (_metaData[i].
cipherMD
!= null) {
fx\src\data\System\Data\SqlClient\TdsParser.cs (14)
3634
Debug.Assert(col.
cipherMD
== null, "col.cipherMD should be null in TryProcessTceCryptoMetadata.");
5351
byte[] unencryptedBytes = SqlSecurityUtility.DecryptWithKey(b, md.
cipherMD
, _connHandler.ConnectionOptions.DataSource);
9157
SqlSecurityUtility.DecryptSymmetricKey(md.
cipherMD
, serverName);
9264
WriteShort (md.
cipherMD
.CekTableOrdinal, stateObj);
9270
stateObj.WriteByte(md.
cipherMD
.CipherAlgorithmId);
9272
if (TdsEnums.CustomCipherAlgorithmId == md.
cipherMD
.CipherAlgorithmId) {
9274
Debug.Assert (md.
cipherMD
.CipherAlgorithmName.Length < 256);
9275
stateObj.WriteByte((byte)md.
cipherMD
.CipherAlgorithmName.Length);
9276
WriteString(md.
cipherMD
.CipherAlgorithmName, stateObj);
9280
stateObj.WriteByte(md.
cipherMD
.EncryptionType);
9283
stateObj.WriteByte(md.
cipherMD
.NormalizationRuleVersion);
9468
normalizationVersion: metadata.
cipherMD
.NormalizationRuleVersion,
9478
normalizationVersion: metadata.
cipherMD
.NormalizationRuleVersion,
9485
metadata.
cipherMD
,
fx\src\data\System\Data\SqlClient\TdsParserHelperClasses.cs (4)
892
if (null !=
cipherMD
) {
893
return
cipherMD
.IsAlgorithmInitialized();
905
if (null !=
cipherMD
){
906
return
cipherMD
.NormalizationRuleVersion;