68 references to CryptographicException
mscorlib (11)
system\security\cryptography\cryptoapitransform.cs (1)
115
throw new
CryptographicException
(Environment.GetResourceString("Cryptography_InvalidKeyParameter"), "_rgArgIds[i]");
system\security\cryptography\des.cs (2)
60
throw new
CryptographicException
(Environment.GetResourceString("Cryptography_InvalidKey_Weak"),"DES");
63
throw new
CryptographicException
(Environment.GetResourceString("Cryptography_InvalidKey_SemiWeak"),"DES");
system\security\cryptography\descryptoserviceprovider.cs (4)
35
throw new
CryptographicException
(Environment.GetResourceString("Cryptography_InvalidKey_Weak"),"DES");
37
throw new
CryptographicException
(Environment.GetResourceString("Cryptography_InvalidKey_SemiWeak"),"DES");
45
throw new
CryptographicException
(Environment.GetResourceString("Cryptography_InvalidKey_Weak"),"DES");
47
throw new
CryptographicException
(Environment.GetResourceString("Cryptography_InvalidKey_SemiWeak"),"DES");
system\security\cryptography\tripledes.cs (1)
59
throw new
CryptographicException
(Environment.GetResourceString("Cryptography_InvalidKey_Weak"),"TripleDES");
system\security\cryptography\tripledescryptoserviceprovider.cs (2)
35
throw new
CryptographicException
(Environment.GetResourceString("Cryptography_InvalidKey_Weak"),"TripleDES");
42
throw new
CryptographicException
(Environment.GetResourceString("Cryptography_InvalidKey_Weak"),"TripleDES");
system\security\cryptography\x509certificates\x509certificate.cs (1)
675
throw new
CryptographicException
(Environment.GetResourceString("Cryptography_InvalidHandle"), "m_safeCertContext");
System.Core (1)
System\Security\Cryptography\CapiNative.cs (1)
956
throw new
CryptographicException
("SR.GetString(SR.Cryptography_InvalidHandle)", "pvKey");
System.Security (56)
system\security\cryptography\cryptoapi.cs (7)
2573
throw new
CryptographicException
(SecurityResources.GetResourceString("Cryptography_InvalidHandle"), "pvKey");
2688
throw new
CryptographicException
(SecurityResources.GetResourceString("Cryptography_InvalidHandle"), "hCertStore");
2720
throw new
CryptographicException
(SecurityResources.GetResourceString("Cryptography_InvalidHandle"), "hCertStore");
2725
throw new
CryptographicException
(SecurityResources.GetResourceString("Cryptography_InvalidHandle"), "pCertContext");
2749
throw new
CryptographicException
(SecurityResources.GetResourceString("Cryptography_InvalidHandle"), "hCertStore");
2754
throw new
CryptographicException
(SecurityResources.GetResourceString("Cryptography_InvalidHandle"), "pCertContext");
2913
throw new
CryptographicException
(SecurityResources.GetResourceString("Cryptography_InvalidHandle"), "hCertStore");
system\security\cryptography\pkcs\pkcs7recipient.cs (1)
68
throw new
CryptographicException
(SecurityResources.GetResourceString("Cryptography_Cms_Invalid_Subject_Identifier_Type"), recipientIdentifierType.ToString());
system\security\cryptography\pkcs\pkcsmisc.cs (9)
134
throw new
CryptographicException
(SecurityResources.GetResourceString("Cryptography_Cms_Invalid_Subject_Identifier_Type"), certId.dwIdChoice.ToString(CultureInfo.InvariantCulture));
161
throw new
CryptographicException
(SecurityResources.GetResourceString("Cryptography_Cms_Invalid_Subject_Identifier_Type_Value_Mismatch"), value.GetType().ToString());
169
throw new
CryptographicException
(SecurityResources.GetResourceString("Cryptography_Cms_Invalid_Subject_Identifier_Type_Value_Mismatch"), value.GetType().ToString());
173
throw new
CryptographicException
(SecurityResources.GetResourceString("Cryptography_Cms_Invalid_Subject_Identifier_Type"), type.ToString());
241
throw new
CryptographicException
(SecurityResources.GetResourceString("Cryptography_Cms_Invalid_Subject_Identifier_Type"), certId.dwIdChoice.ToString(CultureInfo.InvariantCulture));
272
throw new
CryptographicException
(SecurityResources.GetResourceString("Cryptography_Cms_Invalid_Subject_Identifier_Type_Value_Mismatch"), value.GetType().ToString());
280
throw new
CryptographicException
(SecurityResources.GetResourceString("Cryptography_Cms_Invalid_Subject_Identifier_Type_Value_Mismatch"), value.GetType().ToString());
288
throw new
CryptographicException
(SecurityResources.GetResourceString("Cryptography_Cms_Invalid_Subject_Identifier_Type_Value_Mismatch"), value.GetType().ToString());
292
throw new
CryptographicException
(SecurityResources.GetResourceString("Cryptography_Cms_Invalid_Subject_Identifier_Type"), type.ToString());
system\security\cryptography\pkcs\recipientinfo.cs (1)
445
throw new
CryptographicException
(SecurityResources.GetResourceString("Cryptography_Cms_Invalid_Originator_Identifier_Choice"), keyAgree.dwOriginatorChoice.ToString(CultureInfo.CurrentCulture));
system\security\cryptography\x509\x509ui.cs (1)
53
throw new
CryptographicException
(SecurityResources.GetResourceString("Cryptography_InvalidHandle"), "safeCertContext");
system\security\cryptography\xml\encryptedxml.cs (3)
281
throw new
CryptographicException
(SecurityResources.GetResourceString("Cryptography_Xml_UriNotResolved"), cipherData.CipherReference.Uri);
284
throw new
CryptographicException
(SecurityResources.GetResourceString("Cryptography_Xml_UriNotResolved"), cipherData.CipherReference.Uri);
287
throw new
CryptographicException
(SecurityResources.GetResourceString("Cryptography_Xml_UriNotResolved"), cipherData.CipherReference.Uri);
system\security\cryptography\xml\keyinfo.cs (6)
77
throw new
CryptographicException
(SecurityResources.GetResourceString("Cryptography_Xml_InvalidElement"), "KeyInfo");
88
throw new
CryptographicException
(SecurityResources.GetResourceString("Cryptography_Xml_InvalidElement"), "KeyInfo/KeyValue");
445
throw new
CryptographicException
(SecurityResources.GetResourceString("Cryptography_Xml_InvalidElement"), "KeyInfoEncryptedKey");
451
throw new
CryptographicException
(SecurityResources.GetResourceString("Cryptography_Xml_InvalidElement"), "KeyInfoEncryptedKey");
725
throw new
CryptographicException
(SecurityResources.GetResourceString("Cryptography_Xml_InvalidElement"), "X509Data");
737
throw new
CryptographicException
(SecurityResources.GetResourceString("Cryptography_Xml_InvalidElement"), "IssuerSerial");
system\security\cryptography\xml\reference.cs (12)
214
throw new
CryptographicException
(SecurityResources.GetResourceString("Cryptography_Xml_InvalidElement"), "Reference");
225
throw new
CryptographicException
(SecurityResources.GetResourceString("Cryptography_Xml_InvalidElement"), "Reference/Transforms");
230
throw new
CryptographicException
(SecurityResources.GetResourceString("Cryptography_Xml_InvalidElement"), "Reference/Transforms");
236
throw new
CryptographicException
(SecurityResources.GetResourceString("Cryptography_Xml_InvalidElement"), "Reference/Transforms");
239
throw new
CryptographicException
(SecurityResources.GetResourceString("Cryptography_Xml_InvalidElement"), "Reference/Transforms");
278
throw new
CryptographicException
(SecurityResources.GetResourceString("Cryptography_Xml_InvalidElement"), "Reference/DigestMethod");
282
throw new
CryptographicException
(SecurityResources.GetResourceString("Cryptography_Xml_InvalidElement"), "Reference/DigestMethod");
287
throw new
CryptographicException
(SecurityResources.GetResourceString("Cryptography_Xml_InvalidElement"), "Reference/DigestValue");
291
throw new
CryptographicException
(SecurityResources.GetResourceString("Cryptography_Xml_InvalidElement"), "Reference/DigestValue");
296
throw new
CryptographicException
(SecurityResources.GetResourceString("Cryptography_Xml_InvalidElement"), "Reference");
429
throw new
CryptographicException
(SecurityResources.GetResourceString("Cryptography_Xml_UriNotResolved"), m_uri);
438
throw new
CryptographicException
(SecurityResources.GetResourceString("Cryptography_Xml_UriNotResolved"), m_uri);
system\security\cryptography\xml\signature.cs (7)
142
throw new
CryptographicException
(SecurityResources.GetResourceString("Cryptography_Xml_InvalidElement"), "Signature");
147
throw new
CryptographicException
(SecurityResources.GetResourceString("Cryptography_Xml_InvalidElement"), "Signature");
156
throw new
CryptographicException
(SecurityResources.GetResourceString("Cryptography_Xml_InvalidElement"),"SignedInfo");
166
throw new
CryptographicException
(SecurityResources.GetResourceString("Cryptography_Xml_InvalidElement"),"SignatureValue");
172
throw new
CryptographicException
(SecurityResources.GetResourceString("Cryptography_Xml_InvalidElement"), "SignatureValue");
179
throw new
CryptographicException
(SecurityResources.GetResourceString("Cryptography_Xml_InvalidElement"), "KeyInfo");
214
throw new
CryptographicException
(SecurityResources.GetResourceString("Cryptography_Xml_InvalidElement"), "Signature");
system\security\cryptography\xml\signedinfo.cs (8)
194
throw new
CryptographicException
(SecurityResources.GetResourceString("Cryptography_Xml_InvalidElement"), "SignedInfo");
203
throw new
CryptographicException
(SecurityResources.GetResourceString("Cryptography_Xml_InvalidElement"), "SignedInfo");
208
throw new
CryptographicException
(SecurityResources.GetResourceString("Cryptography_Xml_InvalidElement"), "SignedInfo/CanonicalizationMethod");
213
throw new
CryptographicException
(SecurityResources.GetResourceString("Cryptography_Xml_InvalidElement"), "SignedInfo/CanonicalizationMethod");
221
throw new
CryptographicException
(SecurityResources.GetResourceString("Cryptography_Xml_InvalidElement"), "SignedInfo/SignatureMethod");
226
throw new
CryptographicException
(SecurityResources.GetResourceString("Cryptography_Xml_InvalidElement"), "SignedInfo/SignatureMethod");
240
throw new
CryptographicException
(SecurityResources.GetResourceString("Cryptography_Xml_InvalidElement"), "SignedInfo/Reference");
253
throw new
CryptographicException
(SecurityResources.GetResourceString("Cryptography_Xml_InvalidElement"), "SignedInfo");
system\security\cryptography\xml\transform.cs (1)
174
throw new
CryptographicException
(SecurityResources.GetResourceString("Cryptography_Xml_InvalidElement"), "Transforms");