24 instantiations of KeySizes
mscorlib (13)
system\security\cryptography\aes.cs (2)
20
private static KeySizes[] s_legalBlockSizes = { new
KeySizes
(128, 128, 0) };
21
private static KeySizes[] s_legalKeySizes = { new
KeySizes
(128, 256, 64) };
system\security\cryptography\des.cs (2)
21
new
KeySizes
(64, 64, 0)
24
new
KeySizes
(64, 64, 0)
system\security\cryptography\dsacryptoserviceprovider.cs (1)
76
LegalKeySizesValue = new KeySizes[] { new
KeySizes
(512, 1024, 64) }; // per the DSS spec
system\security\cryptography\rc2.cs (2)
19
new
KeySizes
(64, 64, 0)
22
new
KeySizes
(40, 1024, 8) // 1024 bits is theoretical max according to the RFC
system\security\cryptography\rc2cryptoserviceprovider.cs (1)
23
new
KeySizes
(40, 128, 8) // cryptoAPI implementation only goes up to 128
system\security\cryptography\rijndael.cs (2)
20
new
KeySizes
(128, 256, 64)
24
new
KeySizes
(128, 256, 64)
system\security\cryptography\rsacryptoserviceprovider.cs (1)
117
LegalKeySizesValue = new KeySizes[] { new
KeySizes
(384, 16384, 8) };
system\security\cryptography\tripledes.cs (2)
19
new
KeySizes
(64, 64, 0)
23
new
KeySizes
(2*64, 3*64, 64)
System.Core (8)
System\Security\Cryptography\AesCryptoServiceProvider.cs (3)
325
keySizes.Add(new
KeySizes
(128, 128, 0));
333
keySizes.Add(new
KeySizes
(192, 192, 0));
340
keySizes.Add(new
KeySizes
(256, 256, 0));
System\Security\Cryptography\ECDiffieHellmanCng.cs (2)
33
private static KeySizes[] s_legalKeySizes = new KeySizes[] { new
KeySizes
(256, 384, 128), new
KeySizes
(521, 521, 0) };
System\Security\Cryptography\ECDsaCng.cs (2)
21
private static KeySizes[] s_legalKeySizes = new KeySizes[] { new
KeySizes
(256, 384, 128), new
KeySizes
(521, 521, 0) };
System\Security\Cryptography\RsaCng.cs (1)
14
private static KeySizes[] s_legalKeySizes = new KeySizes[] { new
KeySizes
(512, 16384, 64) };
System.IdentityModel.Selectors (3)
infocard\client\System\IdentityModel\Selectors\InfoCardRSACryptoProvider.cs (1)
50
LegalKeySizesValue[0] = new
KeySizes
(keySize, keySize, 0);
infocard\client\System\IdentityModel\Selectors\InfoCardSymmetricAlgorithm.cs (2)
66
LegalBlockSizesValue = new KeySizes[] { new
KeySizes
(BlockSizeValue, BlockSizeValue, 0) };
67
LegalKeySizesValue = new KeySizes[] { new
KeySizes
(KeySizeValue, KeySizeValue, 0) };
39 references to KeySizes
mscorlib (23)
system\security\cryptography\aes.cs (2)
20
private static
KeySizes
[] s_legalBlockSizes = { new KeySizes(128, 128, 0) };
21
private static
KeySizes
[] s_legalKeySizes = { new KeySizes(128, 256, 64) };
system\security\cryptography\asymmetricalgorithm.cs (3)
17
protected
KeySizes
[] LegalKeySizesValue;
71
public virtual
KeySizes
[] LegalKeySizes {
72
get { return (
KeySizes
[]) LegalKeySizesValue.Clone(); }
system\security\cryptography\des.cs (2)
20
private static
KeySizes
[] s_legalBlockSizes = {
23
private static
KeySizes
[] s_legalKeySizes = {
system\security\cryptography\dsacryptoserviceprovider.cs (1)
76
LegalKeySizesValue = new
KeySizes
[] { new KeySizes(512, 1024, 64) }; // per the DSS spec
system\security\cryptography\rc2.cs (2)
18
private static
KeySizes
[] s_legalBlockSizes = {
21
private static
KeySizes
[] s_legalKeySizes = {
system\security\cryptography\rc2cryptoserviceprovider.cs (1)
22
private static
KeySizes
[] s_legalKeySizes = {
system\security\cryptography\rijndael.cs (2)
19
private static
KeySizes
[] s_legalBlockSizes = {
23
private static
KeySizes
[] s_legalKeySizes = {
system\security\cryptography\rsacryptoserviceprovider.cs (1)
117
LegalKeySizesValue = new
KeySizes
[] { new KeySizes(384, 16384, 8) };
system\security\cryptography\symmetricalgorithm.cs (7)
21
protected
KeySizes
[] LegalBlockSizesValue;
22
protected
KeySizes
[] LegalKeySizesValue;
150
public virtual
KeySizes
[] LegalBlockSizes {
151
get { return (
KeySizes
[]) LegalBlockSizesValue.Clone(); }
154
public virtual
KeySizes
[] LegalKeySizes {
155
get { return (
KeySizes
[]) LegalKeySizesValue.Clone(); }
196
KeySizes
[] validSizes = this.LegalKeySizes;
system\security\cryptography\tripledes.cs (2)
18
private static
KeySizes
[] s_legalBlockSizes = {
22
private static
KeySizes
[] s_legalKeySizes = {
System.Core (13)
System\Security\Cryptography\AesCryptoServiceProvider.cs (7)
25
private static volatile
KeySizes
[] s_supportedKeySizes;
59
KeySizes
[] keySizes = FindSupportedKeySizes(m_cspHandle, out defaultKeySize);
299
private static
KeySizes
[] FindSupportedKeySizes(SafeCspHandle csp, out int defaultKeySize) {
301
Contract.Ensures(Contract.Result<
KeySizes
[]>() != null);
305
Contract.Ensures(Contract.Result<
KeySizes
[]>().Length == 0 ||
309
List<
KeySizes
> keySizes = new List<
KeySizes
>();
System\Security\Cryptography\ECDiffieHellmanCng.cs (2)
33
private static
KeySizes
[] s_legalKeySizes = new
KeySizes
[] { new KeySizes(256, 384, 128), new KeySizes(521, 521, 0) };
System\Security\Cryptography\ECDsaCng.cs (2)
21
private static
KeySizes
[] s_legalKeySizes = new
KeySizes
[] { new KeySizes(256, 384, 128), new KeySizes(521, 521, 0) };
System\Security\Cryptography\RsaCng.cs (2)
14
private static
KeySizes
[] s_legalKeySizes = new
KeySizes
[] { new KeySizes(512, 16384, 64) };
System.IdentityModel.Selectors (3)
infocard\client\System\IdentityModel\Selectors\InfoCardRSACryptoProvider.cs (1)
48
LegalKeySizesValue = new
KeySizes
[1];
infocard\client\System\IdentityModel\Selectors\InfoCardSymmetricAlgorithm.cs (2)
66
LegalBlockSizesValue = new
KeySizes
[] { new KeySizes(BlockSizeValue, BlockSizeValue, 0) };
67
LegalKeySizesValue = new
KeySizes
[] { new KeySizes(KeySizeValue, KeySizeValue, 0) };