631 references to AsnEncodingRules
InMemory.FunctionalTests (4)
src\Servers\Kestrel\shared\test\CertificateAuthority.cs (3)
369AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 515AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 676AsnReader reader = new AsnReader(certId, AsnEncodingRules.DER);
src\Servers\Kestrel\shared\test\RevocationResponder.cs (1)
335AsnReader reader = new AsnReader(requestBytes, AsnEncodingRules.DER);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (4)
src\Servers\Kestrel\shared\test\CertificateAuthority.cs (3)
369AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 515AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 676AsnReader reader = new AsnReader(certId, AsnEncodingRules.DER);
src\Servers\Kestrel\shared\test\RevocationResponder.cs (1)
335AsnReader reader = new AsnReader(requestBytes, AsnEncodingRules.DER);
System.Formats.Asn1 (117)
System\Formats\Asn1\AsnDecoder.BitString.cs (16)
63AsnEncodingRules ruleSet, 159AsnEncodingRules ruleSet, 276AsnEncodingRules ruleSet, 334AsnEncodingRules ruleSet, 340if (ruleSet == AsnEncodingRules.CER && source.Length > MaxCERSegmentSize) 384if (ruleSet == AsnEncodingRules.DER || ruleSet == AsnEncodingRules.CER) 416AsnEncodingRules ruleSet, 433AsnEncodingRules ruleSet, 454AsnEncodingRules ruleSet, 486if (ruleSet == AsnEncodingRules.CER && lastSegmentLength != MaxCERSegmentSize) 538if (ruleSet == AsnEncodingRules.CER) 589AsnEncodingRules ruleSet, 604if (ruleSet == AsnEncodingRules.CER && contentLength < MaxCERSegmentSize) 632AsnEncodingRules ruleSet, 651if (ruleSet == AsnEncodingRules.DER)
System\Formats\Asn1\AsnDecoder.Boolean.cs (3)
46AsnEncodingRules ruleSet, 74if (val != 0xFF && (ruleSet == AsnEncodingRules.DER || ruleSet == AsnEncodingRules.CER))
System\Formats\Asn1\AsnDecoder.cs (27)
65AsnEncodingRules ruleSet, 145AsnEncodingRules ruleSet, 177AsnEncodingRules ruleSet, 225/// <paramref name="ruleSet"/> is not a known <see cref="AsnEncodingRules"/> value. 236AsnEncodingRules ruleSet, 268/// <paramref name="ruleSet"/> is not a known <see cref="AsnEncodingRules"/> value. 276AsnEncodingRules ruleSet, 291AsnEncodingRules ruleSet, 298private static int? ReadLength(ReadOnlySpan<byte> source, AsnEncodingRules ruleSet, out int bytesConsumed) 322AsnEncodingRules ruleSet, 349if (ruleSet == AsnEncodingRules.DER) 383ruleSet == AsnEncodingRules.DER || ruleSet == AsnEncodingRules.CER; 447AsnEncodingRules ruleSet, 459if (ruleSet == AsnEncodingRules.CER && length != null) 486AsnEncodingRules ruleSet, 495if (ruleSet == AsnEncodingRules.CER && encodedLength != null) 566private static int SeekEndOfContents(ReadOnlySpan<byte> source, AsnEncodingRules ruleSet) 693private static void AssertEncodingRules(AsnEncodingRules ruleSet) 695Debug.Assert(ruleSet >= AsnEncodingRules.BER && ruleSet <= AsnEncodingRules.DER); 698internal static void CheckEncodingRules(AsnEncodingRules ruleSet) 700if (ruleSet != AsnEncodingRules.BER && 701ruleSet != AsnEncodingRules.CER && 702ruleSet != AsnEncodingRules.DER) 764public AsnEncodingRules RuleSet { get; } 791public AsnReader(ReadOnlyMemory<byte> data, AsnEncodingRules ruleSet, AsnReaderOptions options = default)
System\Formats\Asn1\AsnDecoder.Enumerated.cs (3)
50AsnEncodingRules ruleSet, 118AsnEncodingRules ruleSet, 191AsnEncodingRules ruleSet,
System\Formats\Asn1\AsnDecoder.GeneralizedTime.cs (4)
50AsnEncodingRules ruleSet, 82AsnEncodingRules ruleSet, 116bool strict = ruleSet == AsnEncodingRules.DER || ruleSet == AsnEncodingRules.CER;
System\Formats\Asn1\AsnDecoder.Integer.cs (9)
51AsnEncodingRules ruleSet, 101AsnEncodingRules ruleSet, 179AsnEncodingRules ruleSet, 246AsnEncodingRules ruleSet, 312AsnEncodingRules ruleSet, 372AsnEncodingRules ruleSet, 389AsnEncodingRules ruleSet, 427AsnEncodingRules ruleSet, 466AsnEncodingRules ruleSet,
System\Formats\Asn1\AsnDecoder.NamedBitList.cs (5)
107AsnEncodingRules ruleSet, 179AsnEncodingRules ruleSet, 232if (ruleSet == AsnEncodingRules.DER || 233ruleSet == AsnEncodingRules.CER) 323AsnEncodingRules ruleSet,
System\Formats\Asn1\AsnDecoder.Null.cs (1)
43AsnEncodingRules ruleSet,
System\Formats\Asn1\AsnDecoder.OctetString.cs (15)
64AsnEncodingRules ruleSet, 159AsnEncodingRules ruleSet, 186AsnEncodingRules ruleSet, 202if (ruleSet == AsnEncodingRules.DER) 214if (ruleSet == AsnEncodingRules.CER && encodedValue.Length > MaxCERSegmentSize) 269AsnEncodingRules ruleSet, 287AsnEncodingRules ruleSet, 299if (ruleSet == AsnEncodingRules.CER && contentLength <= MaxCERSegmentSize) 309AsnEncodingRules ruleSet, 326AsnEncodingRules ruleSet, 349if (ruleSet == AsnEncodingRules.CER && lastSegmentLength != MaxCERSegmentSize) 368if (ruleSet == AsnEncodingRules.CER && lastSegmentLength > MaxCERSegmentSize) 403if (ruleSet == AsnEncodingRules.CER) 454AsnEncodingRules ruleSet, 478AsnEncodingRules ruleSet,
System\Formats\Asn1\AsnDecoder.Oid.cs (1)
52AsnEncodingRules ruleSet,
System\Formats\Asn1\AsnDecoder.Sequence.cs (1)
57AsnEncodingRules ruleSet,
System\Formats\Asn1\AsnDecoder.SetOf.cs (3)
63AsnEncodingRules ruleSet, 101if (ruleSet == AsnEncodingRules.DER || 102ruleSet == AsnEncodingRules.CER)
System\Formats\Asn1\AsnDecoder.Text.cs (7)
62AsnEncodingRules ruleSet, 148AsnEncodingRules ruleSet, 245AsnEncodingRules ruleSet, 317AsnEncodingRules ruleSet, 336AsnEncodingRules ruleSet, 430AsnEncodingRules ruleSet, 482AsnEncodingRules ruleSet,
System\Formats\Asn1\AsnDecoder.UtcTime.cs (4)
58AsnEncodingRules ruleSet, 109AsnEncodingRules ruleSet, 132if (ruleSet == AsnEncodingRules.DER || ruleSet == AsnEncodingRules.CER)
System\Formats\Asn1\AsnWriter.BitString.cs (1)
74if (RuleSet == AsnEncodingRules.CER)
System\Formats\Asn1\AsnWriter.cs (6)
33public AsnEncodingRules RuleSet { get; } 42public AsnWriter(AsnEncodingRules ruleSet) 44if (ruleSet != AsnEncodingRules.BER && 45ruleSet != AsnEncodingRules.CER && 46ruleSet != AsnEncodingRules.DER) 68public AsnWriter(AsnEncodingRules ruleSet, int initialCapacity) : this(ruleSet)
System\Formats\Asn1\AsnWriter.OctetString.cs (4)
51/// In <see cref="AsnEncodingRules.BER"/> and <see cref="AsnEncodingRules.DER"/> modes, 53/// In <see cref="AsnEncodingRules.CER"/> mode, the contents will be broken up into 84if (RuleSet == AsnEncodingRules.CER)
System\Formats\Asn1\AsnWriter.SetOf.cs (6)
24/// In <see cref="AsnEncodingRules.CER"/> and <see cref="AsnEncodingRules.DER"/> modes, 51/// In <see cref="AsnEncodingRules.CER"/> and <see cref="AsnEncodingRules.DER"/> modes, 78bool sortContents = RuleSet == AsnEncodingRules.CER || RuleSet == AsnEncodingRules.DER;
System\Formats\Asn1\AsnWriter.Text.cs (1)
89if (RuleSet == AsnEncodingRules.CER)
System.Net.Security (6)
src\libraries\Common\src\System\Security\Cryptography\Asn1Reader\AsnValueReader.cs (2)
14private readonly AsnEncodingRules _ruleSet; 16internal AsnValueReader(ReadOnlySpan<byte> span, AsnEncodingRules ruleSet)
System\Net\NegotiateAuthenticationPal.ManagedSpnego.cs (4)
142AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 169AsnWriter mechListWriter = new AsnWriter(AsnEncodingRules.DER); 225AsnValueReader reader = new AsnValueReader(challenge, AsnEncodingRules.DER); 334AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);
System.Security.Cryptography (249)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.ASN1.GetIntegerBytes.cs (1)
42AsnEncodingRules.DER,
src\libraries\Common\src\System\Security\Cryptography\Asn1\AlgorithmIdentifierAsn.xml.cs (2)
50internal static AlgorithmIdentifierAsn Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 55internal static AlgorithmIdentifierAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
src\libraries\Common\src\System\Security\Cryptography\Asn1\AttributeAsn.xml.cs (2)
53internal static AttributeAsn Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 58internal static AttributeAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
src\libraries\Common\src\System\Security\Cryptography\Asn1\CurveAsn.xml.cs (2)
38internal static CurveAsn Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 43internal static CurveAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
src\libraries\Common\src\System\Security\Cryptography\Asn1\DigestInfoAsn.xml.cs (2)
31internal static DigestInfoAsn Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 36internal static DigestInfoAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
src\libraries\Common\src\System\Security\Cryptography\Asn1\DirectoryStringAsn.xml.cs (1)
113internal static DirectoryStringAsn Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
src\libraries\Common\src\System\Security\Cryptography\Asn1\DssParms.xml.cs (2)
33internal static DssParms Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 38internal static DssParms Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
src\libraries\Common\src\System\Security\Cryptography\Asn1\ECDomainParameters.xml.cs (1)
71internal static ECDomainParameters Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
src\libraries\Common\src\System\Security\Cryptography\Asn1\ECPrivateKey.xml.cs (2)
49internal static ECPrivateKey Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 54internal static ECPrivateKey Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
src\libraries\Common\src\System\Security\Cryptography\Asn1\EdiPartyNameAsn.xml.cs (2)
40internal static EdiPartyNameAsn Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 45internal static EdiPartyNameAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
src\libraries\Common\src\System\Security\Cryptography\Asn1\EncryptedPrivateKeyInfoAsn.xml.cs (2)
31internal static EncryptedPrivateKeyInfoAsn Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 36internal static EncryptedPrivateKeyInfoAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
src\libraries\Common\src\System\Security\Cryptography\Asn1\FieldID.xml.cs (2)
45internal static FieldID Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 50internal static FieldID Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
src\libraries\Common\src\System\Security\Cryptography\Asn1\GeneralNameAsn.xml.cs (1)
173internal static GeneralNameAsn Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
src\libraries\Common\src\System\Security\Cryptography\Asn1\OtherNameAsn.xml.cs (2)
47internal static OtherNameAsn Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 52internal static OtherNameAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
src\libraries\Common\src\System\Security\Cryptography\Asn1\PBEParameter.xml.cs (2)
31internal static PBEParameter Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 36internal static PBEParameter Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
src\libraries\Common\src\System\Security\Cryptography\Asn1\PBES2Params.xml.cs (2)
31internal static PBES2Params Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 36internal static PBES2Params Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pbkdf2Params.xml.cs (5)
28reader = new AsnValueReader(DefaultPrf, AsnEncodingRules.DER); 54AsnWriter tmp = new AsnWriter(AsnEncodingRules.DER); 66internal static Pbkdf2Params Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 71internal static Pbkdf2Params Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 139defaultReader = new AsnValueReader(DefaultPrf, AsnEncodingRules.DER);
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pbkdf2SaltChoice.xml.cs (1)
64internal static Pbkdf2SaltChoice Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\CertBagAsn.xml.cs (2)
47internal static CertBagAsn Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 52internal static CertBagAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\MacData.xml.cs (5)
26reader = new AsnValueReader(DefaultIterationCount, AsnEncodingRules.DER); 52AsnWriter tmp = new AsnWriter(AsnEncodingRules.DER, initialCapacity: AsnManagedIntegerDerMaxEncodeSize); 64internal static MacData Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 69internal static MacData Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 134defaultReader = new AsnValueReader(DefaultIterationCount, AsnEncodingRules.DER);
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.xml.cs (2)
38internal static PfxAsn Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 43internal static PfxAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\SafeBagAsn.xml.cs (2)
62internal static SafeBagAsn Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 67internal static SafeBagAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\ContentInfoAsn.xml.cs (2)
47internal static ContentInfoAsn Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 52internal static ContentInfoAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\EncryptedContentInfoAsn.xml.cs (2)
45internal static EncryptedContentInfoAsn Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 50internal static EncryptedContentInfoAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\EncryptedDataAsn.xml.cs (2)
46internal static EncryptedDataAsn Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 51internal static EncryptedDataAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
src\libraries\Common\src\System\Security\Cryptography\Asn1\PrivateKeyInfoAsn.xml.cs (2)
48internal static PrivateKeyInfoAsn Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 53internal static PrivateKeyInfoAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
src\libraries\Common\src\System\Security\Cryptography\Asn1\PssParamsAsn.manual.cs (1)
33AsnEncodingRules.DER);
src\libraries\Common\src\System\Security\Cryptography\Asn1\PssParamsAsn.xml.cs (14)
34reader = new AsnValueReader(DefaultHashAlgorithm, AsnEncodingRules.DER); 38reader = new AsnValueReader(DefaultMaskGenAlgorithm, AsnEncodingRules.DER); 42reader = new AsnValueReader(DefaultSaltLength, AsnEncodingRules.DER); 51reader = new AsnValueReader(DefaultTrailerField, AsnEncodingRules.DER); 74AsnWriter tmp = new AsnWriter(AsnEncodingRules.DER); 88AsnWriter tmp = new AsnWriter(AsnEncodingRules.DER); 103AsnWriter tmp = new AsnWriter(AsnEncodingRules.DER, initialCapacity: AsnManagedIntegerDerMaxEncodeSize); 118AsnWriter tmp = new AsnWriter(AsnEncodingRules.DER, initialCapacity: AsnManagedIntegerDerMaxEncodeSize); 132internal static PssParamsAsn Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 137internal static PssParamsAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 186defaultReader = new AsnValueReader(DefaultHashAlgorithm, AsnEncodingRules.DER); 199defaultReader = new AsnValueReader(DefaultMaskGenAlgorithm, AsnEncodingRules.DER); 217defaultReader = new AsnValueReader(DefaultSaltLength, AsnEncodingRules.DER); 240defaultReader = new AsnValueReader(DefaultTrailerField, AsnEncodingRules.DER);
src\libraries\Common\src\System\Security\Cryptography\Asn1\Rc2CbcParameters.xml.cs (2)
31internal static Rc2CbcParameters Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 36internal static Rc2CbcParameters Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
src\libraries\Common\src\System\Security\Cryptography\Asn1\RSAPrivateKeyAsn.xml.cs (2)
45internal static RSAPrivateKeyAsn Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 50internal static RSAPrivateKeyAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
src\libraries\Common\src\System\Security\Cryptography\Asn1\RSAPublicKeyAsn.xml.cs (2)
31internal static RSAPublicKeyAsn Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 36internal static RSAPublicKeyAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
src\libraries\Common\src\System\Security\Cryptography\Asn1\SpecifiedECDomain.xml.cs (2)
58internal static SpecifiedECDomain Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 63internal static SpecifiedECDomain Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
src\libraries\Common\src\System\Security\Cryptography\Asn1\SubjectPublicKeyInfoAsn.xml.cs (2)
31internal static SubjectPublicKeyInfoAsn Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 36internal static SubjectPublicKeyInfoAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
src\libraries\Common\src\System\Security\Cryptography\Asn1\X509ExtensionAsn.xml.cs (5)
26reader = new AsnValueReader(DefaultCritical, AsnEncodingRules.DER); 53AsnWriter tmp = new AsnWriter(AsnEncodingRules.DER, initialCapacity: AsnBoolDerEncodeSize); 66internal static X509ExtensionAsn Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 71internal static X509ExtensionAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 121defaultReader = new AsnValueReader(DefaultCritical, AsnEncodingRules.DER);
src\libraries\Common\src\System\Security\Cryptography\Asn1Reader\AsnValueReader.cs (2)
14private readonly AsnEncodingRules _ruleSet; 16internal AsnValueReader(ReadOnlySpan<byte> span, AsnEncodingRules ruleSet)
src\libraries\Common\src\System\Security\Cryptography\DSAKeyFormatHelper.cs (7)
34AsnEncodingRules.DER, 50DssParms parms = DssParms.Decode(algId.Parameters.Value, AsnEncodingRules.BER); 100AsnEncodingRules.DER, 113DssParms parms = DssParms.Decode(algId.Parameters.Value, AsnEncodingRules.BER); 230AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 242AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 274AsnWriter inner = new AsnWriter(AsnEncodingRules.DER);
src\libraries\Common\src\System\Security\Cryptography\EccKeyFormatHelper.cs (11)
84AsnEncodingRules.BER, 111ECPrivateKey key = ECPrivateKey.Decode(keyData, AsnEncodingRules.BER); 164domainParameters = ECDomainParameters.Decode(algId.Parameters!.Value, AsnEncodingRules.DER); 217AsnEncodingRules.DER); 248AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 316AsnReader primeReader = new AsnReader(specifiedParameters.FieldID.Parameters, AsnEncodingRules.BER); 334AsnReader char2Reader = new AsnReader(specifiedParameters.FieldID.Parameters, AsnEncodingRules.BER); 461AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 478AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 516AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 828AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);
src\libraries\Common\src\System\Security\Cryptography\KeyFormatHelper.cs (5)
43AsnValueReader reader = new AsnValueReader(source.Span, AsnEncodingRules.DER); 74AsnValueReader reader = new AsnValueReader(source.Span, AsnEncodingRules.DER); 115AsnValueReader reader = new AsnValueReader(source.Span, AsnEncodingRules.BER); 142AsnValueReader reader = new AsnValueReader(source.Span, AsnEncodingRules.BER); 184AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);
src\libraries\Common\src\System\Security\Cryptography\KeyFormatHelper.Encrypted.cs (5)
105AsnValueReader reader = new AsnValueReader(source.Span, AsnEncodingRules.BER); 221writer = new AsnWriter(AsnEncodingRules.DER); 286AsnValueReader reader = new AsnValueReader(source.Span, AsnEncodingRules.BER); 337AsnWriter pkcs8Writer = new AsnWriter(AsnEncodingRules.BER); 373AsnWriter pkcs8Writer = new AsnWriter(AsnEncodingRules.BER);
src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (6)
520PBES2Params pbes2Params = PBES2Params.Decode(algorithmParameters.Value, AsnEncodingRules.BER); 649AsnEncodingRules.BER); 702AsnEncodingRules.BER, 730Pbkdf2Params pbkdf2Params = Pbkdf2Params.Decode(parameters.Value, AsnEncodingRules.BER); 819PBEParameter pbeParameters = PBEParameter.Decode(algorithmParameters.Value, AsnEncodingRules.BER); 882AsnEncodingRules.BER);
src\libraries\Common\src\System\Security\Cryptography\RSAKeyFormatHelper.cs (8)
23RSAPrivateKeyAsn key = RSAPrivateKeyAsn.Decode(keyData, AsnEncodingRules.BER); 63RSAPublicKeyAsn key = RSAPublicKeyAsn.Decode(keyData, AsnEncodingRules.BER); 80AsnValueReader reader = new AsnValueReader(keyData.Span, AsnEncodingRules.DER); 82RSAPublicKeyAsn.Decode(keyData, AsnEncodingRules.BER); 178AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 212AsnWriter writer = new AsnWriter(AsnEncodingRules.BER); 265AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 291AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);
src\libraries\Common\src\System\Security\Cryptography\RSAOpenSsl.cs (3)
493AsnEncodingRules.BER, 609AsnEncodingRules.BER, 813_ = RSAPrivateKeyAsn.Decode(pkcs1Priv, AsnEncodingRules.BER);
src\libraries\Common\src\System\Security\Cryptography\X509Certificates\X509CertificateLoader.cs (1)
635if (!AsnDecoder.TryDecodeLength(lengthPart, AsnEncodingRules.BER, out int? decoded, out int decodedLength))
src\libraries\Common\src\System\Security\Cryptography\X509Certificates\X509CertificateLoader.Pkcs12.cs (14)
140AsnDecoder.ReadSequence(data.Span, AsnEncodingRules.BER, out _, out _, out int trimLength); 143PfxAsn pfxAsn = PfxAsn.Decode(data, AsnEncodingRules.BER); 188AsnValueReader outer = new AsnValueReader(authSafeContents, AsnEncodingRules.BER); 277AsnValueReader outer = new AsnValueReader(contentData.Span, AsnEncodingRules.BER); 294CertBagAsn certBag = CertBagAsn.Decode(bag.BagValue, AsnEncodingRules.BER); 341AsnEncodingRules.BER); 461EncryptedDataAsn.Decode(safeContentsAsn.Content, AsnEncodingRules.BER); 536AsnEncodingRules.BER); 542AsnEncodingRules.BER); 559AsnEncodingRules.BER); 695AsnEncodingRules.BER); 805AsnValueReader reader = new AsnValueReader(decrypted, AsnEncodingRules.BER); 833AsnValueReader reader = new AsnValueReader(decrypted, AsnEncodingRules.BER); 894AsnWriter writer = new AsnWriter(AsnEncodingRules.BER);
System\Security\Cryptography\AsymmetricAlgorithmHelpers.Der.cs (2)
42AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 72AsnValueReader reader = new AsnValueReader(input, AsnEncodingRules.DER);
System\Security\Cryptography\Helpers.cs (3)
161AsnEncodingRules.BER, 178byte[] ret = AsnDecoder.ReadOctetString(input, AsnEncodingRules.BER, out consumed); 273AsnValueReader reader = new AsnValueReader(encodedValue, AsnEncodingRules.DER);
System\Security\Cryptography\RSA.cs (2)
897AsnEncodingRules.BER, 927AsnEncodingRules.BER,
System\Security\Cryptography\X509Certificates\Asn1\AccessDescriptionAsn.xml.cs (2)
38internal static AccessDescriptionAsn Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 43internal static AccessDescriptionAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
System\Security\Cryptography\X509Certificates\Asn1\BasicConstraintsAsn.xml.cs (5)
25reader = new AsnValueReader(DefaultCA, AsnEncodingRules.DER); 44AsnWriter tmp = new AsnWriter(AsnEncodingRules.DER, initialCapacity: AsnBoolDerEncodeSize); 62internal static BasicConstraintsAsn Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 67internal static BasicConstraintsAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 113defaultReader = new AsnValueReader(DefaultCA, AsnEncodingRules.DER);
System\Security\Cryptography\X509Certificates\Asn1\CertificateAsn.xml.cs (2)
33internal static CertificateAsn Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 38internal static CertificateAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
System\Security\Cryptography\X509Certificates\Asn1\CertificatePolicyMappingAsn.xml.cs (2)
45internal static CertificatePolicyMappingAsn Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 50internal static CertificatePolicyMappingAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
System\Security\Cryptography\X509Certificates\Asn1\CertificateTemplateAsn.xml.cs (2)
45internal static CertificateTemplateAsn Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 50internal static CertificateTemplateAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
System\Security\Cryptography\X509Certificates\Asn1\CertificationRequestAsn.xml.cs (2)
33internal static CertificationRequestAsn Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 38internal static CertificationRequestAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
System\Security\Cryptography\X509Certificates\Asn1\CertificationRequestInfoAsn.xml.cs (2)
59internal static CertificationRequestInfoAsn Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 64internal static CertificationRequestInfoAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
System\Security\Cryptography\X509Certificates\Asn1\DistributionPointAsn.xml.cs (2)
58internal static DistributionPointAsn Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 63internal static DistributionPointAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
System\Security\Cryptography\X509Certificates\Asn1\DistributionPointNameAsn.xml.cs (1)
88internal static DistributionPointNameAsn Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
System\Security\Cryptography\X509Certificates\Asn1\PolicyConstraintsAsn.xml.cs (2)
41internal static PolicyConstraintsAsn Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 46internal static PolicyConstraintsAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
System\Security\Cryptography\X509Certificates\Asn1\PolicyInformationAsn.xml.cs (2)
50internal static PolicyInformationAsn Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 55internal static PolicyInformationAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
System\Security\Cryptography\X509Certificates\Asn1\TbsCertificateAsn.xml.cs (5)
34reader = new AsnValueReader(DefaultVersion, AsnEncodingRules.DER); 58AsnWriter tmp = new AsnWriter(AsnEncodingRules.DER, initialCapacity: AsnManagedIntegerDerMaxEncodeSize); 137internal static TbsCertificateAsn Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 142internal static TbsCertificateAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 200defaultReader = new AsnValueReader(DefaultVersion, AsnEncodingRules.DER);
System\Security\Cryptography\X509Certificates\Asn1\TimeAsn.xml.cs (1)
64internal static TimeAsn Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
System\Security\Cryptography\X509Certificates\Asn1\ValidityAsn.xml.cs (2)
31internal static ValidityAsn Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 36internal static ValidityAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
System\Security\Cryptography\X509Certificates\CertificatePolicy.cs (5)
292AsnValueReader reader = new AsnValueReader(rawData, AsnEncodingRules.DER); 308AsnEncodingRules.DER); 320AsnValueReader reader = new AsnValueReader(rawData, AsnEncodingRules.DER); 342AsnValueReader reader = new AsnValueReader(rawData, AsnEncodingRules.DER); 371AsnValueReader reader = new AsnValueReader(rawData, AsnEncodingRules.DER);
System\Security\Cryptography\X509Certificates\CertificateRequest.cs (2)
822signatureAlgorithmAsn = AlgorithmIdentifierAsn.Decode(signatureAlgorithm, AsnEncodingRules.DER); 879AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);
System\Security\Cryptography\X509Certificates\CertificateRequest.Load.cs (3)
136AsnValueReader outer = new AsnValueReader(pkcs10, AsnEncodingRules.DER); 230AsnEncodingRules.DER); 311AsnEncodingRules.DER);
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.Build.cs (2)
337signatureAlgorithmAsn = AlgorithmIdentifierAsn.Decode(signatureAlgId, AsnEncodingRules.DER); 345AsnWriter writer = (_writer ??= new AsnWriter(AsnEncodingRules.DER));
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.CdpExtension.cs (1)
72writer = new AsnWriter(AsnEncodingRules.DER);
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.cs (1)
178AsnWriter writer = (_writer ??= new AsnWriter(AsnEncodingRules.DER));
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.Load.cs (2)
94AsnValueReader reader = new AsnValueReader(currentCrl, AsnEncodingRules.DER); 174AsnEncodingRules.DER);
System\Security\Cryptography\X509Certificates\ECDsaX509SignatureGenerator.cs (2)
57AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 96AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);
System\Security\Cryptography\X509Certificates\ManagedCertificateFinder.cs (2)
163AsnReader reader = new AsnReader(ext.RawData, AsnEncodingRules.DER); 183CertificateTemplateAsn template = CertificateTemplateAsn.Decode(ext.RawData, AsnEncodingRules.DER);
System\Security\Cryptography\X509Certificates\OpenSslCrlCache.cs (1)
327AsnValueReader reader = new AsnValueReader(crlDistributionPoints, AsnEncodingRules.DER);
System\Security\Cryptography\X509Certificates\OpenSslX509ChainProcessor.cs (1)
1233AsnValueReader reader = new AsnValueReader(authorityInformationAccess.Span, AsnEncodingRules.DER);
System\Security\Cryptography\X509Certificates\OpenSslX509Encoder.cs (1)
178AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);
System\Security\Cryptography\X509Certificates\Pkcs10CertificationRequestInfo.cs (2)
48signatureAlgorithmAsn = AlgorithmIdentifierAsn.Decode(signatureAlgorithm, AsnEncodingRules.DER); 72AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);
System\Security\Cryptography\X509Certificates\Pkcs9ExtensionRequest.cs (1)
21AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);
System\Security\Cryptography\X509Certificates\PublicKey.cs (2)
287AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 301AsnValueReader reader = new AsnValueReader(source, AsnEncodingRules.DER);
System\Security\Cryptography\X509Certificates\RSAPkcs1X509SignatureGenerator.cs (1)
83AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);
System\Security\Cryptography\X509Certificates\RSAPssX509SignatureGenerator.cs (1)
81AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);
System\Security\Cryptography\X509Certificates\SubjectAlternativeNameBuilder.cs (3)
55AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 70AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 91AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);
System\Security\Cryptography\X509Certificates\UnixExportProvider.cs (1)
100AsnWriter tmpWriter = new AsnWriter(AsnEncodingRules.DER);
System\Security\Cryptography\X509Certificates\X500DistinguishedName.cs (1)
134AsnValueReader outer = new AsnValueReader(rawDataSpan, AsnEncodingRules.DER);
System\Security\Cryptography\X509Certificates\X500DistinguishedNameBuilder.cs (1)
35private readonly AsnWriter _writer = new AsnWriter(AsnEncodingRules.DER);
System\Security\Cryptography\X509Certificates\X500NameEncoder.cs (2)
123AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 511AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);
System\Security\Cryptography\X509Certificates\X500NameEncoder.ManagedDecode.cs (2)
24AsnReader x500NameReader = new AsnReader(encodedName, AsnEncodingRules.DER); 151Debug.Assert(tavReader.RuleSet == AsnEncodingRules.DER);
System\Security\Cryptography\X509Certificates\X500RelativeDistinguishedName.cs (2)
31AsnValueReader outer = new AsnValueReader(rawDataSpan, AsnEncodingRules.DER); 130AsnValueReader reader = new AsnValueReader(_singleElementValue.Span, AsnEncodingRules.DER);
System\Security\Cryptography\X509Certificates\X509AuthorityInformationAccessExtension.cs (2)
240AsnValueReader reader = new AsnValueReader(authorityInfoAccessSyntax, AsnEncodingRules.DER); 278AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);
System\Security\Cryptography\X509Certificates\X509AuthorityKeyIdentifierExtension.cs (4)
241AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 311AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 410AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 517AsnValueReader reader = new AsnValueReader(rawData, AsnEncodingRules.DER);
System\Security\Cryptography\X509Certificates\X509BasicConstraintsExtension.cs (2)
157AsnWriter writer = new AsnWriter(AsnEncodingRules.DER, initialCapacity: 11); 168BasicConstraintsAsn constraints = BasicConstraintsAsn.Decode(encoded, AsnEncodingRules.BER);
System\Security\Cryptography\X509Certificates\X509Certificate2.cs (2)
1105CertificateAsn.Decode(certData, AsnEncodingRules.DER); 1388AsnValueReader reader = new AsnValueReader(rdn.RawData.Span, AsnEncodingRules.DER);
System\Security\Cryptography\X509Certificates\X509Certificate2Collection.cs (1)
399CertificateAsn.Decode(certBytes, AsnEncodingRules.DER);
System\Security\Cryptography\X509Certificates\X509CertificateLoader.Unix.cs (5)
134AsnValueReader reader = new AsnValueReader(memory.Span, AsnEncodingRules.BER); 160AsnValueReader reader = new AsnValueReader(memory.Span, AsnEncodingRules.BER); 229CertBagAsn certBag = CertBagAsn.Decode(safeBag.BagValue, AsnEncodingRules.BER); 261PrivateKeyInfoAsn.Decode(safeBag.BagValue, AsnEncodingRules.BER); 524AsnEncodingRules.BER);
System\Security\Cryptography\X509Certificates\X509EnhancedKeyUsageExtension.cs (2)
67AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 90AsnReader reader = new AsnReader(encoded, AsnEncodingRules.BER);
System\Security\Cryptography\X509Certificates\X509KeyUsageExtension.cs (2)
58AsnWriter writer = new AsnWriter(AsnEncodingRules.DER, initialCapacity: 5); 70AsnValueReader reader = new AsnValueReader(encoded, AsnEncodingRules.BER);
System\Security\Cryptography\X509Certificates\X509SubjectAlternativeNameExtension.cs (1)
82AsnValueReader outer = new AsnValueReader(rawData, AsnEncodingRules.DER);
System\Security\Cryptography\X509Certificates\X509SubjectKeyIdentifierExtension.cs (2)
108AsnEncodingRules.BER, 141AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);
System.Security.Cryptography.Pkcs (251)
Internal\Cryptography\Pal\AnyOS\AsnHelpers.cs (2)
71AsnEncodingRules.BER); 103AsnReader reader = new AsnReader(asn.Parameters.Value, AsnEncodingRules.BER);
Internal\Cryptography\Pal\AnyOS\ManagedPal.Asn.cs (1)
20AsnValueReader reader = new AsnValueReader(encodedMessage, AsnEncodingRules.BER);
Internal\Cryptography\Pal\AnyOS\ManagedPal.cs (3)
47AsnValueReader reader = new AsnValueReader(extension.RawData, AsnEncodingRules.DER); 106AsnEncodingRules.BER); 121AsnReader reader = new AsnReader(contentEncryptionAlgorithm.Parameters.Value, AsnEncodingRules.BER);
Internal\Cryptography\Pal\AnyOS\ManagedPal.Decode.cs (2)
29EnvelopedDataAsn data = EnvelopedDataAsn.Decode(copy, AsnEncodingRules.BER); 89AsnValueReader reader = new AsnValueReader(encodedMessage, AsnEncodingRules.BER);
Internal\Cryptography\Pal\AnyOS\ManagedPal.Decrypt.cs (1)
128AsnWriter writer = new AsnWriter(AsnEncodingRules.BER);
Internal\Cryptography\Pal\AnyOS\ManagedPal.Encrypt.cs (3)
144AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 163AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 184AsnEncodingRules.BER,
Internal\Cryptography\PkcsHelpers.cs (15)
160AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 175AsnValueReader reader = new AsnValueReader(normalizedValue, AsnEncodingRules.DER); 197AsnEncodingRules ruleSet = AsnEncodingRules.DER) 468if (!AsnDecoder.TryReadEncodedValue(source, AsnEncodingRules.BER, out _, out _, out _, out int consumed) || 477if (!AsnDecoder.TryReadEncodedValue(source, AsnEncodingRules.BER, out _, out _, out _, out int consumed)) 493AsnEncodingRules.BER, 510byte[] ret = AsnDecoder.ReadOctetString(input, AsnEncodingRules.BER, out consumed); 530byte[] ret = AsnDecoder.ReadOctetString(encodedOctets.Span, AsnEncodingRules.BER, out int consumed); 548AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 557AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 589AsnEncodingRules.BER, 618AsnEncodingRules.BER, 650OaepParamsAsn oaepParameters = OaepParamsAsn.Decode(parameters.Value, AsnEncodingRules.DER); 661AlgorithmIdentifierAsn mgf1AlgorithmIdentifier = AlgorithmIdentifierAsn.Decode(oaepParameters.MaskGenFunc.Parameters.Value, AsnEncodingRules.DER);
src\libraries\Common\src\System\Security\Cryptography\Asn1\AlgorithmIdentifierAsn.xml.cs (2)
50internal static AlgorithmIdentifierAsn Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 55internal static AlgorithmIdentifierAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
src\libraries\Common\src\System\Security\Cryptography\Asn1\AttributeAsn.xml.cs (2)
53internal static AttributeAsn Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 58internal static AttributeAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
src\libraries\Common\src\System\Security\Cryptography\Asn1\DigestInfoAsn.xml.cs (2)
31internal static DigestInfoAsn Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 36internal static DigestInfoAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
src\libraries\Common\src\System\Security\Cryptography\Asn1\DirectoryStringAsn.xml.cs (1)
113internal static DirectoryStringAsn Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
src\libraries\Common\src\System\Security\Cryptography\Asn1\EdiPartyNameAsn.xml.cs (2)
40internal static EdiPartyNameAsn Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 45internal static EdiPartyNameAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
src\libraries\Common\src\System\Security\Cryptography\Asn1\EncryptedPrivateKeyInfoAsn.xml.cs (2)
31internal static EncryptedPrivateKeyInfoAsn Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 36internal static EncryptedPrivateKeyInfoAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
src\libraries\Common\src\System\Security\Cryptography\Asn1\GeneralNameAsn.xml.cs (1)
173internal static GeneralNameAsn Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
src\libraries\Common\src\System\Security\Cryptography\Asn1\OaepParamsAsn.xml.cs (11)
31reader = new AsnValueReader(DefaultHashFunc, AsnEncodingRules.DER); 35reader = new AsnValueReader(DefaultMaskGenFunc, AsnEncodingRules.DER); 39reader = new AsnValueReader(DefaultPSourceFunc, AsnEncodingRules.DER); 57AsnWriter tmp = new AsnWriter(AsnEncodingRules.DER); 71AsnWriter tmp = new AsnWriter(AsnEncodingRules.DER); 85AsnWriter tmp = new AsnWriter(AsnEncodingRules.DER); 99internal static OaepParamsAsn Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 104internal static OaepParamsAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 153defaultReader = new AsnValueReader(DefaultHashFunc, AsnEncodingRules.DER); 166defaultReader = new AsnValueReader(DefaultMaskGenFunc, AsnEncodingRules.DER); 179defaultReader = new AsnValueReader(DefaultPSourceFunc, AsnEncodingRules.DER);
src\libraries\Common\src\System\Security\Cryptography\Asn1\OtherNameAsn.xml.cs (2)
47internal static OtherNameAsn Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 52internal static OtherNameAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
src\libraries\Common\src\System\Security\Cryptography\Asn1\PBEParameter.xml.cs (2)
31internal static PBEParameter Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 36internal static PBEParameter Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
src\libraries\Common\src\System\Security\Cryptography\Asn1\PBES2Params.xml.cs (2)
31internal static PBES2Params Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 36internal static PBES2Params Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pbkdf2Params.xml.cs (5)
28reader = new AsnValueReader(DefaultPrf, AsnEncodingRules.DER); 54AsnWriter tmp = new AsnWriter(AsnEncodingRules.DER); 66internal static Pbkdf2Params Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 71internal static Pbkdf2Params Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 139defaultReader = new AsnValueReader(DefaultPrf, AsnEncodingRules.DER);
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pbkdf2SaltChoice.xml.cs (1)
64internal static Pbkdf2SaltChoice Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\CertBagAsn.xml.cs (2)
47internal static CertBagAsn Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 52internal static CertBagAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\MacData.xml.cs (5)
26reader = new AsnValueReader(DefaultIterationCount, AsnEncodingRules.DER); 52AsnWriter tmp = new AsnWriter(AsnEncodingRules.DER, initialCapacity: AsnManagedIntegerDerMaxEncodeSize); 64internal static MacData Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 69internal static MacData Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 134defaultReader = new AsnValueReader(DefaultIterationCount, AsnEncodingRules.DER);
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.xml.cs (2)
38internal static PfxAsn Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 43internal static PfxAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\SafeBagAsn.xml.cs (2)
62internal static SafeBagAsn Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 67internal static SafeBagAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\ContentInfoAsn.xml.cs (2)
47internal static ContentInfoAsn Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 52internal static ContentInfoAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\EncryptedContentInfoAsn.xml.cs (2)
45internal static EncryptedContentInfoAsn Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 50internal static EncryptedContentInfoAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\EncryptedDataAsn.xml.cs (2)
46internal static EncryptedDataAsn Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 51internal static EncryptedDataAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
src\libraries\Common\src\System\Security\Cryptography\Asn1\PrivateKeyInfoAsn.xml.cs (2)
48internal static PrivateKeyInfoAsn Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 53internal static PrivateKeyInfoAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
src\libraries\Common\src\System\Security\Cryptography\Asn1\PssParamsAsn.manual.cs (1)
33AsnEncodingRules.DER);
src\libraries\Common\src\System\Security\Cryptography\Asn1\PssParamsAsn.xml.cs (14)
34reader = new AsnValueReader(DefaultHashAlgorithm, AsnEncodingRules.DER); 38reader = new AsnValueReader(DefaultMaskGenAlgorithm, AsnEncodingRules.DER); 42reader = new AsnValueReader(DefaultSaltLength, AsnEncodingRules.DER); 51reader = new AsnValueReader(DefaultTrailerField, AsnEncodingRules.DER); 74AsnWriter tmp = new AsnWriter(AsnEncodingRules.DER); 88AsnWriter tmp = new AsnWriter(AsnEncodingRules.DER); 103AsnWriter tmp = new AsnWriter(AsnEncodingRules.DER, initialCapacity: AsnManagedIntegerDerMaxEncodeSize); 118AsnWriter tmp = new AsnWriter(AsnEncodingRules.DER, initialCapacity: AsnManagedIntegerDerMaxEncodeSize); 132internal static PssParamsAsn Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 137internal static PssParamsAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 186defaultReader = new AsnValueReader(DefaultHashAlgorithm, AsnEncodingRules.DER); 199defaultReader = new AsnValueReader(DefaultMaskGenAlgorithm, AsnEncodingRules.DER); 217defaultReader = new AsnValueReader(DefaultSaltLength, AsnEncodingRules.DER); 240defaultReader = new AsnValueReader(DefaultTrailerField, AsnEncodingRules.DER);
src\libraries\Common\src\System\Security\Cryptography\Asn1\Rc2CbcParameters.xml.cs (2)
31internal static Rc2CbcParameters Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 36internal static Rc2CbcParameters Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
src\libraries\Common\src\System\Security\Cryptography\Asn1\SubjectPublicKeyInfoAsn.xml.cs (2)
31internal static SubjectPublicKeyInfoAsn Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 36internal static SubjectPublicKeyInfoAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
src\libraries\Common\src\System\Security\Cryptography\Asn1\X509ExtensionAsn.xml.cs (5)
26reader = new AsnValueReader(DefaultCritical, AsnEncodingRules.DER); 53AsnWriter tmp = new AsnWriter(AsnEncodingRules.DER, initialCapacity: AsnBoolDerEncodeSize); 66internal static X509ExtensionAsn Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 71internal static X509ExtensionAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 121defaultReader = new AsnValueReader(DefaultCritical, AsnEncodingRules.DER);
src\libraries\Common\src\System\Security\Cryptography\Asn1Reader\AsnValueReader.cs (2)
14private readonly AsnEncodingRules _ruleSet; 16internal AsnValueReader(ReadOnlySpan<byte> span, AsnEncodingRules ruleSet)
src\libraries\Common\src\System\Security\Cryptography\KeyFormatHelper.cs (5)
43AsnValueReader reader = new AsnValueReader(source.Span, AsnEncodingRules.DER); 74AsnValueReader reader = new AsnValueReader(source.Span, AsnEncodingRules.DER); 115AsnValueReader reader = new AsnValueReader(source.Span, AsnEncodingRules.BER); 142AsnValueReader reader = new AsnValueReader(source.Span, AsnEncodingRules.BER); 184AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);
src\libraries\Common\src\System\Security\Cryptography\KeyFormatHelper.Encrypted.cs (5)
105AsnValueReader reader = new AsnValueReader(source.Span, AsnEncodingRules.BER); 221writer = new AsnWriter(AsnEncodingRules.DER); 286AsnValueReader reader = new AsnValueReader(source.Span, AsnEncodingRules.BER); 337AsnWriter pkcs8Writer = new AsnWriter(AsnEncodingRules.BER); 373AsnWriter pkcs8Writer = new AsnWriter(AsnEncodingRules.BER);
src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (6)
520PBES2Params pbes2Params = PBES2Params.Decode(algorithmParameters.Value, AsnEncodingRules.BER); 649AsnEncodingRules.BER); 702AsnEncodingRules.BER, 730Pbkdf2Params pbkdf2Params = Pbkdf2Params.Decode(parameters.Value, AsnEncodingRules.BER); 819PBEParameter pbeParameters = PBEParameter.Decode(algorithmParameters.Value, AsnEncodingRules.BER); 882AsnEncodingRules.BER);
System\Security\Cryptography\Pkcs\Asn1\CadesIssuerSerial.xml.cs (2)
39internal static CadesIssuerSerial Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 44internal static CadesIssuerSerial Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
System\Security\Cryptography\Pkcs\Asn1\CertificateChoiceAsn.xml.cs (1)
161internal static CertificateChoiceAsn Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
System\Security\Cryptography\Pkcs\Asn1\EncapsulatedContentInfoAsn.xml.cs (2)
52internal static EncapsulatedContentInfoAsn Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 57internal static EncapsulatedContentInfoAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
System\Security\Cryptography\Pkcs\Asn1\EnvelopedDataAsn.xml.cs (2)
62internal static EnvelopedDataAsn Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 67internal static EnvelopedDataAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
System\Security\Cryptography\Pkcs\Asn1\EssCertId.xml.cs (2)
36internal static EssCertId Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 41internal static EssCertId Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
System\Security\Cryptography\Pkcs\Asn1\EssCertIdV2.xml.cs (5)
27reader = new AsnValueReader(DefaultHashAlgorithm, AsnEncodingRules.DER); 45AsnWriter tmp = new AsnWriter(AsnEncodingRules.DER); 64internal static EssCertIdV2 Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 69internal static EssCertIdV2 Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 118defaultReader = new AsnValueReader(DefaultHashAlgorithm, AsnEncodingRules.DER);
System\Security\Cryptography\Pkcs\Asn1\IssuerAndSerialNumberAsn.xml.cs (2)
47internal static IssuerAndSerialNumberAsn Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 52internal static IssuerAndSerialNumberAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
System\Security\Cryptography\Pkcs\Asn1\KeyAgreeRecipientIdentifierAsn.xml.cs (1)
64internal static KeyAgreeRecipientIdentifierAsn Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
System\Security\Cryptography\Pkcs\Asn1\KeyAgreeRecipientInfoAsn.xml.cs (2)
54internal static KeyAgreeRecipientInfoAsn Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 59internal static KeyAgreeRecipientInfoAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
System\Security\Cryptography\Pkcs\Asn1\KeyTransRecipientInfoAsn.xml.cs (2)
35internal static KeyTransRecipientInfoAsn Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 40internal static KeyTransRecipientInfoAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
System\Security\Cryptography\Pkcs\Asn1\MessageImprint.xml.cs (2)
31internal static MessageImprint Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 36internal static MessageImprint Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
System\Security\Cryptography\Pkcs\Asn1\OriginatorIdentifierOrKeyAsn.xml.cs (1)
75internal static OriginatorIdentifierOrKeyAsn Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
System\Security\Cryptography\Pkcs\Asn1\OriginatorInfoAsn.xml.cs (2)
63internal static OriginatorInfoAsn Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 68internal static OriginatorInfoAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
System\Security\Cryptography\Pkcs\Asn1\OriginatorPublicKeyAsn.xml.cs (2)
31internal static OriginatorPublicKeyAsn Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 36internal static OriginatorPublicKeyAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
System\Security\Cryptography\Pkcs\Asn1\OtherCertificateFormat.xml.cs (2)
45internal static OtherCertificateFormat Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 50internal static OtherCertificateFormat Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
System\Security\Cryptography\Pkcs\Asn1\OtherKeyAttributeAsn.xml.cs (2)
50internal static OtherKeyAttributeAsn Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 55internal static OtherKeyAttributeAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
System\Security\Cryptography\Pkcs\Asn1\PkiStatusInfo.xml.cs (2)
59internal static PkiStatusInfo Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 64internal static PkiStatusInfo Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
System\Security\Cryptography\Pkcs\Asn1\PolicyInformation.xml.cs (2)
51internal static PolicyInformation Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 56internal static PolicyInformation Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
System\Security\Cryptography\Pkcs\Asn1\PolicyQualifierInfo.xml.cs (2)
45internal static PolicyQualifierInfo Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 50internal static PolicyQualifierInfo Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
System\Security\Cryptography\Pkcs\Asn1\RecipientEncryptedKeyAsn.xml.cs (2)
31internal static RecipientEncryptedKeyAsn Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 36internal static RecipientEncryptedKeyAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
System\Security\Cryptography\Pkcs\Asn1\RecipientIdentifierAsn.xml.cs (1)
64internal static RecipientIdentifierAsn Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
System\Security\Cryptography\Pkcs\Asn1\RecipientInfoAsn.xml.cs (1)
64internal static RecipientInfoAsn Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
System\Security\Cryptography\Pkcs\Asn1\RecipientKeyIdentifier.xml.cs (2)
43internal static RecipientKeyIdentifier Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 48internal static RecipientKeyIdentifier Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
System\Security\Cryptography\Pkcs\Asn1\Rfc3161Accuracy.xml.cs (2)
48internal static Rfc3161Accuracy Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 53internal static Rfc3161Accuracy Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
System\Security\Cryptography\Pkcs\Asn1\Rfc3161TimeStampReq.xml.cs (5)
30reader = new AsnValueReader(DefaultCertReq, AsnEncodingRules.DER); 70AsnWriter tmp = new AsnWriter(AsnEncodingRules.DER, initialCapacity: AsnBoolDerEncodeSize); 95internal static Rfc3161TimeStampReq Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 100internal static Rfc3161TimeStampReq Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 170defaultReader = new AsnValueReader(DefaultCertReq, AsnEncodingRules.DER);
System\Security\Cryptography\Pkcs\Asn1\Rfc3161TimeStampResp.xml.cs (2)
43internal static Rfc3161TimeStampResp Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 48internal static Rfc3161TimeStampResp Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
System\Security\Cryptography\Pkcs\Asn1\Rfc3161TstInfo.xml.cs (5)
34reader = new AsnValueReader(DefaultOrdering, AsnEncodingRules.DER); 71AsnWriter tmp = new AsnWriter(AsnEncodingRules.DER, initialCapacity: AsnBoolDerEncodeSize); 110internal static Rfc3161TstInfo Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 115internal static Rfc3161TstInfo Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 186defaultReader = new AsnValueReader(DefaultOrdering, AsnEncodingRules.DER);
System\Security\Cryptography\Pkcs\Asn1\SecretBagAsn.xml.cs (2)
47internal static SecretBagAsn Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 52internal static SecretBagAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
System\Security\Cryptography\Pkcs\Asn1\SignedAttributesSet.xml.cs (1)
61internal static SignedAttributesSet Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
System\Security\Cryptography\Pkcs\Asn1\SignedDataAsn.xml.cs (2)
85internal static SignedDataAsn Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 90internal static SignedDataAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
System\Security\Cryptography\Pkcs\Asn1\SignerIdentifierAsn.xml.cs (1)
64internal static SignerIdentifierAsn Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
System\Security\Cryptography\Pkcs\Asn1\SignerInfoAsn.xml.cs (2)
75internal static SignerInfoAsn Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 80internal static SignerInfoAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
System\Security\Cryptography\Pkcs\Asn1\SigningCertificateAsn.xml.cs (2)
51internal static SigningCertificateAsn Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 56internal static SigningCertificateAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
System\Security\Cryptography\Pkcs\Asn1\SigningCertificateV2Asn.xml.cs (2)
51internal static SigningCertificateV2Asn Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 56internal static SigningCertificateV2Asn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
System\Security\Cryptography\Pkcs\CmsSignature.cs (2)
166AsnReader reader = new AsnReader(derSignature, AsnEncodingRules.DER); 223AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);
System\Security\Cryptography\Pkcs\CmsSignature.RSA.cs (1)
304PssParamsAsn pssParams = PssParamsAsn.Decode(signatureParameters.Value, AsnEncodingRules.DER);
System\Security\Cryptography\Pkcs\CmsSigner.cs (2)
211AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 243AsnWriter attrsWriter = new AsnWriter(AsnEncodingRules.BER);
System\Security\Cryptography\Pkcs\Pkcs12Builder.cs (4)
175AsnWriter contentsWriter = new AsnWriter(AsnEncodingRules.BER); 236AsnWriter writer = new AsnWriter(AsnEncodingRules.BER); 318AsnWriter contentsWriter = new AsnWriter(AsnEncodingRules.BER); 319AsnWriter writer = new AsnWriter(AsnEncodingRules.BER);
System\Security\Cryptography\Pkcs\Pkcs12CertBag.cs (5)
45_decoded = CertBagAsn.Decode(EncodedBagValue, AsnEncodingRules.BER); 58_decoded = CertBagAsn.Decode(EncodedBagValue, AsnEncodingRules.BER); 100AsnEncodingRules.BER, 118AsnWriter writer = new AsnWriter(AsnEncodingRules.BER); 125CertBagAsn decoded = CertBagAsn.Decode(bagValue, AsnEncodingRules.BER);
System\Security\Cryptography\Pkcs\Pkcs12Info.cs (3)
56PfxAsn pfx = PfxAsn.Decode(maybeCopy, AsnEncodingRules.BER); 82SignedDataAsn signedData = SignedDataAsn.Decode(pfx.AuthSafe.Content, AsnEncodingRules.BER); 105AsnValueReader authSafeReader = new AsnValueReader(authSafeBytes.Span, AsnEncodingRules.BER);
System\Security\Cryptography\Pkcs\Pkcs12SafeBag.cs (1)
97AsnWriter writer = new AsnWriter(AsnEncodingRules.BER);
System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (6)
231EncryptedDataAsn encryptedData = EncryptedDataAsn.Decode(_encrypted, AsnEncodingRules.BER); 302AsnValueReader reader = new AsnValueReader(serialized.Span, AsnEncodingRules.BER); 408AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 453writer = new AsnWriter(AsnEncodingRules.BER); 460writer = new AsnWriter(AsnEncodingRules.BER); 482AsnWriter valueWriter = new AsnWriter(AsnEncodingRules.DER);
System\Security\Cryptography\Pkcs\Pkcs12SecretBag.cs (3)
28_decoded = SecretBagAsn.Decode(EncodedBagValue, AsnEncodingRules.BER); 54AsnWriter writer = new AsnWriter(AsnEncodingRules.BER); 61SecretBagAsn decoded = SecretBagAsn.Decode(bagValue, AsnEncodingRules.BER);
System\Security\Cryptography\Pkcs\Pkcs8PrivateKeyInfo.cs (2)
74AsnValueReader reader = new AsnValueReader(source.Span, AsnEncodingRules.BER); 269AsnWriter writer = new AsnWriter(AsnEncodingRules.BER);
System\Security\Cryptography\Pkcs\Pkcs9LocalKeyId.cs (1)
28AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);
System\Security\Cryptography\Pkcs\Rfc3161TimestampRequest.cs (5)
87AsnValueReader reader = new AsnValueReader(source.Span, AsnEncodingRules.DER); 328const AsnEncodingRules ruleSet = AsnEncodingRules.DER; 357const AsnEncodingRules RuleSet = AsnEncodingRules.DER;
System\Security\Cryptography\Pkcs\Rfc3161TimestampToken.cs (3)
303AsnValueReader reader = new AsnValueReader(encodedBytes.Span, AsnEncodingRules.BER); 605AsnEncodingRules.BER); 632AsnEncodingRules.BER);
System\Security\Cryptography\Pkcs\Rfc3161TimestampTokenInfo.cs (5)
158AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 258AsnReader reader = new AsnReader(source, AsnEncodingRules.DER); 275Rfc3161TstInfo parsedInfo = Rfc3161TstInfo.Decode(firstElement, AsnEncodingRules.DER); 363tstInfo.Tsa = GeneralNameAsn.Decode(tsaName.Value, AsnEncodingRules.DER); 375AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);
System\Security\Cryptography\Pkcs\SignedCms.cs (9)
128AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 147AsnWriter detachedWriter = new AsnWriter(AsnEncodingRules.DER); 149copy = SignedDataAsn.Decode(detachedWriter.Encode(), AsnEncodingRules.BER); 153AsnWriter attachedWriter = new AsnWriter(AsnEncodingRules.BER); 173_signedData = SignedDataAsn.Decode(_heldData, AsnEncodingRules.BER); 220AsnValueReader reader = new AsnValueReader(encodedMessage, AsnEncodingRules.BER); 260AsnReader reader = new AsnReader(wrappedContent, AsnEncodingRules.BER); 367AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 445AsnEncodingRules.BER,
System\Security\Cryptography\Pkcs\SignerInfo.cs (6)
52AsnEncodingRules.BER); 144SignerInfoAsn counterSigner = SignerInfoAsn.Decode(counterSignerBytes, AsnEncodingRules.BER); 153AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 250SignerInfoAsn parsedData = SignerInfoAsn.Decode(attrValue, AsnEncodingRules.BER); 297AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 601AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);