7 overrides of KeySize
System.Security.Cryptography (7)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\ECDiffieHellmanCng.cs (1)
35public override int KeySize
src\runtime\src\libraries\Common\src\System\Security\Cryptography\ECDsaCng.cs (1)
51public override int KeySize
System\Security\Cryptography\DSACryptoServiceProvider.Windows.cs (1)
202public override int KeySize
System\Security\Cryptography\DSAWrapper.cs (1)
119public override int KeySize
System\Security\Cryptography\ECDiffieHellmanWrapper.cs (1)
122public override int KeySize
System\Security\Cryptography\ECDsaWrapper.cs (1)
162public override int KeySize
System\Security\Cryptography\RSACryptoServiceProvider.Windows.cs (1)
191public override int KeySize
9 writes to KeySize
System.Security.Cryptography (9)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\DSACng.cs (1)
34KeySize = keySize;
src\runtime\src\libraries\Common\src\System\Security\Cryptography\ECDiffieHellmanCng.cs (1)
49base.KeySize = value;
src\runtime\src\libraries\Common\src\System\Security\Cryptography\ECDsaCng.cs (1)
65base.KeySize = value;
src\runtime\src\libraries\Common\src\System\Security\Cryptography\RSACng.cs (1)
32KeySize = keySize;
System\Security\Cryptography\DSA.cs (1)
54dsa.KeySize = keySizeInBits;
System\Security\Cryptography\DSAWrapper.cs (1)
122set => _wrapped.KeySize = value;
System\Security\Cryptography\ECDiffieHellmanWrapper.cs (1)
125set => _wrapped.KeySize = value;
System\Security\Cryptography\ECDsaWrapper.cs (1)
165set => _wrapped.KeySize = value;
System\Security\Cryptography\RSA.cs (1)
35rsa.KeySize = keySizeInBits;
42 references to KeySize
aspire (1)
Certificates\CertificateGeneration\CertificateManager.cs (1)
977if (rsa.KeySize < minimumKeySize)
dotnet-dev-certs (1)
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (1)
980if (rsa.KeySize < minimumKeySize)
Microsoft.AspNetCore.DeveloperCertificates.XPlat (1)
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (1)
980if (rsa.KeySize < minimumKeySize)
Microsoft.AspNetCore.Server.Kestrel.Core (1)
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (1)
980if (rsa.KeySize < minimumKeySize)
NuGet.Packaging (1)
Signing\Utility\CertificateUtility.cs (1)
182return publicKey.KeySize >= SigningSpecifications.V1.RSAPublicKeyMinLength;
RepoTasks (1)
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (1)
980if (rsa.KeySize < minimumKeySize)
System.Security.Cryptography (28)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CngPkcs8.cs (2)
295byte[] rented = CryptoPool.Rent(key.KeySize); 337byte[] rented = CryptoPool.Rent(key.KeySize);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsaManaged.RSA.cs (2)
159if (rsa.KeySize != algorithm.KeySizeInBits) 214if (rsa.KeySize != algorithm.KeySizeInBits)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\ECDiffieHellmanCng.cs (1)
39return base.KeySize;
src\runtime\src\libraries\Common\src\System\Security\Cryptography\ECDsaCng.cs (1)
55return base.KeySize;
src\runtime\src\libraries\Common\src\System\Security\Cryptography\RSACng.EncryptDecrypt.cs (2)
41int modulusSizeInBytes = RsaPaddingProcessor.BytesRequiredForBitCount(KeySize); 123int modulusSizeInBytes = RsaPaddingProcessor.BytesRequiredForBitCount(KeySize);
System\Security\Cryptography\AsymmetricAlgorithmHelpers.Der.cs (1)
91ecdsa.KeySize);
System\Security\Cryptography\DSACng.Key.cs (1)
24CngKey key = _core.GetOrGenerateKey(KeySize, _dsnCng);
System\Security\Cryptography\DSAWrapper.cs (1)
121get => _wrapped.KeySize;
System\Security\Cryptography\ECDiffieHellmanWrapper.cs (1)
124get => _wrapped.KeySize;
System\Security\Cryptography\ECDsa.cs (2)
1250int fieldSizeBits = KeySize; 1257fieldSizeBits = KeySize;
System\Security\Cryptography\ECDsaWrapper.cs (1)
164get => _wrapped.KeySize;
System\Security\Cryptography\RSA.cs (7)
74/// <see cref="AsymmetricAlgorithm.KeySize" /> returned a value that is not a possible RSA key size. 78if (KeySize <= 0) 86return (KeySize + 7) >>> 3; 147/// The length of data is too long for the combination of <see cref="AsymmetricAlgorithm.KeySize" /> and the selected padding. 197/// The length of data is too long for the combination of <see cref="AsymmetricAlgorithm.KeySize" /> and the selected padding. 730int rentSize = KeySize / 4; 773int rentSize = checked(5 * KeySize / 8);
System\Security\Cryptography\RSA.Xml.cs (1)
101int keySizeDiv6 = KeySize / 6;
System\Security\Cryptography\RSABCrypt.cs (3)
42int keySize = KeySize; 188int modulusSizeInBytes = RsaPaddingProcessor.BytesRequiredForBitCount(KeySize); 222int modulusSizeInBytes = RsaPaddingProcessor.BytesRequiredForBitCount(KeySize);
System\Security\Cryptography\RSACng.Key.cs (1)
24CngKey key = _core.GetOrGenerateKey(KeySize, CngAlgorithm.Rsa);
System\Security\Cryptography\X509Certificates\X509Certificate2.cs (1)
584sb.Append(pubRsa.KeySize);
System.Security.Cryptography.Cose (2)
System\Security\Cryptography\Cose\CoseKey.cs (2)
177return 2 * ((_ecdsaKey!.KeySize + 7) / 8); 179return (_rsaKey!.KeySize + 7) / 8;
System.Security.Cryptography.Pkcs (5)
Internal\Cryptography\Pal\AnyOS\ManagedPal.KeyTrans.cs (1)
199cek = CryptoPool.Rent(privateKey.KeySize / 8);
System\Security\Cryptography\Pkcs\CmsSignature.DSA.cs (1)
151byte[] rented = CryptoPool.Rent(dsa.KeySize / 8);
System\Security\Cryptography\Pkcs\CmsSignature.ECDsa.cs (2)
80int fieldSize = (key.KeySize + 7) / 8; 162int fieldSize = (key.KeySize + 7) / 8;
System\Security\Cryptography\Pkcs\CmsSignature.RSA.cs (1)
123byte[] signature = new byte[privateKey.KeySize / 8];
System.ServiceModel.Primitives (1)
System\IdentityModel\Tokens\X509AsymmetricSecurityKey.cs (1)
28get { return PublicKey.KeySize; }