32 references to Cryptography_InvalidKeySize
System.Security.Cryptography (32)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\AesAEAD.cs (1)
12throw new CryptographicException(SR.Cryptography_InvalidKeySize);
System\Security\Cryptography\AesCng.Windows.cs (1)
302throw new CryptographicException(SR.Cryptography_InvalidKeySize);
System\Security\Cryptography\AesImplementation.cs (1)
273throw new ArgumentException(SR.Cryptography_InvalidKeySize, nameof(rgbKey));
System\Security\Cryptography\AsymmetricAlgorithm.cs (1)
35throw new CryptographicException(SR.Cryptography_InvalidKeySize);
System\Security\Cryptography\ChaCha20Poly1305.cs (1)
46throw new CryptographicException(SR.Cryptography_InvalidKeySize);
System\Security\Cryptography\CngSymmetricAlgorithmCore.cs (1)
314throw new ArgumentException(SR.Cryptography_InvalidKeySize, nameof(rgbKey));
System\Security\Cryptography\DES.cs (3)
54throw new ArgumentException(SR.Cryptography_InvalidKeySize); 69throw new CryptographicException(SR.Cryptography_InvalidKeySize); 87throw new CryptographicException(SR.Cryptography_InvalidKeySize);
System\Security\Cryptography\DESCryptoServiceProvider.Windows.cs (1)
71throw new ArgumentException(SR.Cryptography_InvalidKeySize, nameof(rgbKey));
System\Security\Cryptography\DesImplementation.cs (1)
66throw new ArgumentException(SR.Cryptography_InvalidKeySize, nameof(rgbKey));
System\Security\Cryptography\ECDiffieHellmanCng.Key.cs (2)
81throw new ArgumentException(SR.Cryptography_InvalidKeySize); 126throw new ArgumentException(SR.Cryptography_InvalidKeySize);
System\Security\Cryptography\ECDsa.cs (1)
1262throw new NotSupportedException(SR.Cryptography_InvalidKeySize);
System\Security\Cryptography\ECDsaCng.Key.cs (2)
70throw new ArgumentException(SR.Cryptography_InvalidKeySize); 109throw new ArgumentException(SR.Cryptography_InvalidKeySize);
System\Security\Cryptography\PasswordDeriveBytes.Windows.cs (1)
18throw new CryptographicException(SR.Cryptography_InvalidKeySize);
System\Security\Cryptography\RC2.cs (1)
73throw new CryptographicException(SR.Cryptography_InvalidKeySize);
System\Security\Cryptography\RC2CryptoServiceProvider.Windows.cs (1)
87throw new ArgumentException(SR.Cryptography_InvalidKeySize, nameof(rgbKey));
System\Security\Cryptography\RC2Implementation.cs (5)
64throw new ArgumentException(SR.Cryptography_InvalidKeySize, nameof(rgbKey)); 89throw new InvalidOperationException(SR.Cryptography_InvalidKeySize); 113throw new InvalidOperationException(SR.Cryptography_InvalidKeySize); 138throw new InvalidOperationException(SR.Cryptography_InvalidKeySize); 163throw new InvalidOperationException(SR.Cryptography_InvalidKeySize);
System\Security\Cryptography\RSA.cs (1)
80throw new CryptographicException(SR.Cryptography_InvalidKeySize);
System\Security\Cryptography\SymmetricAlgorithm.cs (3)
97throw new CryptographicException(SR.Cryptography_InvalidKeySize); 115throw new CryptographicException(SR.Cryptography_InvalidKeySize); 232throw new CryptographicException(SR.Cryptography_InvalidKeySize);
System\Security\Cryptography\TripleDES.cs (3)
54throw new ArgumentException(SR.Cryptography_InvalidKeySize); 66throw new CryptographicException(SR.Cryptography_InvalidKeySize); // .NET Framework compat: Strange exception for a null value, but this is what we threw in classic CLR. 69throw new CryptographicException(SR.Cryptography_InvalidKeySize);
System\Security\Cryptography\TripleDesImplementation.cs (1)
58throw new ArgumentException(SR.Cryptography_InvalidKeySize, nameof(rgbKey));