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