88 references to CipherMode
mscorlib (50)
system\security\cryptography\aes.cs (1)
33
ModeValue =
CipherMode
.CBC;
system\security\cryptography\cryptoapitransform.cs (4)
33
private
CipherMode
ModeValue;
47
CipherMode
cipherChainingMode, int blockSize,
78
if (rgArgValues[j] is
CipherMode
) {
100
ModeValue = (
CipherMode
) _rgArgValues[i];
system\security\cryptography\descryptoserviceprovider.cs (7)
71
private ICryptoTransform _NewEncryptor (byte[] rgbKey,
CipherMode
mode, byte[] rgbIV, int feedbackSize, CryptoAPITransformMode encryptMode) {
78
if (mode ==
CipherMode
.OFB)
81
if ((mode ==
CipherMode
.CFB) && (feedbackSize != 8))
91
if (mode !=
CipherMode
.CBC) {
98
if (mode !=
CipherMode
.ECB) {
119
if ((mode ==
CipherMode
.OFB) || (mode ==
CipherMode
.CFB)) {
system\security\cryptography\rc2cryptoserviceprovider.cs (7)
105
private ICryptoTransform _NewEncryptor (byte[] rgbKey,
CipherMode
mode, byte[] rgbIV,
113
if (mode ==
CipherMode
.OFB)
116
if ((mode ==
CipherMode
.CFB) && (feedbackSize != 8))
139
if (mode !=
CipherMode
.CBC) {
146
if (mode !=
CipherMode
.ECB) {
167
if ((mode ==
CipherMode
.OFB) || (mode ==
CipherMode
.CFB)) {
system\security\cryptography\rijndaelmanaged.cs (1)
68
CipherMode
mode,
system\security\cryptography\rijndaelmanagedtransform.cs (18)
24
private
CipherMode
m_cipherMode;
49
CipherMode
mode,
104
case
CipherMode
.ECB:
105
case
CipherMode
.CBC:
110
case
CipherMode
.CFB:
121
if (mode ==
CipherMode
.CBC || mode ==
CipherMode
.CFB) {
144
if (m_cipherMode ==
CipherMode
.CBC) {
153
if (m_cipherMode ==
CipherMode
.CFB) {
370
if (m_cipherMode ==
CipherMode
.CBC)
374
if (m_cipherMode ==
CipherMode
.CFB)
476
if (m_cipherMode ==
CipherMode
.CFB) {
500
if (m_cipherMode ==
CipherMode
.CBC) {
513
if (m_cipherMode ==
CipherMode
.CFB) {
559
if (m_cipherMode ==
CipherMode
.CBC) {
619
if (m_cipherMode ==
CipherMode
.CFB) {
643
if (m_cipherMode ==
CipherMode
.CFB) {
670
if (m_cipherMode ==
CipherMode
.CBC) {
system\security\cryptography\symmetricalgorithm.cs (5)
24
protected
CipherMode
ModeValue;
34
ModeValue =
CipherMode
.CBC;
169
public virtual
CipherMode
Mode {
172
if ((value <
CipherMode
.CBC) || (
CipherMode
.CFB < value))
system\security\cryptography\tripledescryptoserviceprovider.cs (7)
66
private ICryptoTransform _NewEncryptor (byte[] rgbKey,
CipherMode
mode, byte[] rgbIV, int feedbackSize, CryptoAPITransformMode encryptMode) {
74
if (mode ==
CipherMode
.OFB)
77
if ((mode ==
CipherMode
.CFB) && (feedbackSize != 8))
87
if (mode !=
CipherMode
.CBC) {
94
if (mode !=
CipherMode
.ECB) {
115
if ((mode ==
CipherMode
.OFB) || (mode ==
CipherMode
.CFB)) {
System.Core (21)
System\Security\Cryptography\AesCryptoServiceProvider.cs (1)
213
if (Mode !=
CipherMode
.ECB && IVValue == null) {
System\Security\Cryptography\AesManaged.cs (5)
63
public override
CipherMode
Mode {
67
Contract.Ensures(m_impl.Mode !=
CipherMode
.CFB && m_impl.Mode !=
CipherMode
.OFB);
72
if (value ==
CipherMode
.CFB || value ==
CipherMode
.OFB) {
System\Security\Cryptography\BCryptNative.cs (6)
377
internal static SafeBCryptAlgorithmHandle GetSharedHandle(
CipherMode
cipherMode)
383
case
CipherMode
.CBC:
385
case
CipherMode
.ECB:
411
internal static SafeBCryptAlgorithmHandle GetSharedHandle(
CipherMode
cipherMode)
417
case
CipherMode
.CBC:
419
case
CipherMode
.ECB:
System\Security\Cryptography\CapiSymmetricAlgorithm.cs (9)
47
CipherMode
cipherMode,
363
private static byte[] ProcessIV(byte[] iv, int blockSize,
CipherMode
cipherMode) {
365
Contract.Ensures(cipherMode ==
CipherMode
.ECB ||
379
else if (cipherMode !=
CipherMode
.ECB) {
580
private static SafeCapiKeyHandle SetupKey(SafeCapiKeyHandle key, byte[] iv,
CipherMode
cipherMode, int feedbackSize) {
582
Contract.Requires(cipherMode ==
CipherMode
.ECB || iv != null);
595
if (cipherMode !=
CipherMode
.ECB) {
600
if (cipherMode ==
CipherMode
.CFB || cipherMode ==
CipherMode
.OFB) {
System.Data (2)
fx\src\data\System\Data\SqlClient\SqlAeadAes256CbcHmac256Algorithm.cs (2)
54
private const
CipherMode
_cipherMode =
CipherMode
.CBC;
System.IdentityModel (4)
System\IdentityModel\EncryptedDataElement.cs (2)
83
algorithm.Mode =
CipherMode
.CBC;
111
algorithm.Mode =
CipherMode
.CBC;
System\IdentityModel\RijndaelCryptoServiceProvider.cs (2)
24
if (this.ModeValue !=
CipherMode
.CBC)
36
if (this.ModeValue !=
CipherMode
.CBC)
System.Security (9)
system\security\cryptography\xml\encryptedxml.cs (7)
102
private
CipherMode
m_mode;
122
m_mode =
CipherMode
.CBC;
178
public
CipherMode
Mode {
657
CipherMode
origMode = symmetricAlgorithm.Mode;
674
if (m_mode ==
CipherMode
.ECB) {
707
CipherMode
origMode = symmetricAlgorithm.Mode;
713
if (m_mode !=
CipherMode
.ECB)
system\security\cryptography\xml\symmetrickeywrap.cs (2)
108
aes.Mode =
CipherMode
.ECB;
159
aes.Mode =
CipherMode
.ECB;
System.ServiceModel (2)
System\ServiceModel\Security\CryptoHelper.cs (2)
154
algorithm.Mode =
CipherMode
.CBC;
246
algorithm.Mode =
CipherMode
.CBC;