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