27 references to Cryptography_InvalidKeySize
System.Security.Cryptography (27)
src\libraries\Common\src\System\Security\Cryptography\AesAEAD.cs (1)
12throw new CryptographicException(SR.Cryptography_InvalidKeySize);
src\libraries\Common\src\System\Security\Cryptography\ECOpenSsl.ImportExport.cs (1)
271throw new InvalidOperationException(SR.Cryptography_InvalidKeySize);
System\Security\Cryptography\AesImplementation.cs (1)
260throw new ArgumentException(SR.Cryptography_InvalidKeySize, nameof(rgbKey));
System\Security\Cryptography\AesImplementation.OpenSsl.cs (1)
60new CryptographicException(SR.Cryptography_InvalidKeySize)),
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\DES.cs (3)
54throw new ArgumentException(SR.Cryptography_InvalidKeySize); 69throw new CryptographicException(SR.Cryptography_InvalidKeySize); 87throw new CryptographicException(SR.Cryptography_InvalidKeySize);
System\Security\Cryptography\DesImplementation.cs (1)
66throw new ArgumentException(SR.Cryptography_InvalidKeySize, nameof(rgbKey));
System\Security\Cryptography\DSACryptoServiceProvider.Unix.cs (1)
167throw new CryptographicException(SR.Cryptography_InvalidKeySize);
System\Security\Cryptography\ECDsa.cs (1)
1262throw new NotSupportedException(SR.Cryptography_InvalidKeySize);
System\Security\Cryptography\RC2.cs (1)
73throw new CryptographicException(SR.Cryptography_InvalidKeySize);
System\Security\Cryptography\RC2CryptoServiceProvider.Unix.cs (1)
87throw new CryptographicException(SR.Cryptography_InvalidKeySize);
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));