23 references to KeySizes
System.Security.Cryptography (23)
src\libraries\Common\src\System\Security\Cryptography\DSAOpenSsl.cs (1)
379
private static readonly KeySizes[] s_legalKeySizes = new KeySizes[] { new
KeySizes
(minSize: 512, maxSize: 3072, skipSize: 64) };
src\libraries\Common\src\System\Security\Cryptography\RSAOpenSsl.cs (1)
78
return new[] { new
KeySizes
(512, 16384, 8) };
System\Security\Cryptography\Aes.cs (2)
36
private static readonly KeySizes[] s_legalBlockSizes = { new
KeySizes
(128, 128, 0) };
37
private static readonly KeySizes[] s_legalKeySizes = { new
KeySizes
(128, 256, 64) };
System\Security\Cryptography\AesCcm.cs (2)
14
public static KeySizes NonceByteSizes { get; } = new
KeySizes
(7, 13, 1);
15
public static KeySizes TagByteSizes { get; } = new
KeySizes
(4, 16, 2);
System\Security\Cryptography\AesGcm.cs (1)
18
public static KeySizes NonceByteSizes { get; } = new
KeySizes
(NonceSize, NonceSize, 1);
System\Security\Cryptography\AesGcm.OpenSsl.cs (1)
15
public static KeySizes TagByteSizes { get; } = new
KeySizes
(12, 16, 1);
System\Security\Cryptography\DES.cs (2)
120
new
KeySizes
(minSize: 64, maxSize: 64, skipSize: 0)
125
new
KeySizes
(minSize: 64, maxSize: 64, skipSize: 0)
System\Security\Cryptography\DSACryptoServiceProvider.Unix.cs (2)
21
new
KeySizes
(512, 1024, 64) // Use the same values as Csp Windows because the _impl has different values (512, 3072, 64)
26
new
KeySizes
(1024, 1024, 0) // Intersection of legal sizes on Android and Windows provider
System\Security\Cryptography\ECAlgorithm.cs (2)
24
new
KeySizes
(minSize: 256, maxSize: 384, skipSize: 128),
25
new
KeySizes
(minSize: 521, maxSize: 521, skipSize: 0),
System\Security\Cryptography\RC2.cs (2)
80
new
KeySizes
(minSize: 64, maxSize: 64, skipSize: 0)
85
new
KeySizes
(minSize: 40, maxSize: 1024, skipSize: 8) // 1024 bits is theoretical max according to the RFC
System\Security\Cryptography\RC2CryptoServiceProvider.Unix.cs (1)
17
new
KeySizes
(40, 128, 8) // csp implementation only goes up to 128
System\Security\Cryptography\Rijndael.cs (2)
39
new
KeySizes
(minSize: 128, maxSize: 256, skipSize: 64)
44
new
KeySizes
(minSize: 128, maxSize: 256, skipSize: 64)
System\Security\Cryptography\RijndaelImplementation.cs (1)
23
LegalBlockSizesValue = new KeySizes[] { new
KeySizes
(minSize: 128, maxSize: 128, skipSize: 0) };
System\Security\Cryptography\RijndaelManaged.cs (1)
19
LegalBlockSizesValue = new KeySizes[] { new
KeySizes
(minSize: 128, maxSize: 128, skipSize: 0) };
System\Security\Cryptography\TripleDES.cs (2)
96
new
KeySizes
(minSize: 64, maxSize: 64, skipSize: 0)
101
new
KeySizes
(minSize: 2*64, maxSize: 3*64, skipSize: 64)