438 references to SR
System.Security.Cryptography.Pkcs (438)
Internal\Cryptography\Pal\AnyOS\AsnHelpers.cs (1)
127throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
Internal\Cryptography\Pal\AnyOS\ManagedPal.Asn.cs (1)
35throw new CryptographicException(SR.Cryptography_Cms_InvalidMessageType);
Internal\Cryptography\Pal\AnyOS\ManagedPal.cs (9)
59throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 63throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 105throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 120throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 130throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 135throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 172throw new PlatformNotSupportedException(SR.Format(SR.Cryptography_AlgorithmNotSupported, nameof(RC2))); 201throw new CryptographicException(SR.Cryptography_Cms_UnknownAlgorithm, algorithmIdentifier);
Internal\Cryptography\Pal\AnyOS\ManagedPal.Decode.cs (1)
98throw new CryptographicException(SR.Cryptography_Cms_InvalidMessageType);
Internal\Cryptography\Pal\AnyOS\ManagedPal.Decrypt.cs (3)
51exception = new CryptographicException(SR.Cryptography_Cms_Ktri_RSARequired); 85SR.Cryptography_Cms_RecipientType_NotSupported, 168throw new CryptographicException(SR.Cryptography_Cms_InvalidSymmetricKey, ce);
Internal\Cryptography\Pal\AnyOS\ManagedPal.Encrypt.cs (2)
115SR.Cryptography_Cms_UnknownAlgorithm, 195throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
Internal\Cryptography\Pal\AnyOS\ManagedPal.Exceptions.cs (2)
13return new CryptographicException(SR.Cryptography_Cms_RecipientNotFound); 34return new CryptographicException(SR.Cryptography_Cms_InvalidMessageType);
Internal\Cryptography\Pal\AnyOS\ManagedPal.KeyAgree.cs (2)
45throw new InvalidOperationException(SR.Cryptography_Cms_Key_Agree_Date_Not_Available); 70throw new InvalidOperationException(SR.Cryptography_Cms_Key_Agree_Date_Not_Available);
Internal\Cryptography\Pal\AnyOS\ManagedPal.KeyTrans.cs (6)
47exception = new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 55SR.Cryptography_Cms_UnknownAlgorithm, 87SR.Cryptography_Cms_UnknownAlgorithm, 136SR.Cryptography_Cms_Invalid_Subject_Identifier_Type, 169throw new CryptographicException(SR.Cryptography_Cms_UnknownAlgorithm); 189exception = new CryptographicException(SR.Cryptography_Cms_Signing_RequiresPrivateKey);
Internal\Cryptography\PkcsHelpers.cs (6)
67throw new CryptographicException(SR.Cryptography_UnknownHashAlgorithm, oidValue); 347exception = new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 360exception = new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 368exception = new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 377exception = new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 397SR.Cryptography_Cms_UnknownAlgorithm,
src\libraries\Common\src\Internal\Cryptography\PkcsHelpers.cs (13)
70throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 91throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 98throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 120throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 127throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 135throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 185throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 200throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 207throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 235throw new CryptographicException(SR.Cryptography_Cms_UnknownAlgorithm, algName.Name); 326throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 333throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 395throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\AlgorithmIdentifierAsn.xml.cs (4)
32throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 43throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 67throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 84throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\AttributeAsn.xml.cs (4)
33throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 45throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 70throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 87throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\DigestInfoAsn.xml.cs (2)
48throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 65throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\DirectoryStringAsn.xml.cs (3)
84throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 125throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 137throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\EdiPartyNameAsn.xml.cs (2)
57throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 74throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\EncryptedPrivateKeyInfoAsn.xml.cs (2)
48throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 65throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\GeneralNameAsn.xml.cs (5)
101throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 118throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 162throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 185throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 197throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\OaepParamsAsn.xml.cs (2)
116throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 133throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\OtherNameAsn.xml.cs (4)
32throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 41throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 64throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 81throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\PBEParameter.xml.cs (2)
48throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 65throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\PBES2Params.xml.cs (2)
48throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 65throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pbkdf2Params.xml.cs (2)
83throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 100throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pbkdf2SaltChoice.xml.cs (2)
76throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 88throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\CertBagAsn.xml.cs (4)
32throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 41throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 64throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 81throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\MacData.xml.cs (2)
81throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 98throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.manual.cs (3)
50SR.Format(SR.Cryptography_UnknownHashAlgorithm, algorithmValue)); 55throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding);
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.xml.cs (2)
55throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 72throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\SafeBagAsn.xml.cs (4)
34throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 43throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 79throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 96throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\SecretBagAsn.xml.cs (4)
32throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 41throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 64throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 81throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\CertificateChoiceAsn.xml.cs (6)
66throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 91throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 116throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 141throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 173throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 185throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\ContentInfoAsn.xml.cs (4)
32throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 41throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 64throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 81throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\EncapsulatedContentInfoAsn.xml.cs (4)
32throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 44throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 69throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 86throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\EncryptedContentInfoAsn.xml.cs (3)
33throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 62throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 79throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\EncryptedDataAsn.xml.cs (2)
63throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 80throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\IssuerAndSerialNumberAsn.xml.cs (3)
41throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 64throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 81throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\OtherCertificateFormat.xml.cs (4)
32throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 40throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 62throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 79throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\SignedDataAsn.xml.cs (3)
67throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 102throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 119throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\SignerIdentifierAsn.xml.cs (2)
76throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 88throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\SignerInfoAsn.xml.cs (3)
53throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 92throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 109throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\PrivateKeyInfoAsn.xml.cs (2)
65throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 82throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\PssParamsAsn.manual.cs (7)
16throw new CryptographicException(SR.Cryptography_Pkcs_InvalidSignatureParameters); 22SR.Cryptography_Pkcs_PssParametersMgfNotSupported, 28throw new CryptographicException(SR.Cryptography_Pkcs_InvalidSignatureParameters); 38SR.Format( 39SR.Cryptography_Pkcs_PssParametersMgfHashMismatch, 54SR.Format( 55SR.Cryptography_Pkcs_PssParametersSaltMismatch,
src\libraries\Common\src\System\Security\Cryptography\Asn1\PssParamsAsn.xml.cs (2)
149throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 166throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\Rc2CbcParameters.xml.cs (2)
48throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 65throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\SubjectPublicKeyInfoAsn.xml.cs (2)
48throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 65throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1\X509ExtensionAsn.xml.cs (3)
47throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 83throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 100throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Asn1Reader\AsnValueReader.cs (2)
233throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 247throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\CryptographicAttributeObject.cs (3)
40throw new ArgumentException(SR.Argument_InvalidOidValue, nameof(values)); 45throw new InvalidOperationException(SR.Format(SR.InvalidOperation_WrongOidInAsnCollection, oid.Value, asn.Oid.Value));
src\libraries\Common\src\System\Security\Cryptography\CryptographicAttributeObjectCollection.cs (7)
54throw new InvalidOperationException(SR.InvalidOperation_DuplicateItemNotAllowed); 63throw new CryptographicException(SR.Cryptography_Pkcs9_MultipleSigningTimeNotAllowed); 138throw new ArgumentException(SR.Arg_RankMultiDimNotSupported); 140throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess); 142throw new ArgumentException(SR.Argument_InvalidOffLen); 156throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess); 158throw new ArgumentException(SR.Argument_InvalidOffLen);
src\libraries\Common\src\System\Security\Cryptography\Helpers.cs (8)
137throw new CryptographicException(SR.Format(SR.Cryptography_UnknownHashAlgorithm, hashOid)); 212throw new CryptographicException(SR.Format(SR.Cryptography_UnknownHashAlgorithm, hashAlgorithmName), ex); 228SR.Format(SR.Cryptography_UnknownAlgorithmIdentifier, algorithmId)); 264throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, ace); 269throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding);
src\libraries\Common\src\System\Security\Cryptography\KeyFormatHelper.cs (8)
49throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 54throw new CryptographicException(SR.Cryptography_NotValidPublicOrPrivateKey); 80throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 85throw new CryptographicException(SR.Cryptography_NotValidPublicOrPrivateKey); 121throw new CryptographicException(SR.Cryptography_NotValidPublicOrPrivateKey); 129throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 148throw new CryptographicException(SR.Cryptography_NotValidPublicOrPrivateKey); 157throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\KeyFormatHelper.Encrypted.cs (11)
113throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 142throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 149throw new CryptographicException(SR.Cryptography_Pkcs8_EncryptedReadFailed, e); 298throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 329throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 356throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 379throw new CryptographicException(SR.Cryptography_Pkcs8_EncryptedReadFailed, e); 398throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 411throw new CryptographicException(SR.Cryptography_Pkcs8_EncryptedReadFailed, e); 434throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 447throw new CryptographicException(SR.Cryptography_Pkcs8_EncryptedReadFailed, e);
src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (42)
21return new CryptographicException(SR.Cryptography_AlgKdfRequiresChars, algId); 48SR.Cryptography_UnknownHashAlgorithm, 63SR.Cryptography_UnknownAlgorithmIdentifier, 81SR.Format( 82SR.Cryptography_UnknownAlgorithmIdentifier, 144SR.Format( 145SR.Cryptography_UnknownAlgorithmIdentifier, 244SR.Format( 245SR.Cryptography_UnknownAlgorithmIdentifier, 276SR.Format( 277SR.Cryptography_UnknownAlgorithmIdentifier, 302throw new CryptographicException(SR.Cryptography_UnknownHashAlgorithm, prf.Name); 518throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 526SR.Format( 527SR.Cryptography_UnknownAlgorithmIdentifier, 575SR.Format(SR.Cryptography_AlgorithmNotSupported, algId)); 603throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 623throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 638throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 645throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 655throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 674throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 683throw new CryptographicException(SR.Cryptography_UnknownAlgorithmIdentifier, algId); 693throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 709throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 716throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 728throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 738SR.Format( 739SR.Cryptography_UnknownAlgorithmIdentifier, 746throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 756SR.Format( 757SR.Cryptography_UnknownAlgorithmIdentifier, 766throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 794throw new CryptographicException(SR.Argument_InvalidValue, e); 817throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 824throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 829throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 868throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 1096throw new CryptographicException(SR.Argument_InvalidValue); 1107throw new PlatformNotSupportedException(SR.Format(SR.Cryptography_AlgorithmNotSupported, nameof(RC2)));
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Builder.cs (9)
49throw new ArgumentException(SR.Cryptography_Pkcs12_CannotProcessEncryptedSafeContents, nameof(safeContents)); 51throw new InvalidOperationException(SR.Cryptography_Pkcs12_PfxIsSealed); 93throw new ArgumentException(SR.Cryptography_Pkcs12_CannotProcessEncryptedSafeContents, nameof(safeContents)); 95throw new InvalidOperationException(SR.Cryptography_Pkcs12_PfxIsSealed); 119throw new InvalidOperationException(SR.Cryptography_Pkcs12_PfxIsSealed); 130throw new InvalidOperationException(SR.Cryptography_Pkcs12_PfxMustBeSealed); 156throw new InvalidOperationException(SR.Cryptography_Pkcs12_PfxIsSealed); 307throw new InvalidOperationException(SR.Cryptography_Pkcs12_PfxIsSealed); 353throw new InvalidOperationException(SR.Cryptography_Pkcs12_PfxMustBeSealed);
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12CertBag.cs (3)
84throw new InvalidOperationException(SR.Cryptography_Pkcs12_CertBagNotX509); 95throw new CryptographicException(SR.Argument_InvalidOidValue); 112throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding);
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Info.cs (6)
42SR.Format( 43SR.Cryptography_Pkcs12_WrongModeForVerify, 66throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 98throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 104throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 150throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (15)
59throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 68throw new InvalidOperationException(SR.Cryptography_Pkcs12_SafeContentsIsReadOnly); 80throw new InvalidOperationException(SR.Cryptography_Pkcs12_SafeContentsIsReadOnly); 92throw new InvalidOperationException(SR.Cryptography_Pkcs12_SafeContentsIsReadOnly); 105throw new ArgumentException(SR.Cryptography_Pkcs12_CannotProcessEncryptedSafeContents, nameof(safeContents)); 107throw new InvalidOperationException(SR.Cryptography_Pkcs12_SafeContentsIsReadOnly); 134throw new InvalidOperationException(SR.Cryptography_Pkcs12_SafeContentsIsReadOnly); 162throw new InvalidOperationException(SR.Cryptography_Pkcs12_SafeContentsIsReadOnly); 209SR.Format( 210SR.Cryptography_Pkcs12_WrongModeForDecrypt, 220throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 228throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 233throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 269throw new InvalidOperationException(SR.Cryptography_Pkcs12_SafeContentsIsEncrypted); 303throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs8PrivateKeyInfo.cs (3)
91throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 192throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 223throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding);
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs9AttributeObject.cs (7)
40throw new ArgumentException(SR.Format(SR.Arg_EmptyOrNullString_Named, "asnEncodedData.Oid"), nameof(asnEncodedData)); 43throw new ArgumentException(SR.Format(SR.Arg_EmptyOrNullString_Named, "oid.Value"), nameof(asnEncodedData)); 45throw new ArgumentException(SR.Format(SR.Arg_EmptyOrNullString_Named, "oid.Value"), nameof(asnEncodedData)); 79throw new ArgumentException(SR.Cryptography_Pkcs9_AttributeMismatch);
src\libraries\Common\src\System\Security\Cryptography\Pkcs12Kdf.cs (1)
101throw new CryptographicException(SR.Cryptography_UnknownHashAlgorithm, hashAlgorithm.Name);
System\Security\Cryptography\Pkcs\Asn1\CadesIssuerSerial.xml.cs (2)
56throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 73throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\Pkcs\Asn1\EnvelopedDataAsn.xml.cs (2)
79throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 96throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\Pkcs\Asn1\EssCertId.xml.cs (2)
53throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 70throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\Pkcs\Asn1\EssCertIdV2.xml.cs (2)
81throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 98throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\Pkcs\Asn1\KeyAgreeRecipientIdentifierAsn.xml.cs (2)
76throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 88throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\Pkcs\Asn1\KeyAgreeRecipientInfoAsn.xml.cs (2)
71throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 88throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\Pkcs\Asn1\KeyTransRecipientInfoAsn.xml.cs (2)
52throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 69throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\Pkcs\Asn1\MessageImprint.xml.cs (2)
48throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 65throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\Pkcs\Asn1\OriginatorIdentifierOrKeyAsn.xml.cs (2)
87throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 99throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\Pkcs\Asn1\OriginatorInfoAsn.xml.cs (3)
53throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 80throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 97throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\Pkcs\Asn1\OriginatorPublicKeyAsn.xml.cs (2)
48throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 65throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\Pkcs\Asn1\OtherKeyAttributeAsn.xml.cs (4)
32throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 43throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 67throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 84throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\Pkcs\Asn1\PkiStatusInfo.xml.cs (3)
46throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 76throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 93throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\Pkcs\Asn1\PolicyInformation.xml.cs (3)
33throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 68throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 85throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\Pkcs\Asn1\PolicyQualifierInfo.xml.cs (4)
32throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 40throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 62throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 79throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\Pkcs\Asn1\RecipientEncryptedKeyAsn.xml.cs (2)
48throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 65throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\Pkcs\Asn1\RecipientIdentifierAsn.xml.cs (2)
76throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 88throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\Pkcs\Asn1\RecipientInfoAsn.xml.cs (2)
76throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 88throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\Pkcs\Asn1\RecipientKeyIdentifier.xml.cs (2)
60throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 77throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\Pkcs\Asn1\Rfc3161Accuracy.xml.cs (2)
65throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 82throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\Pkcs\Asn1\Rfc3161TimeStampReq.xml.cs (3)
56throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 112throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 129throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\Pkcs\Asn1\Rfc3161TimeStampResp.xml.cs (3)
36throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 60throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 77throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\Pkcs\Asn1\Rfc3161TstInfo.xml.cs (3)
56throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 127throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 144throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\Pkcs\Asn1\SignedAttributesSet.xml.cs (2)
73throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 85throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\Pkcs\Asn1\SigningCertificateAsn.xml.cs (2)
68throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 85throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\Pkcs\Asn1\SigningCertificateV2Asn.xml.cs (2)
68throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 85throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
System\Security\Cryptography\Pkcs\CmsRecipient.cs (3)
59throw new CryptographicException(SR.Format(SR.Cryptography_Cms_Invalid_Subject_Identifier_Type, recipientIdentifierType)); 83throw new CryptographicException(SR.Cryptography_Cms_Recipient_RSARequired_RSAPaddingModeSupplied);
System\Security\Cryptography\Pkcs\CmsRecipientCollection.cs (6)
42throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess); 87throw new ArgumentException(SR.Arg_RankMultiDimNotSupported); 89throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess); 91throw new ArgumentException(SR.Argument_InvalidOffLen); 105throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess); 107throw new ArgumentException(SR.Argument_InvalidOffLen);
System\Security\Cryptography\Pkcs\CmsSignature.DSA.cs (2)
59SR.Format( 60SR.Cryptography_Cms_InvalidSignerHashForSignatureAlg,
System\Security\Cryptography\Pkcs\CmsSignature.ECDsa.cs (2)
61SR.Format( 62SR.Cryptography_Cms_InvalidSignerHashForSignatureAlg,
System\Security\Cryptography\Pkcs\CmsSignature.MLDsa.cs (2)
48SR.Format(SR.Cryptography_UnknownAlgorithmIdentifier, _signatureAlgorithm));
System\Security\Cryptography\Pkcs\CmsSignature.RSA.cs (6)
62SR.Format( 63SR.Cryptography_Cms_InvalidSignerHashForSignatureAlg, 206throw new CryptographicException(SR.Cryptography_Pkcs_InvalidSignatureParameters); 311throw new CryptographicException(SR.Cryptography_Pkcs_PssParametersMissing); 319SR.Format( 320SR.Cryptography_Pkcs_PssParametersHashMismatch,
System\Security\Cryptography\Pkcs\CmsSignature.SlhDsa.cs (2)
59SR.Format(SR.Cryptography_UnknownAlgorithmIdentifier, _signatureAlgorithm));
System\Security\Cryptography\Pkcs\CmsSigner.cs (9)
60throw new ArgumentException(SR.Argument_InvalidRsaSignaturePadding, nameof(value)); 73throw new ArgumentException(SR.Format(SR.Cryptography_Cms_Invalid_Subject_Identifier_Type, value)); 188throw new ArgumentException(SR.Argument_InvalidRsaSignaturePadding, nameof(signaturePadding)); 233throw new PlatformNotSupportedException(SR.Cryptography_Cms_NoSignerCert); 238throw new CryptographicException(SR.Cryptography_Cms_Signing_RequiresPrivateKey); 405throw new CryptographicException(SR.Cryptography_Cms_CannotDetermineSignatureAlgorithm); 429throw new CryptographicException(SR.Cryptography_Cms_CannotDetermineSignatureAlgorithm); 474throw new CryptographicException(SR.Cryptography_Cms_IncompleteCertChain);
System\Security\Cryptography\Pkcs\EnvelopedCms.cs (3)
98throw new PlatformNotSupportedException(SR.Cryptography_Cms_NoRecipients); 115throw new InvalidOperationException(SR.Cryptography_Cms_MessageNotEncrypted); 273throw new InvalidOperationException(SR.Cryptography_Cms_MessageNotEncrypted);
System\Security\Cryptography\Pkcs\RecipientInfoCollection.cs (5)
34throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess); 62throw new ArgumentException(SR.Arg_RankMultiDimNotSupported); 64throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess); 66throw new ArgumentException(SR.Argument_InvalidOffLen); 79throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess);
System\Security\Cryptography\Pkcs\Rfc3161TimestampRequest.cs (9)
107throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 120SR.Format( 121SR.Cryptography_TimestampReq_Failure, 134throw new CryptographicException(SR.Cryptography_TimestampReq_BadResponse); 396throw new CryptographicException(SR.Cryptography_BadHashValue); 409throw new CryptographicException(SR.Cryptography_TimestampReq_BadResponse); 432throw new CryptographicException(SR.Cryptography_TimestampReq_BadNonce); 453throw new CryptographicException(SR.Cryptography_TimestampReq_NoCertFound); 468throw new CryptographicException(SR.Cryptography_TimestampReq_UnexpectedCertFound);
System\Security\Cryptography\Pkcs\Rfc3161TimestampTokenInfo.cs (2)
67throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); 291throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding);
System\Security\Cryptography\Pkcs\SignedCms.cs (19)
49throw new ArgumentException(SR.Format(SR.Arg_EmptyOrNullString_Named, "contentInfo.Content"), nameof(contentInfo)); 120throw new InvalidOperationException(SR.Cryptography_Cms_MessageNotSigned); 230throw new CryptographicException(SR.Cryptography_Cms_InvalidMessageType); 281throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 310throw new CryptographicException(SR.Cryptography_Cms_Sign_Empty_Content); 319throw new CryptographicException(SR.Cryptography_Cms_Sign_No_Signature_First_Signer); 332throw new InvalidOperationException(SR.Cryptography_Cms_NoSignerCertSilent); 336throw new PlatformNotSupportedException(SR.Cryptography_Cms_NoSignerCert); 392throw new InvalidOperationException(SR.Cryptography_Cms_MessageNotSigned); 397throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess); 415throw new CryptographicException(SR.Cryptography_Cms_SignerNotFound); 446throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); 606throw new InvalidOperationException(SR.Cryptography_Cms_MessageNotSigned); 622throw new CryptographicException(SR.Cryptography_Cms_NoSignerAtIndex); 641throw new InvalidOperationException(SR.Cryptography_Cms_MessageNotSigned); 648throw new CryptographicException(SR.Cryptography_Cms_NoSignerAtIndex); 682throw new CryptographicException(SR.Cryptography_Cms_CertificateAlreadyInCollection); 731throw new CryptographicException(SR.Cryptography_Cms_NoCertificateFound);
System\Security\Cryptography\Pkcs\SignerInfo.cs (25)
112throw new CryptographicException(SR.Cryptography_Cms_SignerNotFound); 130throw new CryptographicException(SR.Cryptography_Cms_NoSignerAtIndex); 138throw new CryptographicException(SR.Cryptography_Cms_NoSignerAtIndex); 174throw new CryptographicException(SR.Cryptography_Cms_NoSignerAtIndex); 243throw new CryptographicException(SR.Cryptography_Cms_NoAttributeFound); 289throw new PlatformNotSupportedException(SR.Cryptography_Cms_NoSignerCert); 295throw new CryptographicException(SR.Cryptography_Cms_NoCounterCounterSigner); 305throw new CryptographicException(SR.Cryptography_Cms_SignerNotFound); 363throw new CryptographicException(SR.Cryptography_Cms_SignerNotFound); 371throw new CryptographicException(SR.Cryptography_Cms_NoSignerAtIndex); 404throw new CryptographicException(SR.Cryptography_Cms_NoSignerAtIndex); 435throw new CryptographicException(SR.Cryptography_Cms_SignerNotFound); 443throw new CryptographicException(SR.Cryptography_Cms_SignerNotFound); 464throw new CryptographicException(SR.Cryptography_Cms_SignerNotFound); 475throw new CryptographicException(SR.Cryptography_Pkcs_InvalidSignatureParameters); 480throw new CryptographicException(SR.Cryptography_BadSignature); 643throw new CryptographicException(SR.Cryptography_BadHashValue); 650throw new CryptographicException(SR.Cryptography_BadHashValue); 665throw new CryptographicException(SR.Cryptography_Cms_MissingAuthenticatedAttribute); 731throw new CryptographicException(SR.Cryptography_Cms_MissingAuthenticatedAttribute); 781throw new CryptographicException(SR.Cryptography_Cms_MissingAuthenticatedAttribute); 850throw new CryptographicException(SR.Cryptography_Cms_UnknownAlgorithm, SignatureAlgorithm.Value); 859throw new CryptographicException(SR.Cryptography_BadSignature); 874throw new CryptographicException(SR.Cryptography_Cms_TrustFailure, status.StatusInformation); 904throw new CryptographicException(SR.Cryptography_Cms_WrongKeyUsage);
System\Security\Cryptography\Pkcs\SignerInfoCollection.cs (3)
60throw new ArgumentException(SR.Arg_RankMultiDimNotSupported, nameof(array)); 62throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess); 64throw new ArgumentException(SR.Argument_InvalidOffLen);