452 instantiations of Asn1Tag
InMemory.FunctionalTests (6)
src\Servers\Kestrel\shared\test\CertificateAuthority.cs (3)
42private static readonly Asn1Tag s_context0 = new Asn1Tag(TagClass.ContextSpecific, 0); 43private static readonly Asn1Tag s_context1 = new Asn1Tag(TagClass.ContextSpecific, 1); 44private static readonly Asn1Tag s_context2 = new Asn1Tag(TagClass.ContextSpecific, 2);
src\Servers\Kestrel\shared\test\RevocationResponder.cs (3)
332Asn1Tag context0 = new Asn1Tag(TagClass.ContextSpecific, 0); 333Asn1Tag context1 = new Asn1Tag(TagClass.ContextSpecific, 1); 372AsnReader requestExtensionsWrapper = tbsRequest.ReadSequence(new Asn1Tag(TagClass.ContextSpecific, 2));
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (6)
src\Servers\Kestrel\shared\test\CertificateAuthority.cs (3)
42private static readonly Asn1Tag s_context0 = new Asn1Tag(TagClass.ContextSpecific, 0); 43private static readonly Asn1Tag s_context1 = new Asn1Tag(TagClass.ContextSpecific, 1); 44private static readonly Asn1Tag s_context2 = new Asn1Tag(TagClass.ContextSpecific, 2);
src\Servers\Kestrel\shared\test\RevocationResponder.cs (3)
332Asn1Tag context0 = new Asn1Tag(TagClass.ContextSpecific, 0); 333Asn1Tag context1 = new Asn1Tag(TagClass.ContextSpecific, 1); 372AsnReader requestExtensionsWrapper = tbsRequest.ReadSequence(new Asn1Tag(TagClass.ContextSpecific, 2));
System.Formats.Asn1 (20)
System\Formats\Asn1\Asn1Tag.Accelerators.cs (14)
11internal static readonly Asn1Tag EndOfContents = new Asn1Tag(0, (int)UniversalTagNumber.EndOfContents); 16public static readonly Asn1Tag Boolean = new Asn1Tag(0, (int)UniversalTagNumber.Boolean); 21public static readonly Asn1Tag Integer = new Asn1Tag(0, (int)UniversalTagNumber.Integer); 26public static readonly Asn1Tag PrimitiveBitString = new Asn1Tag(0, (int)UniversalTagNumber.BitString); 32new Asn1Tag(ConstructedMask, (int)UniversalTagNumber.BitString); 37public static readonly Asn1Tag PrimitiveOctetString = new Asn1Tag(0, (int)UniversalTagNumber.OctetString); 43new Asn1Tag(ConstructedMask, (int)UniversalTagNumber.OctetString); 48public static readonly Asn1Tag Null = new Asn1Tag(0, (int)UniversalTagNumber.Null); 53public static readonly Asn1Tag ObjectIdentifier = new Asn1Tag(0, (int)UniversalTagNumber.ObjectIdentifier); 58public static readonly Asn1Tag Enumerated = new Asn1Tag(0, (int)UniversalTagNumber.Enumerated); 63public static readonly Asn1Tag Sequence = new Asn1Tag(ConstructedMask, (int)UniversalTagNumber.Sequence); 68public static readonly Asn1Tag SetOf = new Asn1Tag(ConstructedMask, (int)UniversalTagNumber.SetOf); 73public static readonly Asn1Tag UtcTime = new Asn1Tag(0, (int)UniversalTagNumber.UtcTime); 78public static readonly Asn1Tag GeneralizedTime = new Asn1Tag(0, (int)UniversalTagNumber.GeneralizedTime);
System\Formats\Asn1\Asn1Tag.cs (3)
126return new Asn1Tag((byte)(_controlFlags | ConstructedMask), TagValue); 139return new Asn1Tag((byte)(_controlFlags & ~ConstructedMask), TagValue); 233tag = new Asn1Tag(first, (int)tagValue);
System\Formats\Asn1\AsnDecoder.Text.cs (2)
256expectedTag ?? new Asn1Tag(encodingType), 327expectedTag ?? new Asn1Tag(encodingType),
System\Formats\Asn1\AsnWriter.Text.cs (1)
80WriteCharacterStringCore(tag ?? new Asn1Tag(encodingType), encoding, str);
System.Net.Security (16)
System\Net\NegotiateAuthenticationPal.ManagedSpnego.cs (16)
143using (writer.PushSequence(new Asn1Tag(TagClass.Application, 0))) 156using (writer.PushSequence(new Asn1Tag(TagClass.ContextSpecific, (int)NegotiationToken.NegTokenInit))) 167using (writer.PushSequence(new Asn1Tag(TagClass.ContextSpecific, (int)NegTokenInit.MechTypes))) 203using (writer.PushSequence(new Asn1Tag(TagClass.ContextSpecific, (int)NegTokenInit.MechToken))) 226AsnValueReader challengeReader = reader.ReadSequence(new Asn1Tag(TagClass.ContextSpecific, (int)NegotiationToken.NegTokenResp)); 246if (challengeReader.HasData && challengeReader.PeekTag().HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, (int)NegTokenResp.NegState))) 248AsnValueReader valueReader = challengeReader.ReadSequence(new Asn1Tag(TagClass.ContextSpecific, (int)NegTokenResp.NegState)); 253if (challengeReader.HasData && challengeReader.PeekTag().HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, (int)NegTokenResp.SupportedMech))) 255AsnValueReader valueReader = challengeReader.ReadSequence(new Asn1Tag(TagClass.ContextSpecific, (int)NegTokenResp.SupportedMech)); 260if (challengeReader.HasData && challengeReader.PeekTag().HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, (int)NegTokenResp.ResponseToken))) 262AsnValueReader valueReader = challengeReader.ReadSequence(new Asn1Tag(TagClass.ContextSpecific, (int)NegTokenResp.ResponseToken)); 267if (challengeReader.HasData && challengeReader.PeekTag().HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, (int)NegTokenResp.MechListMIC))) 269AsnValueReader valueReader = challengeReader.ReadSequence(new Asn1Tag(TagClass.ContextSpecific, (int)NegTokenResp.MechListMIC)); 336using (writer.PushSequence(new Asn1Tag(TagClass.ContextSpecific, (int)NegotiationToken.NegTokenResp))) 340using (writer.PushSequence(new Asn1Tag(TagClass.ContextSpecific, (int)NegTokenResp.ResponseToken))) 347using (writer.PushSequence(new Asn1Tag(TagClass.ContextSpecific, (int)NegTokenResp.MechListMIC)))
System.Security.Cryptography (181)
src\libraries\Common\src\System\Security\Cryptography\Asn1\DirectoryStringAsn.xml.cs (11)
34ensureUniqueTag(new Asn1Tag(UniversalTagNumber.T61String), "TeletexString"); 35ensureUniqueTag(new Asn1Tag(UniversalTagNumber.PrintableString), "PrintableString"); 36ensureUniqueTag(new Asn1Tag((UniversalTagNumber)28), "UniversalString"); 37ensureUniqueTag(new Asn1Tag(UniversalTagNumber.UTF8String), "Utf8String"); 38ensureUniqueTag(new Asn1Tag(UniversalTagNumber.BMPString), "BmpString"); 72!validateTag.HasSameClassAndValue(new Asn1Tag((UniversalTagNumber)28))) 149if (tag.HasSameClassAndValue(new Asn1Tag(UniversalTagNumber.T61String))) 153else if (tag.HasSameClassAndValue(new Asn1Tag(UniversalTagNumber.PrintableString))) 157else if (tag.HasSameClassAndValue(new Asn1Tag((UniversalTagNumber)28))) 162else if (tag.HasSameClassAndValue(new Asn1Tag(UniversalTagNumber.UTF8String))) 166else if (tag.HasSameClassAndValue(new Asn1Tag(UniversalTagNumber.BMPString)))
src\libraries\Common\src\System\Security\Cryptography\Asn1\ECPrivateKey.xml.cs (8)
33writer.PushSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 35writer.PopSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 41writer.PushSequence(new Asn1Tag(TagClass.ContextSpecific, 1)); 43writer.PopSequence(new Asn1Tag(TagClass.ContextSpecific, 1)); 113if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 0))) 115explicitReader = sequenceReader.ReadSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 124if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 1))) 126explicitReader = sequenceReader.ReadSequence(new Asn1Tag(TagClass.ContextSpecific, 1));
src\libraries\Common\src\System\Security\Cryptography\Asn1\EdiPartyNameAsn.xml.cs (7)
29writer.PushSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 31writer.PopSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 34writer.PushSequence(new Asn1Tag(TagClass.ContextSpecific, 1)); 36writer.PopSequence(new Asn1Tag(TagClass.ContextSpecific, 1)); 85if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 0))) 87explicitReader = sequenceReader.ReadSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 96explicitReader = sequenceReader.ReadSequence(new Asn1Tag(TagClass.ContextSpecific, 1));
src\libraries\Common\src\System\Security\Cryptography\Asn1\GeneralNameAsn.xml.cs (37)
38ensureUniqueTag(new Asn1Tag(TagClass.ContextSpecific, 0), "OtherName"); 39ensureUniqueTag(new Asn1Tag(TagClass.ContextSpecific, 1), "Rfc822Name"); 40ensureUniqueTag(new Asn1Tag(TagClass.ContextSpecific, 2), "DnsName"); 41ensureUniqueTag(new Asn1Tag(TagClass.ContextSpecific, 3), "X400Address"); 42ensureUniqueTag(new Asn1Tag(TagClass.ContextSpecific, 4), "DirectoryName"); 43ensureUniqueTag(new Asn1Tag(TagClass.ContextSpecific, 5), "EdiPartyName"); 44ensureUniqueTag(new Asn1Tag(TagClass.ContextSpecific, 6), "Uri"); 45ensureUniqueTag(new Asn1Tag(TagClass.ContextSpecific, 7), "IPAddress"); 46ensureUniqueTag(new Asn1Tag(TagClass.ContextSpecific, 8), "RegisteredId"); 59OtherName.Value.Encode(writer, new Asn1Tag(TagClass.ContextSpecific, 0)); 68writer.WriteCharacterString(UniversalTagNumber.IA5String, Rfc822Name, new Asn1Tag(TagClass.ContextSpecific, 1)); 77writer.WriteCharacterString(UniversalTagNumber.IA5String, DnsName, new Asn1Tag(TagClass.ContextSpecific, 2)); 89!validateTag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 3))) 111writer.PushSequence(new Asn1Tag(TagClass.ContextSpecific, 4)); 120writer.PopSequence(new Asn1Tag(TagClass.ContextSpecific, 4)); 129EdiPartyName.Value.Encode(writer, new Asn1Tag(TagClass.ContextSpecific, 5)); 138writer.WriteCharacterString(UniversalTagNumber.IA5String, Uri, new Asn1Tag(TagClass.ContextSpecific, 6)); 147writer.WriteOctetString(IPAddress.Value.Span, new Asn1Tag(TagClass.ContextSpecific, 7)); 158writer.WriteObjectIdentifier(RegisteredId, new Asn1Tag(TagClass.ContextSpecific, 8)); 210if (tag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 0))) 213System.Security.Cryptography.Asn1.OtherNameAsn.Decode(ref reader, new Asn1Tag(TagClass.ContextSpecific, 0), rebind, out tmpOtherName); 217else if (tag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 1))) 219decoded.Rfc822Name = reader.ReadCharacterString(UniversalTagNumber.IA5String, new Asn1Tag(TagClass.ContextSpecific, 1)); 221else if (tag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 2))) 223decoded.DnsName = reader.ReadCharacterString(UniversalTagNumber.IA5String, new Asn1Tag(TagClass.ContextSpecific, 2)); 225else if (tag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 3))) 230else if (tag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 4))) 232explicitReader = reader.ReadSequence(new Asn1Tag(TagClass.ContextSpecific, 4)); 237else if (tag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 5))) 240System.Security.Cryptography.Asn1.EdiPartyNameAsn.Decode(ref reader, new Asn1Tag(TagClass.ContextSpecific, 5), rebind, out tmpEdiPartyName); 244else if (tag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 6))) 246decoded.Uri = reader.ReadCharacterString(UniversalTagNumber.IA5String, new Asn1Tag(TagClass.ContextSpecific, 6)); 248else if (tag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 7))) 251if (reader.TryReadPrimitiveOctetString(out tmpSpan, new Asn1Tag(TagClass.ContextSpecific, 7))) 257decoded.IPAddress = reader.ReadOctetString(new Asn1Tag(TagClass.ContextSpecific, 7)); 261else if (tag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 8))) 263decoded.RegisteredId = reader.ReadObjectIdentifier(new Asn1Tag(TagClass.ContextSpecific, 8));
src\libraries\Common\src\System\Security\Cryptography\Asn1\OtherNameAsn.xml.cs (3)
34writer.PushSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 43writer.PopSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 96explicitReader = sequenceReader.ReadSequence(new Asn1Tag(TagClass.ContextSpecific, 0));
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\CertBagAsn.xml.cs (3)
34writer.PushSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 43writer.PopSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 96explicitReader = sequenceReader.ReadSequence(new Asn1Tag(TagClass.ContextSpecific, 0));
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\SafeBagAsn.xml.cs (3)
36writer.PushSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 45writer.PopSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 112explicitReader = sequenceReader.ReadSequence(new Asn1Tag(TagClass.ContextSpecific, 0));
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\SecretBagAsn.xml.cs (3)
34writer.PushSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 43writer.PopSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 96explicitReader = sequenceReader.ReadSequence(new Asn1Tag(TagClass.ContextSpecific, 0));
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\ContentInfoAsn.xml.cs (3)
34writer.PushSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 43writer.PopSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 96explicitReader = sequenceReader.ReadSequence(new Asn1Tag(TagClass.ContextSpecific, 0));
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\EncryptedContentInfoAsn.xml.cs (4)
39writer.WriteOctetString(EncryptedContent.Value.Span, new Asn1Tag(TagClass.ContextSpecific, 0)); 94if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 0))) 97if (sequenceReader.TryReadPrimitiveOctetString(out tmpSpan, new Asn1Tag(TagClass.ContextSpecific, 0))) 103decoded.EncryptedContent = sequenceReader.ReadOctetString(new Asn1Tag(TagClass.ContextSpecific, 0));
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\EncryptedDataAsn.xml.cs (4)
34writer.PushSetOf(new Asn1Tag(TagClass.ContextSpecific, 1)); 39writer.PopSetOf(new Asn1Tag(TagClass.ContextSpecific, 1)); 98if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 1))) 103collectionReader = sequenceReader.ReadSetOf(new Asn1Tag(TagClass.ContextSpecific, 1));
src\libraries\Common\src\System\Security\Cryptography\Asn1\PrivateKeyInfoAsn.xml.cs (4)
36writer.PushSetOf(new Asn1Tag(TagClass.ContextSpecific, 0)); 41writer.PopSetOf(new Asn1Tag(TagClass.ContextSpecific, 0)); 113if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 0))) 118collectionReader = sequenceReader.ReadSetOf(new Asn1Tag(TagClass.ContextSpecific, 0));
src\libraries\Common\src\System\Security\Cryptography\Asn1\PssParamsAsn.xml.cs (16)
79writer.PushSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 81writer.PopSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 93writer.PushSequence(new Asn1Tag(TagClass.ContextSpecific, 1)); 95writer.PopSequence(new Asn1Tag(TagClass.ContextSpecific, 1)); 108writer.PushSequence(new Asn1Tag(TagClass.ContextSpecific, 2)); 110writer.PopSequence(new Asn1Tag(TagClass.ContextSpecific, 2)); 123writer.PushSequence(new Asn1Tag(TagClass.ContextSpecific, 3)); 125writer.PopSequence(new Asn1Tag(TagClass.ContextSpecific, 3)); 178if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 0))) 180explicitReader = sequenceReader.ReadSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 191if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 1))) 193explicitReader = sequenceReader.ReadSequence(new Asn1Tag(TagClass.ContextSpecific, 1)); 204if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 2))) 206explicitReader = sequenceReader.ReadSequence(new Asn1Tag(TagClass.ContextSpecific, 2)); 227if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 3))) 229explicitReader = sequenceReader.ReadSequence(new Asn1Tag(TagClass.ContextSpecific, 3));
src\libraries\Common\src\System\Security\Cryptography\EccKeyFormatHelper.cs (3)
517Asn1Tag tag = new Asn1Tag(TagClass.ContextSpecific, 0); 842Asn1Tag explicit0 = new Asn1Tag(TagClass.ContextSpecific, 0, isConstructed: true); 854Asn1Tag explicit1 = new Asn1Tag(TagClass.ContextSpecific, 1, isConstructed: true);
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Builder.cs (2)
252Asn1Tag contextSpecific0 = new Asn1Tag(TagClass.ContextSpecific, 0); 352using (writer.PushSequence(new Asn1Tag(TagClass.ContextSpecific, 0)))
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeBag.cs (1)
79Asn1Tag contextSpecific0 = new Asn1Tag(TagClass.ContextSpecific, 0);
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (1)
436writer.WriteOctetString(encryptedSpan, new Asn1Tag(TagClass.ContextSpecific, 0));
src\libraries\Common\src\System\Security\Cryptography\X509Certificates\X509CertificateLoader.Pkcs12.cs (1)
973Asn1Tag contextSpecific0 = new Asn1Tag(TagClass.ContextSpecific, 0);
System\Security\Cryptography\X509Certificates\Asn1\CertificationRequestInfoAsn.xml.cs (5)
33!validateTag.HasSameClassAndValue(new Asn1Tag((UniversalTagNumber)16))) 49writer.PushSetOf(new Asn1Tag(TagClass.ContextSpecific, 0)); 54writer.PopSetOf(new Asn1Tag(TagClass.ContextSpecific, 0)); 107if (!sequenceReader.PeekTag().HasSameClassAndValue(new Asn1Tag((UniversalTagNumber)16))) 118collectionReader = sequenceReader.ReadSetOf(new Asn1Tag(TagClass.ContextSpecific, 0));
System\Security\Cryptography\X509Certificates\Asn1\DistributionPointAsn.xml.cs (11)
31writer.PushSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 33writer.PopSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 39writer.WriteNamedBitList(Reasons.Value, new Asn1Tag(TagClass.ContextSpecific, 1)); 46writer.PushSequence(new Asn1Tag(TagClass.ContextSpecific, 2)); 51writer.PopSequence(new Asn1Tag(TagClass.ContextSpecific, 2)); 104if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 0))) 106explicitReader = sequenceReader.ReadSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 115if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 1))) 117decoded.Reasons = sequenceReader.ReadNamedBitListValue<System.Security.Cryptography.X509Certificates.Asn1.ReasonFlagsAsn>(new Asn1Tag(TagClass.ContextSpecific, 1)); 121if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 2))) 126collectionReader = sequenceReader.ReadSequence(new Asn1Tag(TagClass.ContextSpecific, 2));
System\Security\Cryptography\X509Certificates\Asn1\DistributionPointNameAsn.xml.cs (8)
32ensureUniqueTag(new Asn1Tag(TagClass.ContextSpecific, 0), "FullName"); 33ensureUniqueTag(new Asn1Tag(TagClass.ContextSpecific, 1), "NameRelativeToCRLIssuer"); 47writer.PushSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 52writer.PopSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 65!validateTag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 1))) 125if (tag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 0))) 130collectionReader = reader.ReadSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 144else if (tag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 1)))
System\Security\Cryptography\X509Certificates\Asn1\PolicyConstraintsAsn.xml.cs (6)
29writer.WriteInteger(RequireExplicitPolicyDepth.Value, new Asn1Tag(TagClass.ContextSpecific, 0)); 35writer.WriteInteger(InhibitMappingDepth.Value, new Asn1Tag(TagClass.ContextSpecific, 1)); 85if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 0))) 88if (sequenceReader.TryReadInt32(out int tmpRequireExplicitPolicyDepth, new Asn1Tag(TagClass.ContextSpecific, 0))) 100if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 1))) 103if (sequenceReader.TryReadInt32(out int tmpInhibitMappingDepth, new Asn1Tag(TagClass.ContextSpecific, 1)))
System\Security\Cryptography\X509Certificates\Asn1\TbsCertificateAsn.xml.cs (20)
63writer.PushSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 65writer.PopSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 74!validateTag.HasSameClassAndValue(new Asn1Tag((UniversalTagNumber)16))) 92!validateTag.HasSameClassAndValue(new Asn1Tag((UniversalTagNumber)16))) 110writer.WriteBitString(IssuerUniqueId.Value.Span, 0, new Asn1Tag(TagClass.ContextSpecific, 1)); 116writer.WriteBitString(SubjectUniqueId.Value.Span, 0, new Asn1Tag(TagClass.ContextSpecific, 2)); 122writer.PushSequence(new Asn1Tag(TagClass.ContextSpecific, 3)); 131writer.PopSequence(new Asn1Tag(TagClass.ContextSpecific, 3)); 187if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 0))) 189explicitReader = sequenceReader.ReadSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 212if (!sequenceReader.PeekTag().HasSameClassAndValue(new Asn1Tag((UniversalTagNumber)16))) 220if (!sequenceReader.PeekTag().HasSameClassAndValue(new Asn1Tag((UniversalTagNumber)16))) 229if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 1))) 232if (sequenceReader.TryReadPrimitiveBitString(out _, out tmpSpan, new Asn1Tag(TagClass.ContextSpecific, 1))) 238decoded.IssuerUniqueId = sequenceReader.ReadBitString(out _, new Asn1Tag(TagClass.ContextSpecific, 1)); 244if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 2))) 247if (sequenceReader.TryReadPrimitiveBitString(out _, out tmpSpan, new Asn1Tag(TagClass.ContextSpecific, 2))) 253decoded.SubjectUniqueId = sequenceReader.ReadBitString(out _, new Asn1Tag(TagClass.ContextSpecific, 2)); 259if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 3))) 261explicitReader = sequenceReader.ReadSequence(new Asn1Tag(TagClass.ContextSpecific, 3));
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.Build.cs (1)
390using (writer.PushSequence(new Asn1Tag(TagClass.ContextSpecific, 0)))
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.CdpExtension.cs (3)
81using (writer.PushSequence(new Asn1Tag(TagClass.ContextSpecific, 0))) 84using (writer.PushSequence(new Asn1Tag(TagClass.ContextSpecific, 0))) 92new Asn1Tag(TagClass.ContextSpecific, 6));
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.Load.cs (1)
142AsnValueReader crlExtensionsExplicit = tbsCertList.ReadSequence(new Asn1Tag(TagClass.ContextSpecific, 0));
System\Security\Cryptography\X509Certificates\X509AuthorityInformationAccessExtension.cs (1)
296new Asn1Tag(TagClass.ContextSpecific, 6));
System\Security\Cryptography\X509Certificates\X509AuthorityKeyIdentifierExtension.cs (11)
245writer.WriteOctetString(subjectKeyIdentifier, new Asn1Tag(TagClass.ContextSpecific, 0)); 315using (writer.PushSequence(new Asn1Tag(TagClass.ContextSpecific, 1))) 316using (writer.PushSequence(new Asn1Tag(TagClass.ContextSpecific, 4))) 323writer.WriteInteger(serialNumber, new Asn1Tag(TagClass.ContextSpecific, 2)); 414writer.WriteOctetString(keyIdentifier, new Asn1Tag(TagClass.ContextSpecific, 0)); 416using (writer.PushSequence(new Asn1Tag(TagClass.ContextSpecific, 1))) 417using (writer.PushSequence(new Asn1Tag(TagClass.ContextSpecific, 4))) 424writer.WriteInteger(serialNumber, new Asn1Tag(TagClass.ContextSpecific, 2)); 528if (nextTag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 0))) 538if (nextTag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 1))) 575if (nextTag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 2)))
System.Security.Cryptography.Pkcs (223)
src\libraries\Common\src\System\Security\Cryptography\Asn1\DirectoryStringAsn.xml.cs (11)
34ensureUniqueTag(new Asn1Tag(UniversalTagNumber.T61String), "TeletexString"); 35ensureUniqueTag(new Asn1Tag(UniversalTagNumber.PrintableString), "PrintableString"); 36ensureUniqueTag(new Asn1Tag((UniversalTagNumber)28), "UniversalString"); 37ensureUniqueTag(new Asn1Tag(UniversalTagNumber.UTF8String), "Utf8String"); 38ensureUniqueTag(new Asn1Tag(UniversalTagNumber.BMPString), "BmpString"); 72!validateTag.HasSameClassAndValue(new Asn1Tag((UniversalTagNumber)28))) 149if (tag.HasSameClassAndValue(new Asn1Tag(UniversalTagNumber.T61String))) 153else if (tag.HasSameClassAndValue(new Asn1Tag(UniversalTagNumber.PrintableString))) 157else if (tag.HasSameClassAndValue(new Asn1Tag((UniversalTagNumber)28))) 162else if (tag.HasSameClassAndValue(new Asn1Tag(UniversalTagNumber.UTF8String))) 166else if (tag.HasSameClassAndValue(new Asn1Tag(UniversalTagNumber.BMPString)))
src\libraries\Common\src\System\Security\Cryptography\Asn1\EdiPartyNameAsn.xml.cs (7)
29writer.PushSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 31writer.PopSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 34writer.PushSequence(new Asn1Tag(TagClass.ContextSpecific, 1)); 36writer.PopSequence(new Asn1Tag(TagClass.ContextSpecific, 1)); 85if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 0))) 87explicitReader = sequenceReader.ReadSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 96explicitReader = sequenceReader.ReadSequence(new Asn1Tag(TagClass.ContextSpecific, 1));
src\libraries\Common\src\System\Security\Cryptography\Asn1\GeneralNameAsn.xml.cs (37)
38ensureUniqueTag(new Asn1Tag(TagClass.ContextSpecific, 0), "OtherName"); 39ensureUniqueTag(new Asn1Tag(TagClass.ContextSpecific, 1), "Rfc822Name"); 40ensureUniqueTag(new Asn1Tag(TagClass.ContextSpecific, 2), "DnsName"); 41ensureUniqueTag(new Asn1Tag(TagClass.ContextSpecific, 3), "X400Address"); 42ensureUniqueTag(new Asn1Tag(TagClass.ContextSpecific, 4), "DirectoryName"); 43ensureUniqueTag(new Asn1Tag(TagClass.ContextSpecific, 5), "EdiPartyName"); 44ensureUniqueTag(new Asn1Tag(TagClass.ContextSpecific, 6), "Uri"); 45ensureUniqueTag(new Asn1Tag(TagClass.ContextSpecific, 7), "IPAddress"); 46ensureUniqueTag(new Asn1Tag(TagClass.ContextSpecific, 8), "RegisteredId"); 59OtherName.Value.Encode(writer, new Asn1Tag(TagClass.ContextSpecific, 0)); 68writer.WriteCharacterString(UniversalTagNumber.IA5String, Rfc822Name, new Asn1Tag(TagClass.ContextSpecific, 1)); 77writer.WriteCharacterString(UniversalTagNumber.IA5String, DnsName, new Asn1Tag(TagClass.ContextSpecific, 2)); 89!validateTag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 3))) 111writer.PushSequence(new Asn1Tag(TagClass.ContextSpecific, 4)); 120writer.PopSequence(new Asn1Tag(TagClass.ContextSpecific, 4)); 129EdiPartyName.Value.Encode(writer, new Asn1Tag(TagClass.ContextSpecific, 5)); 138writer.WriteCharacterString(UniversalTagNumber.IA5String, Uri, new Asn1Tag(TagClass.ContextSpecific, 6)); 147writer.WriteOctetString(IPAddress.Value.Span, new Asn1Tag(TagClass.ContextSpecific, 7)); 158writer.WriteObjectIdentifier(RegisteredId, new Asn1Tag(TagClass.ContextSpecific, 8)); 210if (tag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 0))) 213System.Security.Cryptography.Asn1.OtherNameAsn.Decode(ref reader, new Asn1Tag(TagClass.ContextSpecific, 0), rebind, out tmpOtherName); 217else if (tag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 1))) 219decoded.Rfc822Name = reader.ReadCharacterString(UniversalTagNumber.IA5String, new Asn1Tag(TagClass.ContextSpecific, 1)); 221else if (tag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 2))) 223decoded.DnsName = reader.ReadCharacterString(UniversalTagNumber.IA5String, new Asn1Tag(TagClass.ContextSpecific, 2)); 225else if (tag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 3))) 230else if (tag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 4))) 232explicitReader = reader.ReadSequence(new Asn1Tag(TagClass.ContextSpecific, 4)); 237else if (tag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 5))) 240System.Security.Cryptography.Asn1.EdiPartyNameAsn.Decode(ref reader, new Asn1Tag(TagClass.ContextSpecific, 5), rebind, out tmpEdiPartyName); 244else if (tag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 6))) 246decoded.Uri = reader.ReadCharacterString(UniversalTagNumber.IA5String, new Asn1Tag(TagClass.ContextSpecific, 6)); 248else if (tag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 7))) 251if (reader.TryReadPrimitiveOctetString(out tmpSpan, new Asn1Tag(TagClass.ContextSpecific, 7))) 257decoded.IPAddress = reader.ReadOctetString(new Asn1Tag(TagClass.ContextSpecific, 7)); 261else if (tag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 8))) 263decoded.RegisteredId = reader.ReadObjectIdentifier(new Asn1Tag(TagClass.ContextSpecific, 8));
src\libraries\Common\src\System\Security\Cryptography\Asn1\OaepParamsAsn.xml.cs (12)
62writer.PushSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 64writer.PopSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 76writer.PushSequence(new Asn1Tag(TagClass.ContextSpecific, 1)); 78writer.PopSequence(new Asn1Tag(TagClass.ContextSpecific, 1)); 90writer.PushSequence(new Asn1Tag(TagClass.ContextSpecific, 2)); 92writer.PopSequence(new Asn1Tag(TagClass.ContextSpecific, 2)); 145if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 0))) 147explicitReader = sequenceReader.ReadSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 158if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 1))) 160explicitReader = sequenceReader.ReadSequence(new Asn1Tag(TagClass.ContextSpecific, 1)); 171if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 2))) 173explicitReader = sequenceReader.ReadSequence(new Asn1Tag(TagClass.ContextSpecific, 2));
src\libraries\Common\src\System\Security\Cryptography\Asn1\OtherNameAsn.xml.cs (3)
34writer.PushSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 43writer.PopSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 96explicitReader = sequenceReader.ReadSequence(new Asn1Tag(TagClass.ContextSpecific, 0));
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\CertBagAsn.xml.cs (3)
34writer.PushSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 43writer.PopSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 96explicitReader = sequenceReader.ReadSequence(new Asn1Tag(TagClass.ContextSpecific, 0));
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\SafeBagAsn.xml.cs (3)
36writer.PushSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 45writer.PopSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 112explicitReader = sequenceReader.ReadSequence(new Asn1Tag(TagClass.ContextSpecific, 0));
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\SecretBagAsn.xml.cs (3)
34writer.PushSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 43writer.PopSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 96explicitReader = sequenceReader.ReadSequence(new Asn1Tag(TagClass.ContextSpecific, 0));
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\ContentInfoAsn.xml.cs (3)
34writer.PushSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 43writer.PopSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 96explicitReader = sequenceReader.ReadSequence(new Asn1Tag(TagClass.ContextSpecific, 0));
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\EncryptedContentInfoAsn.xml.cs (4)
39writer.WriteOctetString(EncryptedContent.Value.Span, new Asn1Tag(TagClass.ContextSpecific, 0)); 94if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 0))) 97if (sequenceReader.TryReadPrimitiveOctetString(out tmpSpan, new Asn1Tag(TagClass.ContextSpecific, 0))) 103decoded.EncryptedContent = sequenceReader.ReadOctetString(new Asn1Tag(TagClass.ContextSpecific, 0));
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\EncryptedDataAsn.xml.cs (4)
34writer.PushSetOf(new Asn1Tag(TagClass.ContextSpecific, 1)); 39writer.PopSetOf(new Asn1Tag(TagClass.ContextSpecific, 1)); 98if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 1))) 103collectionReader = sequenceReader.ReadSetOf(new Asn1Tag(TagClass.ContextSpecific, 1));
src\libraries\Common\src\System\Security\Cryptography\Asn1\PrivateKeyInfoAsn.xml.cs (4)
36writer.PushSetOf(new Asn1Tag(TagClass.ContextSpecific, 0)); 41writer.PopSetOf(new Asn1Tag(TagClass.ContextSpecific, 0)); 113if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 0))) 118collectionReader = sequenceReader.ReadSetOf(new Asn1Tag(TagClass.ContextSpecific, 0));
src\libraries\Common\src\System\Security\Cryptography\Asn1\PssParamsAsn.xml.cs (16)
79writer.PushSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 81writer.PopSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 93writer.PushSequence(new Asn1Tag(TagClass.ContextSpecific, 1)); 95writer.PopSequence(new Asn1Tag(TagClass.ContextSpecific, 1)); 108writer.PushSequence(new Asn1Tag(TagClass.ContextSpecific, 2)); 110writer.PopSequence(new Asn1Tag(TagClass.ContextSpecific, 2)); 123writer.PushSequence(new Asn1Tag(TagClass.ContextSpecific, 3)); 125writer.PopSequence(new Asn1Tag(TagClass.ContextSpecific, 3)); 178if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 0))) 180explicitReader = sequenceReader.ReadSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 191if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 1))) 193explicitReader = sequenceReader.ReadSequence(new Asn1Tag(TagClass.ContextSpecific, 1)); 204if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 2))) 206explicitReader = sequenceReader.ReadSequence(new Asn1Tag(TagClass.ContextSpecific, 2)); 227if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 3))) 229explicitReader = sequenceReader.ReadSequence(new Asn1Tag(TagClass.ContextSpecific, 3));
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Builder.cs (2)
252Asn1Tag contextSpecific0 = new Asn1Tag(TagClass.ContextSpecific, 0); 352using (writer.PushSequence(new Asn1Tag(TagClass.ContextSpecific, 0)))
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeBag.cs (1)
79Asn1Tag contextSpecific0 = new Asn1Tag(TagClass.ContextSpecific, 0);
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (1)
436writer.WriteOctetString(encryptedSpan, new Asn1Tag(TagClass.ContextSpecific, 0));
System\Security\Cryptography\Pkcs\Asn1\CertificateChoiceAsn.xml.cs (16)
34ensureUniqueTag(new Asn1Tag((UniversalTagNumber)16), "Certificate"); 35ensureUniqueTag(new Asn1Tag(TagClass.ContextSpecific, 0), "ExtendedCertificate"); 36ensureUniqueTag(new Asn1Tag(TagClass.ContextSpecific, 1), "AttributeCertificateV1"); 37ensureUniqueTag(new Asn1Tag(TagClass.ContextSpecific, 2), "AttributeCertificateV2"); 38ensureUniqueTag(new Asn1Tag(TagClass.ContextSpecific, 3), "OtherCertificateFormat"); 54!validateTag.HasSameClassAndValue(new Asn1Tag((UniversalTagNumber)16))) 79!validateTag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 0))) 104!validateTag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 1))) 129!validateTag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 2))) 151OtherCertificateFormat.Value.Encode(writer, new Asn1Tag(TagClass.ContextSpecific, 3)); 197if (tag.HasSameClassAndValue(new Asn1Tag((UniversalTagNumber)16))) 202else if (tag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 0))) 207else if (tag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 1))) 212else if (tag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 2))) 217else if (tag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 3))) 220System.Security.Cryptography.Pkcs.Asn1.OtherCertificateFormat.Decode(ref reader, new Asn1Tag(TagClass.ContextSpecific, 3), rebind, out tmpOtherCertificateFormat);
System\Security\Cryptography\Pkcs\Asn1\EncapsulatedContentInfoAsn.xml.cs (4)
37writer.PushSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 46writer.PopSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 101if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 0))) 103explicitReader = sequenceReader.ReadSequence(new Asn1Tag(TagClass.ContextSpecific, 0));
System\Security\Cryptography\Pkcs\Asn1\EnvelopedDataAsn.xml.cs (7)
34OriginatorInfo.Value.Encode(writer, new Asn1Tag(TagClass.ContextSpecific, 0)); 50writer.PushSetOf(new Asn1Tag(TagClass.ContextSpecific, 1)); 55writer.PopSetOf(new Asn1Tag(TagClass.ContextSpecific, 1)); 113if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 0))) 116System.Security.Cryptography.Pkcs.Asn1.OriginatorInfoAsn.Decode(ref sequenceReader, new Asn1Tag(TagClass.ContextSpecific, 0), rebind, out tmpOriginatorInfo); 139if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 1))) 144collectionReader = sequenceReader.ReadSetOf(new Asn1Tag(TagClass.ContextSpecific, 1));
System\Security\Cryptography\Pkcs\Asn1\IssuerAndSerialNumberAsn.xml.cs (2)
29!validateTag.HasSameClassAndValue(new Asn1Tag((UniversalTagNumber)16))) 93if (!sequenceReader.PeekTag().HasSameClassAndValue(new Asn1Tag((UniversalTagNumber)16)))
System\Security\Cryptography\Pkcs\Asn1\KeyAgreeRecipientIdentifierAsn.xml.cs (4)
32ensureUniqueTag(new Asn1Tag(TagClass.ContextSpecific, 0), "RKeyId"); 54RKeyId.Value.Encode(writer, new Asn1Tag(TagClass.ContextSpecific, 0)); 104else if (tag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 0))) 107System.Security.Cryptography.Pkcs.Asn1.RecipientKeyIdentifier.Decode(ref reader, new Asn1Tag(TagClass.ContextSpecific, 0), rebind, out tmpRKeyId);
System\Security\Cryptography\Pkcs\Asn1\KeyAgreeRecipientInfoAsn.xml.cs (7)
31writer.PushSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 33writer.PopSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 37writer.PushSequence(new Asn1Tag(TagClass.ContextSpecific, 1)); 39writer.PopSequence(new Asn1Tag(TagClass.ContextSpecific, 1)); 109explicitReader = sequenceReader.ReadSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 114if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 1))) 116explicitReader = sequenceReader.ReadSequence(new Asn1Tag(TagClass.ContextSpecific, 1));
System\Security\Cryptography\Pkcs\Asn1\OriginatorIdentifierOrKeyAsn.xml.cs (9)
33ensureUniqueTag(new Asn1Tag(TagClass.ContextSpecific, 0), "SubjectKeyIdentifier"); 34ensureUniqueTag(new Asn1Tag(TagClass.ContextSpecific, 1), "OriginatorKey"); 56writer.WriteOctetString(SubjectKeyIdentifier.Value.Span, new Asn1Tag(TagClass.ContextSpecific, 0)); 65OriginatorKey.Value.Encode(writer, new Asn1Tag(TagClass.ContextSpecific, 1)); 118else if (tag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 0))) 121if (reader.TryReadPrimitiveOctetString(out tmpSpan, new Asn1Tag(TagClass.ContextSpecific, 0))) 127decoded.SubjectKeyIdentifier = reader.ReadOctetString(new Asn1Tag(TagClass.ContextSpecific, 0)); 131else if (tag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 1))) 134System.Security.Cryptography.Pkcs.Asn1.OriginatorPublicKeyAsn.Decode(ref reader, new Asn1Tag(TagClass.ContextSpecific, 1), rebind, out tmpOriginatorKey);
System\Security\Cryptography\Pkcs\Asn1\OriginatorInfoAsn.xml.cs (8)
31writer.PushSetOf(new Asn1Tag(TagClass.ContextSpecific, 0)); 36writer.PopSetOf(new Asn1Tag(TagClass.ContextSpecific, 0)); 44writer.PushSetOf(new Asn1Tag(TagClass.ContextSpecific, 1)); 56writer.PopSetOf(new Asn1Tag(TagClass.ContextSpecific, 1)); 111if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 0))) 116collectionReader = sequenceReader.ReadSetOf(new Asn1Tag(TagClass.ContextSpecific, 0)); 132if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 1))) 137collectionReader = sequenceReader.ReadSetOf(new Asn1Tag(TagClass.ContextSpecific, 1));
System\Security\Cryptography\Pkcs\Asn1\PkiStatusInfo.xml.cs (1)
34!validateTag.HasSameClassAndValue(new Asn1Tag((UniversalTagNumber)16)))
System\Security\Cryptography\Pkcs\Asn1\RecipientIdentifierAsn.xml.cs (5)
32ensureUniqueTag(new Asn1Tag(TagClass.ContextSpecific, 0), "SubjectKeyIdentifier"); 54writer.WriteOctetString(SubjectKeyIdentifier.Value.Span, new Asn1Tag(TagClass.ContextSpecific, 0)); 107else if (tag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 0))) 110if (reader.TryReadPrimitiveOctetString(out tmpSpan, new Asn1Tag(TagClass.ContextSpecific, 0))) 116decoded.SubjectKeyIdentifier = reader.ReadOctetString(new Asn1Tag(TagClass.ContextSpecific, 0));
System\Security\Cryptography\Pkcs\Asn1\RecipientInfoAsn.xml.cs (4)
32ensureUniqueTag(new Asn1Tag(TagClass.ContextSpecific, 1), "Kari"); 54Kari.Value.Encode(writer, new Asn1Tag(TagClass.ContextSpecific, 1)); 104else if (tag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 1))) 107System.Security.Cryptography.Pkcs.Asn1.KeyAgreeRecipientInfoAsn.Decode(ref reader, new Asn1Tag(TagClass.ContextSpecific, 1), rebind, out tmpKari);
System\Security\Cryptography\Pkcs\Asn1\Rfc3161Accuracy.xml.cs (6)
36writer.WriteInteger(Millis.Value, new Asn1Tag(TagClass.ContextSpecific, 0)); 42writer.WriteInteger(Micros.Value, new Asn1Tag(TagClass.ContextSpecific, 1)); 107if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 0))) 110if (sequenceReader.TryReadInt32(out int tmpMillis, new Asn1Tag(TagClass.ContextSpecific, 0))) 122if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 1))) 125if (sequenceReader.TryReadInt32(out int tmpMicros, new Asn1Tag(TagClass.ContextSpecific, 1)))
System\Security\Cryptography\Pkcs\Asn1\Rfc3161TimeStampReq.xml.cs (4)
83writer.PushSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 88writer.PopSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 175if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 0))) 180collectionReader = sequenceReader.ReadSequence(new Asn1Tag(TagClass.ContextSpecific, 0));
System\Security\Cryptography\Pkcs\Asn1\Rfc3161TstInfo.xml.cs (8)
89writer.PushSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 91writer.PopSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 98writer.PushSequence(new Asn1Tag(TagClass.ContextSpecific, 1)); 103writer.PopSequence(new Asn1Tag(TagClass.ContextSpecific, 1)); 198if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 0))) 200explicitReader = sequenceReader.ReadSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 209if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 1))) 214collectionReader = sequenceReader.ReadSequence(new Asn1Tag(TagClass.ContextSpecific, 1));
System\Security\Cryptography\Pkcs\Asn1\SignedAttributesSet.xml.cs (5)
31ensureUniqueTag(new Asn1Tag(TagClass.ContextSpecific, 0), "SignedAttributes"); 45writer.PushSetOf(new Asn1Tag(TagClass.ContextSpecific, 0)); 50writer.PopSetOf(new Asn1Tag(TagClass.ContextSpecific, 0)); 95if (tag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 0))) 100collectionReader = reader.ReadSetOf(new Asn1Tag(TagClass.ContextSpecific, 0));
System\Security\Cryptography\Pkcs\Asn1\SignedDataAsn.xml.cs (8)
45writer.PushSetOf(new Asn1Tag(TagClass.ContextSpecific, 0)); 50writer.PopSetOf(new Asn1Tag(TagClass.ContextSpecific, 0)); 58writer.PushSetOf(new Asn1Tag(TagClass.ContextSpecific, 1)); 70writer.PopSetOf(new Asn1Tag(TagClass.ContextSpecific, 1)); 156if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 0))) 161collectionReader = sequenceReader.ReadSetOf(new Asn1Tag(TagClass.ContextSpecific, 0)); 177if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 1))) 182collectionReader = sequenceReader.ReadSetOf(new Asn1Tag(TagClass.ContextSpecific, 1));
System\Security\Cryptography\Pkcs\Asn1\SignerIdentifierAsn.xml.cs (5)
32ensureUniqueTag(new Asn1Tag(TagClass.ContextSpecific, 0), "SubjectKeyIdentifier"); 54writer.WriteOctetString(SubjectKeyIdentifier.Value.Span, new Asn1Tag(TagClass.ContextSpecific, 0)); 107else if (tag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 0))) 110if (reader.TryReadPrimitiveOctetString(out tmpSpan, new Asn1Tag(TagClass.ContextSpecific, 0))) 116decoded.SubjectKeyIdentifier = reader.ReadOctetString(new Asn1Tag(TagClass.ContextSpecific, 0));
System\Security\Cryptography\Pkcs\Asn1\SignerInfoAsn.xml.cs (6)
41!validateTag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 0))) 63writer.PushSetOf(new Asn1Tag(TagClass.ContextSpecific, 1)); 68writer.PopSetOf(new Asn1Tag(TagClass.ContextSpecific, 1)); 131if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 0))) 149if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 1))) 154collectionReader = sequenceReader.ReadSetOf(new Asn1Tag(TagClass.ContextSpecific, 1));
1281 references to Asn1Tag
InMemory.FunctionalTests (5)
src\Servers\Kestrel\shared\test\CertificateAuthority.cs (3)
42private static readonly Asn1Tag s_context0 = new Asn1Tag(TagClass.ContextSpecific, 0); 43private static readonly Asn1Tag s_context1 = new Asn1Tag(TagClass.ContextSpecific, 1); 44private static readonly Asn1Tag s_context2 = new Asn1Tag(TagClass.ContextSpecific, 2);
src\Servers\Kestrel\shared\test\RevocationResponder.cs (2)
332Asn1Tag context0 = new Asn1Tag(TagClass.ContextSpecific, 0); 333Asn1Tag context1 = new Asn1Tag(TagClass.ContextSpecific, 1);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (5)
src\Servers\Kestrel\shared\test\CertificateAuthority.cs (3)
42private static readonly Asn1Tag s_context0 = new Asn1Tag(TagClass.ContextSpecific, 0); 43private static readonly Asn1Tag s_context1 = new Asn1Tag(TagClass.ContextSpecific, 1); 44private static readonly Asn1Tag s_context2 = new Asn1Tag(TagClass.ContextSpecific, 2);
src\Servers\Kestrel\shared\test\RevocationResponder.cs (2)
332Asn1Tag context0 = new Asn1Tag(TagClass.ContextSpecific, 0); 333Asn1Tag context1 = new Asn1Tag(TagClass.ContextSpecific, 1);
System.Formats.Asn1 (419)
System\Formats\Asn1\Asn1Tag.Accelerators.cs (14)
11internal static readonly Asn1Tag EndOfContents = new Asn1Tag(0, (int)UniversalTagNumber.EndOfContents); 16public static readonly Asn1Tag Boolean = new Asn1Tag(0, (int)UniversalTagNumber.Boolean); 21public static readonly Asn1Tag Integer = new Asn1Tag(0, (int)UniversalTagNumber.Integer); 26public static readonly Asn1Tag PrimitiveBitString = new Asn1Tag(0, (int)UniversalTagNumber.BitString); 31public static readonly Asn1Tag ConstructedBitString = 37public static readonly Asn1Tag PrimitiveOctetString = new Asn1Tag(0, (int)UniversalTagNumber.OctetString); 42public static readonly Asn1Tag ConstructedOctetString = 48public static readonly Asn1Tag Null = new Asn1Tag(0, (int)UniversalTagNumber.Null); 53public static readonly Asn1Tag ObjectIdentifier = new Asn1Tag(0, (int)UniversalTagNumber.ObjectIdentifier); 58public static readonly Asn1Tag Enumerated = new Asn1Tag(0, (int)UniversalTagNumber.Enumerated); 63public static readonly Asn1Tag Sequence = new Asn1Tag(ConstructedMask, (int)UniversalTagNumber.Sequence); 68public static readonly Asn1Tag SetOf = new Asn1Tag(ConstructedMask, (int)UniversalTagNumber.SetOf); 73public static readonly Asn1Tag UtcTime = new Asn1Tag(0, (int)UniversalTagNumber.UtcTime); 78public static readonly Asn1Tag GeneralizedTime = new Asn1Tag(0, (int)UniversalTagNumber.GeneralizedTime);
System\Formats\Asn1\Asn1Tag.cs (21)
13public readonly partial struct Asn1Tag : IEquatable<Asn1Tag> 49/// Creates an <see cref="Asn1Tag"/> for a tag from the UNIVERSAL class. 75/// Creates an <see cref="Asn1Tag"/> for a specified value within a specified tag class. 124public Asn1Tag AsConstructed() 137public Asn1Tag AsPrimitive() 158public static bool TryDecode(ReadOnlySpan<byte> source, out Asn1Tag tag, out int bytesConsumed) 160tag = default(Asn1Tag); 253public static Asn1Tag Decode(ReadOnlySpan<byte> source, out int bytesConsumed) 255if (TryDecode(source, out Asn1Tag tag, out bytesConsumed)) 383public bool Equals(Asn1Tag other) 389/// Tests if <paramref name="obj"/> is an <see cref="Asn1Tag"/> with the same 394/// <see langword="false"/> if <paramref name="obj"/> is not an <see cref="Asn1Tag"/>, 395/// <see cref="Equals(Asn1Tag)"/> otherwise. 399return obj is Asn1Tag tag && Equals(tag); 417/// Tests if two <see cref="Asn1Tag"/> values have the same BER encoding. 425public static bool operator ==(Asn1Tag left, Asn1Tag right) 431/// Tests if two <see cref="Asn1Tag"/> values have a different BER encoding. 439public static bool operator !=(Asn1Tag left, Asn1Tag right) 453public bool HasSameClassAndValue(Asn1Tag other)
System\Formats\Asn1\AsnDecoder.BitString.cs (29)
55/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagClass"/> is 57/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagValue"/> is not correct for 67Asn1Tag? expectedTag = null) 72expectedTag ?? Asn1Tag.PrimitiveBitString, 140/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagClass"/> is 142/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagValue"/> is not correct for 163Asn1Tag? expectedTag = null) 181expectedTag ?? Asn1Tag.PrimitiveBitString, 262/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagClass"/> is 264/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagValue"/> is not correct for 279Asn1Tag? expectedTag = null) 284expectedTag ?? Asn1Tag.PrimitiveBitString, 468Asn1Tag tag = Asn1Tag.ConstructedBitString; 477if (tag == Asn1Tag.PrimitiveBitString) 515else if (tag == Asn1Tag.EndOfContents && isIndefinite) 536else if (tag == Asn1Tag.ConstructedBitString) 565if (isIndefinite && tag != Asn1Tag.EndOfContents) 633Asn1Tag expectedTag, 641Asn1Tag actualTag = 710/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagClass"/> is 712/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagValue"/> is not correct for 719Asn1Tag? expectedTag = null) 774/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagClass"/> is 776/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagValue"/> is not correct for 785Asn1Tag? expectedTag = null) 830/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagClass"/> is 832/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagValue"/> is not correct for 837public byte[] ReadBitString(out int unusedBitCount, Asn1Tag? expectedTag = null)
System\Formats\Asn1\AsnDecoder.Boolean.cs (7)
39/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagClass"/> is 41/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagValue"/> is not correct for 48Asn1Tag? expectedTag = null) 54expectedTag ?? Asn1Tag.Boolean, 107/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagClass"/> is 109/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagValue"/> is not correct for 112public bool ReadBoolean(Asn1Tag? expectedTag = null)
System\Formats\Asn1\AsnDecoder.cs (20)
66out Asn1Tag tag, 73if (Asn1Tag.TryDecode(source, out Asn1Tag localTag, out int tagLength) && 143public static Asn1Tag ReadEncodedValue( 152Asn1Tag tag = Asn1Tag.Decode(source, out int tagLength); 178Asn1Tag expectedTag, 184Asn1Tag localTag = Asn1Tag.Decode(source, out int tagLength); 445private static Asn1Tag ReadTagAndLength( 451Asn1Tag tag = Asn1Tag.Decode(source, out int tagBytesRead); 475private static void ValidateEndOfContents(Asn1Tag tag, int? length, int headerLength) 487Asn1Tag localTag, 579Asn1Tag tag = ReadTagAndLength(cur, ruleSet, out int? length, out int bytesRead); 581if (tag == Asn1Tag.EndOfContents) 708private static void CheckExpectedTag(Asn1Tag tag, Asn1Tag expectedTag, UniversalTagNumber tagNumber) 825public Asn1Tag PeekTag() 827return Asn1Tag.Decode(_data.Span, out _);
System\Formats\Asn1\AsnDecoder.Enumerated.cs (21)
43/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagClass"/> is 45/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagValue"/> is not correct for 52Asn1Tag? expectedTag = null) 57expectedTag ?? Asn1Tag.Enumerated, 107/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagClass"/> is 109/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagValue"/> is not correct for 120Asn1Tag? expectedTag = null) 177/// <paramref name="enumType"/>.<see cref="Asn1Tag.TagClass"/> is 179/// <paramref name="enumType"/>.<see cref="Asn1Tag.TagValue"/> is not correct for 194Asn1Tag? expectedTag = null) 200Asn1Tag localTag = expectedTag ?? Asn1Tag.Enumerated; 289/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagClass"/> is 291/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagValue"/> is not correct for 295public ReadOnlyMemory<byte> ReadEnumeratedBytes(Asn1Tag? expectedTag = null) 341/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagClass"/> is 343/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagValue"/> is not correct for 350public TEnum ReadEnumeratedValue<TEnum>(Asn1Tag? expectedTag = null) where TEnum : Enum 392/// <paramref name="enumType"/>.<see cref="Asn1Tag.TagClass"/> is 394/// <paramref name="enumType"/>.<see cref="Asn1Tag.TagValue"/> is not correct for 404public Enum ReadEnumeratedValue(Type enumType, Asn1Tag? expectedTag = null)
System\Formats\Asn1\AsnDecoder.GeneralizedTime.cs (7)
43/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagClass"/> is 45/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagValue"/> is not correct for 52Asn1Tag? expectedTag = null) 64expectedTag ?? Asn1Tag.GeneralizedTime, 426/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagClass"/> is 428/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagValue"/> is not correct for 431public DateTimeOffset ReadGeneralizedTime(Asn1Tag? expectedTag = null)
System\Formats\Asn1\AsnDecoder.Integer.cs (44)
44/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagClass"/> is 46/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagValue"/> is not correct for 53Asn1Tag? expectedTag = null) 58expectedTag ?? Asn1Tag.Integer, 94/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagClass"/> is 96/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagValue"/> is not correct for 103Asn1Tag? expectedTag = null) 172/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagClass"/> is 174/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagValue"/> is not correct for 182Asn1Tag? expectedTag = null) 188expectedTag ?? Asn1Tag.Integer, 238/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagClass"/> is 240/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagValue"/> is not correct for 249Asn1Tag? expectedTag = null) 255expectedTag ?? Asn1Tag.Integer, 305/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagClass"/> is 307/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagValue"/> is not correct for 315Asn1Tag? expectedTag = null) 321expectedTag ?? Asn1Tag.Integer, 364/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagClass"/> is 366/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagValue"/> is not correct for 375Asn1Tag? expectedTag = null) 381expectedTag ?? Asn1Tag.Integer, 390Asn1Tag expectedTag, 429Asn1Tag expectedTag, 468Asn1Tag expectedTag, 542/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagClass"/> is 544/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagValue"/> is not correct for 547public ReadOnlyMemory<byte> ReadIntegerBytes(Asn1Tag? expectedTag = null) 579/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagClass"/> is 581/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagValue"/> is not correct for 584public BigInteger ReadInteger(Asn1Tag? expectedTag = null) 618/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagClass"/> is 620/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagValue"/> is not correct for 623public bool TryReadInt32(out int value, Asn1Tag? expectedTag = null) 657/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagClass"/> is 659/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagValue"/> is not correct for 663public bool TryReadUInt32(out uint value, Asn1Tag? expectedTag = null) 697/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagClass"/> is 699/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagValue"/> is not correct for 702public bool TryReadInt64(out long value, Asn1Tag? expectedTag = null) 736/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagClass"/> is 738/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagValue"/> is not correct for 742public bool TryReadUInt64(out ulong value, Asn1Tag? expectedTag = null)
System\Formats\Asn1\AsnDecoder.NamedBitList.cs (19)
58/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagClass"/> is 60/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagValue"/> is not correct for 109Asn1Tag? expectedTag = null) 168/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagClass"/> is 170/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagValue"/> is not correct for 182Asn1Tag? expectedTag = null) 308/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagClass"/> is 310/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagValue"/> is not correct for 325Asn1Tag? expectedTag = null) 327Asn1Tag actualTag = ReadEncodedValue(source, ruleSet, out _, out int contentLength, out _); 437/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagClass"/> is 439/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagValue"/> is not correct for 484public TFlagsEnum ReadNamedBitListValue<TFlagsEnum>(Asn1Tag? expectedTag = null) where TFlagsEnum : Enum 529/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagClass"/> is 531/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagValue"/> is not correct for 538public Enum ReadNamedBitListValue(Type flagsEnumType, Asn1Tag? expectedTag = null) 570/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagClass"/> is 572/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagValue"/> is not correct for 576public BitArray ReadNamedBitList(Asn1Tag? expectedTag = null)
System\Formats\Asn1\AsnDecoder.Null.cs (7)
36/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagClass"/> is 38/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagValue"/> is not correct for 45Asn1Tag? expectedTag = null) 51expectedTag ?? Asn1Tag.Null, 85/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagClass"/> is 87/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagValue"/> is not correct for 90public void ReadNull(Asn1Tag? expectedTag = null)
System\Formats\Asn1\AsnDecoder.OctetString.cs (30)
50/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagClass"/> is 52/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagValue"/> is not correct for 67Asn1Tag? expectedTag = null) 79expectedTag ?? Asn1Tag.PrimitiveOctetString, 150/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagClass"/> is 152/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagValue"/> is not correct for 161Asn1Tag? expectedTag = null) 168expectedTag ?? Asn1Tag.PrimitiveOctetString, 187Asn1Tag expectedTag, 194Asn1Tag actualTag = ReadTagAndLength(source, ruleSet, out contentLength, out headerLength); 261/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagClass"/> is 263/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagValue"/> is not correct for 272Asn1Tag? expectedTag = null) 277expectedTag ?? Asn1Tag.PrimitiveOctetString, 338Asn1Tag tag = Asn1Tag.ConstructedBitString; 347if (tag == Asn1Tag.PrimitiveOctetString) 380else if (tag == Asn1Tag.EndOfContents && isIndefinite) 401else if (tag == Asn1Tag.ConstructedOctetString) 430if (isIndefinite && tag != Asn1Tag.EndOfContents) 479Asn1Tag expectedTag, 565/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagClass"/> is 567/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagValue"/> is not correct for 575Asn1Tag? expectedTag = null) 615/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagClass"/> is 617/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagValue"/> is not correct for 622public byte[] ReadOctetString(Asn1Tag? expectedTag = null) 654/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagClass"/> is 656/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagValue"/> is not correct for 660public bool TryReadPrimitiveOctetString(out ReadOnlyMemory<byte> contents, Asn1Tag? expectedTag = null)
System\Formats\Asn1\AsnDecoder.Oid.cs (7)
45/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagClass"/> is 47/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagValue"/> is not correct for 54Asn1Tag? expectedTag = null) 60expectedTag ?? Asn1Tag.ObjectIdentifier, 361/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagClass"/> is 363/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagValue"/> is not correct for 366public string ReadObjectIdentifier(Asn1Tag? expectedTag = null)
System\Formats\Asn1\AsnDecoder.Sequence.cs (8)
45/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagClass"/> is 47/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagValue"/> is not correct for 61Asn1Tag? expectedTag = default) 63Asn1Tag tag = ReadTagAndLength(source, ruleSet, out int? length, out int headerLength); 64CheckExpectedTag(tag, expectedTag ?? Asn1Tag.Sequence, UniversalTagNumber.Sequence); 124/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagClass"/> is 126/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagValue"/> is not correct for 133public AsnReader ReadSequence(Asn1Tag? expectedTag = null)
System\Formats\Asn1\AsnDecoder.SetOf.cs (11)
50/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagClass"/> is 52/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagValue"/> is not correct for 68Asn1Tag? expectedTag = null) 70Asn1Tag tag = ReadTagAndLength(source, ruleSet, out int? length, out int headerLength); 71CheckExpectedTag(tag, expectedTag ?? Asn1Tag.SetOf, UniversalTagNumber.SetOf); 158/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagClass"/> is 160/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagValue"/> is not correct for 167public AsnReader ReadSetOf(Asn1Tag? expectedTag = null) 201/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagClass"/> is 203/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagValue"/> is not correct for 210public AsnReader ReadSetOf(bool skipSortOrderValidation, Asn1Tag? expectedTag = null)
System\Formats\Asn1\AsnDecoder.Text.cs (27)
51/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagClass"/> is 53/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagValue"/> is not a character 63Asn1Tag expectedTag, 130/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagClass"/> is 132/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagValue"/> is not a character 149Asn1Tag expectedTag, 235/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagClass"/> is 237/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagValue"/> is not the same as 249Asn1Tag? expectedTag = null) 307/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagClass"/> is 309/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagValue"/> is not the same as 320Asn1Tag? expectedTag = null) 337Asn1Tag expectedTag, 431Asn1Tag expectedTag, 483Asn1Tag expectedTag, 576/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagClass"/> is 578/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagValue"/> is not a character 586Asn1Tag expectedTag, 635/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagClass"/> is 637/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagValue"/> is not a character 648Asn1Tag expectedTag, 706/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagClass"/> is 708/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagValue"/> is not the same as 718Asn1Tag? expectedTag = null) 766/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagClass"/> is 768/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagValue"/> is not the same as 774public string ReadCharacterString(UniversalTagNumber encodingType, Asn1Tag? expectedTag = null)
System\Formats\Asn1\AsnDecoder.UtcTime.cs (12)
50/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagClass"/> is 52/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagValue"/> is not correct for 61Asn1Tag? expectedTag = null) 89expectedTag ?? Asn1Tag.UtcTime, 266/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagClass"/> is 268/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagValue"/> is not correct for 271/// <seealso cref="ReadUtcTime(int,Nullable{Asn1Tag})"/> 272public DateTimeOffset ReadUtcTime(Asn1Tag? expectedTag = null) 309/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagClass"/> is 311/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagValue"/> is not correct for 314/// <seealso cref="ReadUtcTime(Nullable{Asn1Tag})"/> 316public DateTimeOffset ReadUtcTime(int twoDigitYearMax, Asn1Tag? expectedTag = null)
System\Formats\Asn1\AsnWriter.BitString.cs (9)
19/// <paramref name="tag"/>.<see cref="Asn1Tag.TagClass"/> is 21/// <paramref name="tag"/>.<see cref="Asn1Tag.TagValue"/> is not correct for 36public void WriteBitString(ReadOnlySpan<byte> value, int unusedBitCount = 0, Asn1Tag? tag = null) 41WriteBitStringCore(tag ?? Asn1Tag.PrimitiveBitString, value, unusedBitCount); 45private void WriteBitStringCore(Asn1Tag tag, ReadOnlySpan<byte> bitString, int unusedBitCount) 106private static int DetermineCerBitStringTotalLength(Asn1Tag tag, int contentLength) 142private void WriteConstructedCerBitString(Asn1Tag tag, ReadOnlySpan<byte> payload, int unusedBitCount) 162Asn1Tag primitiveBitString = Asn1Tag.PrimitiveBitString;
System\Formats\Asn1\AsnWriter.Boolean.cs (5)
16/// <paramref name="tag"/>.<see cref="Asn1Tag.TagClass"/> is 18/// <paramref name="tag"/>.<see cref="Asn1Tag.TagValue"/> is not correct for 21public void WriteBoolean(bool value, Asn1Tag? tag = null) 25WriteBooleanCore(tag?.AsPrimitive() ?? Asn1Tag.Boolean, value); 29private void WriteBooleanCore(Asn1Tag tag, bool value)
System\Formats\Asn1\AsnWriter.Enumerated.cs (12)
18/// <paramref name="tag"/>.<see cref="Asn1Tag.TagClass"/> is 20/// <paramref name="tag"/>.<see cref="Asn1Tag.TagValue"/> is not correct for 31/// <seealso cref="WriteEnumeratedValue(Enum,Asn1Tag?)"/> 32/// <seealso cref="WriteEnumeratedValue{T}(T,Asn1Tag?)"/> 33public void WriteEnumeratedValue(Enum value, Asn1Tag? tag = null) 40WriteEnumeratedValue(tag?.AsPrimitive() ?? Asn1Tag.Enumerated, value.GetType(), value); 53/// <paramref name="tag"/>.<see cref="Asn1Tag.TagClass"/> is 55/// <paramref name="tag"/>.<see cref="Asn1Tag.TagValue"/> is not correct for 66/// <seealso cref="WriteEnumeratedValue(Enum,Nullable{Asn1Tag})"/> 67public void WriteEnumeratedValue<TEnum>(TEnum value, Asn1Tag? tag = null) where TEnum : Enum 69WriteEnumeratedValue(tag?.AsPrimitive() ?? Asn1Tag.Enumerated, typeof(TEnum), value); 73private void WriteEnumeratedValue(Asn1Tag tag, Type tEnum, object value)
System\Formats\Asn1\AsnWriter.GeneralizedTime.cs (5)
23/// <paramref name="tag"/>.<see cref="Asn1Tag.TagClass"/> is 25/// <paramref name="tag"/>.<see cref="Asn1Tag.TagValue"/> is not correct for 31Asn1Tag? tag = null) 37tag?.AsPrimitive() ?? Asn1Tag.GeneralizedTime, 45Asn1Tag tag,
System\Formats\Asn1\AsnWriter.Integer.cs (25)
18/// <paramref name="tag"/>.<see cref="Asn1Tag.TagClass"/> is 20/// <paramref name="tag"/>.<see cref="Asn1Tag.TagValue"/> is not correct for 23public void WriteInteger(long value, Asn1Tag? tag = null) 27WriteIntegerCore(tag?.AsPrimitive() ?? Asn1Tag.Integer, value); 36/// <paramref name="tag"/>.<see cref="Asn1Tag.TagClass"/> is 38/// <paramref name="tag"/>.<see cref="Asn1Tag.TagValue"/> is not correct for 42public void WriteInteger(ulong value, Asn1Tag? tag = null) 46WriteNonNegativeIntegerCore(tag?.AsPrimitive() ?? Asn1Tag.Integer, value); 55/// <paramref name="tag"/>.<see cref="Asn1Tag.TagClass"/> is 57/// <paramref name="tag"/>.<see cref="Asn1Tag.TagValue"/> is not correct for 60public void WriteInteger(BigInteger value, Asn1Tag? tag = null) 64WriteIntegerCore(tag?.AsPrimitive() ?? Asn1Tag.Integer, value); 73/// <paramref name="tag"/>.<see cref="Asn1Tag.TagClass"/> is 75/// <paramref name="tag"/>.<see cref="Asn1Tag.TagValue"/> is not correct for 85public void WriteInteger(ReadOnlySpan<byte> value, Asn1Tag? tag = null) 89WriteIntegerCore(tag?.AsPrimitive() ?? Asn1Tag.Integer, value); 98/// <paramref name="tag"/>.<see cref="Asn1Tag.TagClass"/> is 100/// <paramref name="tag"/>.<see cref="Asn1Tag.TagValue"/> is not correct for 106public void WriteIntegerUnsigned(ReadOnlySpan<byte> value, Asn1Tag? tag = null) 110WriteIntegerUnsignedCore(tag?.AsPrimitive() ?? Asn1Tag.Integer, value); 114private void WriteIntegerCore(Asn1Tag tag, long value) 168private void WriteNonNegativeIntegerCore(Asn1Tag tag, ulong value) 219private void WriteIntegerUnsignedCore(Asn1Tag tag, ReadOnlySpan<byte> value) 250private void WriteIntegerCore(Asn1Tag tag, ReadOnlySpan<byte> value) 279private void WriteIntegerCore(Asn1Tag tag, BigInteger value)
System\Formats\Asn1\AsnWriter.NamedBitList.cs (12)
19/// <paramref name="tag"/>.<see cref="Asn1Tag.TagClass"/> is 21/// <paramref name="tag"/>.<see cref="Asn1Tag.TagValue"/> is not correct for 35public void WriteNamedBitList(Enum value, Asn1Tag? tag = null) 57/// <paramref name="tag"/>.<see cref="Asn1Tag.TagClass"/> is 59/// <paramref name="tag"/>.<see cref="Asn1Tag.TagValue"/> is not correct for 70public void WriteNamedBitList<TEnum>(TEnum value, Asn1Tag? tag = null) where TEnum : Enum 83/// <paramref name="tag"/>.<see cref="Asn1Tag.TagClass"/> is 85/// <paramref name="tag"/>.<see cref="Asn1Tag.TagValue"/> is not correct for 97public void WriteNamedBitList(BitArray value, Asn1Tag? tag = null) 109private void WriteNamedBitList(Asn1Tag? tag, Type tEnum, Enum value) 153private void WriteNamedBitList(Asn1Tag? tag, ulong integralValue) 194private void WriteBitArray(BitArray value, Asn1Tag? tag)
System\Formats\Asn1\AsnWriter.Null.cs (5)
15/// <paramref name="tag"/>.<see cref="Asn1Tag.TagClass"/> is 17/// <paramref name="tag"/>.<see cref="Asn1Tag.TagValue"/> is not correct for 20public void WriteNull(Asn1Tag? tag = null) 24WriteNullCore(tag?.AsPrimitive() ?? Asn1Tag.Null); 28private void WriteNullCore(Asn1Tag tag)
System\Formats\Asn1\AsnWriter.OctetString.cs (14)
27public Scope PushOctetString(Asn1Tag? tag = null) 32tag?.AsConstructed() ?? Asn1Tag.ConstructedOctetString, 42/// <paramref name="tag"/>.<see cref="Asn1Tag.TagClass"/> is 44/// <paramref name="tag"/>.<see cref="Asn1Tag.TagValue"/> is not correct for 56public void PopOctetString(Asn1Tag? tag = default) 59PopTag(tag?.AsConstructed() ?? Asn1Tag.ConstructedOctetString, UniversalTagNumber.OctetString); 68/// <paramref name="tag"/>.<see cref="Asn1Tag.TagClass"/> is 70/// <paramref name="tag"/>.<see cref="Asn1Tag.TagValue"/> is not correct for 73public void WriteOctetString(ReadOnlySpan<byte> value, Asn1Tag? tag = null) 78WriteOctetStringCore(tag ?? Asn1Tag.PrimitiveOctetString, value); 82private void WriteOctetStringCore(Asn1Tag tag, ReadOnlySpan<byte> octetString) 103private void WriteConstructedCerOctetString(Asn1Tag tag, ReadOnlySpan<byte> payload) 142Asn1Tag primitiveOctetString = Asn1Tag.PrimitiveOctetString;
System\Formats\Asn1\AsnWriter.Oid.cs (9)
19/// <paramref name="tag"/>.<see cref="Asn1Tag.TagClass"/> is 21/// <paramref name="tag"/>.<see cref="Asn1Tag.TagValue"/> is not correct for 32public void WriteObjectIdentifier(string oidValue, Asn1Tag? tag = null) 48/// <paramref name="tag"/>.<see cref="Asn1Tag.TagClass"/> is 50/// <paramref name="tag"/>.<see cref="Asn1Tag.TagValue"/> is not correct for 58public void WriteObjectIdentifier(ReadOnlySpan<char> oidValue, Asn1Tag? tag = null) 67WriteTag(tag?.AsPrimitive() ?? Asn1Tag.ObjectIdentifier); 75WriteObjectIdentifierCore(tag?.AsPrimitive() ?? Asn1Tag.ObjectIdentifier, oidValue); 79private void WriteObjectIdentifierCore(Asn1Tag tag, ReadOnlySpan<char> oidValue)
System\Formats\Asn1\AsnWriter.Sequence.cs (10)
18/// <paramref name="tag"/>.<see cref="Asn1Tag.TagClass"/> is 20/// <paramref name="tag"/>.<see cref="Asn1Tag.TagValue"/> is not correct for 24public Scope PushSequence(Asn1Tag? tag = null) 29return PushSequenceCore(tag?.AsConstructed() ?? Asn1Tag.Sequence); 38/// <paramref name="tag"/>.<see cref="Asn1Tag.TagClass"/> is 40/// <paramref name="tag"/>.<see cref="Asn1Tag.TagValue"/> is not correct for 47public void PopSequence(Asn1Tag? tag = null) 53PopSequenceCore(tag?.AsConstructed() ?? Asn1Tag.Sequence); 57private Scope PushSequenceCore(Asn1Tag tag) 64private void PopSequenceCore(Asn1Tag tag)
System\Formats\Asn1\AsnWriter.SetOf.cs (10)
18/// <paramref name="tag"/>.<see cref="Asn1Tag.TagClass"/> is 20/// <paramref name="tag"/>.<see cref="Asn1Tag.TagValue"/> is not correct for 28public Scope PushSetOf(Asn1Tag? tag = null) 33return PushSetOfCore(tag?.AsConstructed() ?? Asn1Tag.SetOf); 42/// <paramref name="tag"/>.<see cref="Asn1Tag.TagClass"/> is 44/// <paramref name="tag"/>.<see cref="Asn1Tag.TagValue"/> is not correct for 55public void PopSetOf(Asn1Tag? tag = null) 60PopSetOfCore(tag?.AsConstructed() ?? Asn1Tag.SetOf); 66private Scope PushSetOfCore(Asn1Tag tag) 73private void PopSetOfCore(Asn1Tag tag)
System\Formats\Asn1\AsnWriter.Text.cs (8)
34/// <paramref name="tag"/>.<see cref="Asn1Tag.TagClass"/> is 36/// <paramref name="tag"/>.<see cref="Asn1Tag.TagValue"/> is not correct for 39public void WriteCharacterString(UniversalTagNumber encodingType, string value, Asn1Tag? tag = null) 70/// <paramref name="tag"/>.<see cref="Asn1Tag.TagClass"/> is 72/// <paramref name="tag"/>.<see cref="Asn1Tag.TagValue"/> is not correct for 75public void WriteCharacterString(UniversalTagNumber encodingType, ReadOnlySpan<char> str, Asn1Tag? tag = null) 84private void WriteCharacterStringCore(Asn1Tag tag, Text.Encoding encoding, ReadOnlySpan<char> str) 116private void WriteConstructedCerCharacterString(Asn1Tag tag, Text.Encoding encoding, ReadOnlySpan<char> str, int size)
System\Formats\Asn1\AsnWriter.UtcTime.cs (11)
19/// <paramref name="tag"/>.<see cref="Asn1Tag.TagClass"/> is 21/// <paramref name="tag"/>.<see cref="Asn1Tag.TagValue"/> is not correct for 24/// <seealso cref="WriteUtcTime(DateTimeOffset,int,Nullable{Asn1Tag})"/> 26public void WriteUtcTime(DateTimeOffset value, Asn1Tag? tag = null) 31WriteUtcTimeCore(tag?.AsPrimitive() ?? Asn1Tag.UtcTime, value); 45/// <paramref name="tag"/>.<see cref="Asn1Tag.TagClass"/> is 47/// <paramref name="tag"/>.<see cref="Asn1Tag.TagValue"/> is not correct for 55/// <seealso cref="WriteUtcTime(DateTimeOffset,Nullable{Asn1Tag})"/> 57public void WriteUtcTime(DateTimeOffset value, int twoDigitYearMax, Asn1Tag? tag = null) 68WriteUtcTimeCore(tag?.AsPrimitive() ?? Asn1Tag.UtcTime, value); 73private void WriteUtcTimeCore(Asn1Tag tag, DateTimeOffset value)
System.Net.Security (18)
src\libraries\Common\src\System\Security\Cryptography\Asn1Reader\AsnValueReader.cs (18)
32internal Asn1Tag PeekTag() 34return Asn1Tag.Decode(_span, out _); 62internal bool ReadBoolean(Asn1Tag? expectedTag = default) 69internal BigInteger ReadInteger(Asn1Tag? expectedTag = default) 76internal bool TryReadInt32(out int value, Asn1Tag? expectedTag = default) 83internal ReadOnlySpan<byte> ReadIntegerBytes(Asn1Tag? expectedTag = default) 93Asn1Tag? expectedTag = default) 107internal byte[] ReadBitString(out int unusedBitCount, Asn1Tag? expectedTag = default) 120internal TFlagsEnum ReadNamedBitListValue<TFlagsEnum>(Asn1Tag? expectedTag = default) where TFlagsEnum : Enum 129Asn1Tag? expectedTag = default) 142internal byte[] ReadOctetString(Asn1Tag? expectedTag = default) 154internal string ReadObjectIdentifier(Asn1Tag? expectedTag = default) 161internal AsnValueReader ReadSequence(Asn1Tag? expectedTag = default) 176internal AsnValueReader ReadSetOf(Asn1Tag? expectedTag = default, bool skipSortOrderValidation = false) 192internal DateTimeOffset ReadUtcTime(Asn1Tag? expectedTag = default) 199internal DateTimeOffset ReadGeneralizedTime(Asn1Tag? expectedTag = default) 206internal string ReadCharacterString(UniversalTagNumber encodingType, Asn1Tag? expectedTag = default) 213internal TEnum ReadEnumeratedValue<TEnum>(Asn1Tag? expectedTag = null) where TEnum : Enum
System.Security.Cryptography (382)
src\libraries\Common\src\System\Security\Cryptography\Asn1\AlgorithmIdentifierAsn.xml.cs (7)
19Encode(writer, Asn1Tag.Sequence); 22internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 52return Decode(Asn1Tag.Sequence, encoded, ruleSet); 55internal static AlgorithmIdentifierAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 73Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded); 76internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out AlgorithmIdentifierAsn decoded) 88private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out AlgorithmIdentifierAsn decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\AttributeAsn.xml.cs (7)
20Encode(writer, Asn1Tag.Sequence); 23internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 55return Decode(Asn1Tag.Sequence, encoded, ruleSet); 58internal static AttributeAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 76Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded); 79internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out AttributeAsn decoded) 91private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out AttributeAsn decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\CurveAsn.xml.cs (8)
20Encode(writer, Asn1Tag.Sequence); 23internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 40return Decode(Asn1Tag.Sequence, encoded, ruleSet); 43internal static CurveAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 61Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded); 64internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out CurveAsn decoded) 76private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out CurveAsn decoded) 105if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(Asn1Tag.PrimitiveBitString))
src\libraries\Common\src\System\Security\Cryptography\Asn1\DigestInfoAsn.xml.cs (7)
19Encode(writer, Asn1Tag.Sequence); 22internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 33return Decode(Asn1Tag.Sequence, encoded, ruleSet); 36internal static DigestInfoAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 54Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded); 57internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out DigestInfoAsn decoded) 69private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out DigestInfoAsn decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\DirectoryStringAsn.xml.cs (5)
23var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>(); 24Action<Asn1Tag, string> ensureUniqueTag = (tag, fieldName) => 71if (!Asn1Tag.TryDecode(UniversalString.Value.Span, out Asn1Tag validateTag, out _) || 144Asn1Tag tag = reader.PeekTag();
src\libraries\Common\src\System\Security\Cryptography\Asn1\DssParms.xml.cs (7)
20Encode(writer, Asn1Tag.Sequence); 23internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 35return Decode(Asn1Tag.Sequence, encoded, ruleSet); 38internal static DssParms Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 56Decode(ref reader, Asn1Tag.Sequence, out decoded); 59internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, out DssParms decoded) 71private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, out DssParms decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\ECDomainParameters.xml.cs (7)
20var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>(); 21Action<Asn1Tag, string> ensureUniqueTag = (tag, fieldName) => 31ensureUniqueTag(Asn1Tag.Sequence, "Specified"); 32ensureUniqueTag(Asn1Tag.ObjectIdentifier, "Named"); 102Asn1Tag tag = reader.PeekTag(); 104if (tag.HasSameClassAndValue(Asn1Tag.Sequence)) 111else if (tag.HasSameClassAndValue(Asn1Tag.ObjectIdentifier))
src\libraries\Common\src\System\Security\Cryptography\Asn1\ECPrivateKey.xml.cs (7)
21Encode(writer, Asn1Tag.Sequence); 24internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 51return Decode(Asn1Tag.Sequence, encoded, ruleSet); 54internal static ECPrivateKey Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 72Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded); 75internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out ECPrivateKey decoded) 87private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out ECPrivateKey decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\EdiPartyNameAsn.xml.cs (7)
19Encode(writer, Asn1Tag.Sequence); 22internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 42return Decode(Asn1Tag.Sequence, encoded, ruleSet); 45internal static EdiPartyNameAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 63Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded); 66internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out EdiPartyNameAsn decoded) 78private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out EdiPartyNameAsn decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\EncryptedPrivateKeyInfoAsn.xml.cs (7)
19Encode(writer, Asn1Tag.Sequence); 22internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 33return Decode(Asn1Tag.Sequence, encoded, ruleSet); 36internal static EncryptedPrivateKeyInfoAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 54Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded); 57internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out EncryptedPrivateKeyInfoAsn decoded) 69private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out EncryptedPrivateKeyInfoAsn decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\FieldID.xml.cs (7)
19Encode(writer, Asn1Tag.Sequence); 22internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 47return Decode(Asn1Tag.Sequence, encoded, ruleSet); 50internal static FieldID Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 68Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded); 71internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out FieldID decoded) 83private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out FieldID decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\GeneralNameAsn.xml.cs (5)
27var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>(); 28Action<Asn1Tag, string> ensureUniqueTag = (tag, fieldName) => 88if (!Asn1Tag.TryDecode(X400Address.Value.Span, out Asn1Tag validateTag, out _) || 204Asn1Tag tag = reader.PeekTag();
src\libraries\Common\src\System\Security\Cryptography\Asn1\OtherNameAsn.xml.cs (7)
19Encode(writer, Asn1Tag.Sequence); 22internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 49return Decode(Asn1Tag.Sequence, encoded, ruleSet); 52internal static OtherNameAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 70Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded); 73internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out OtherNameAsn decoded) 85private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out OtherNameAsn decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\PBEParameter.xml.cs (7)
19Encode(writer, Asn1Tag.Sequence); 22internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 33return Decode(Asn1Tag.Sequence, encoded, ruleSet); 36internal static PBEParameter Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 54Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded); 57internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out PBEParameter decoded) 69private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out PBEParameter decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\PBES2Params.xml.cs (7)
19Encode(writer, Asn1Tag.Sequence); 22internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 33return Decode(Asn1Tag.Sequence, encoded, ruleSet); 36internal static PBES2Params Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 54Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded); 57internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out PBES2Params decoded) 69private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out PBES2Params decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pbkdf2Params.xml.cs (9)
36Encode(writer, Asn1Tag.Sequence); 39internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 68return Decode(Asn1Tag.Sequence, encoded, ruleSet); 71internal static Pbkdf2Params Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 89Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded); 92internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out Pbkdf2Params decoded) 104private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out Pbkdf2Params decoded) 118if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(Asn1Tag.Integer)) 133if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(Asn1Tag.Sequence))
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pbkdf2SaltChoice.xml.cs (7)
20var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>(); 21Action<Asn1Tag, string> ensureUniqueTag = (tag, fieldName) => 31ensureUniqueTag(Asn1Tag.PrimitiveOctetString, "Specified"); 32ensureUniqueTag(Asn1Tag.Sequence, "OtherSource"); 95Asn1Tag tag = reader.PeekTag(); 100if (tag.HasSameClassAndValue(Asn1Tag.PrimitiveOctetString)) 113else if (tag.HasSameClassAndValue(Asn1Tag.Sequence))
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\CertBagAsn.xml.cs (7)
19Encode(writer, Asn1Tag.Sequence); 22internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 49return Decode(Asn1Tag.Sequence, encoded, ruleSet); 52internal static CertBagAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 70Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded); 73internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out CertBagAsn decoded) 85private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out CertBagAsn decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\MacData.xml.cs (8)
39Encode(writer, Asn1Tag.Sequence); 42internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 66return Decode(Asn1Tag.Sequence, encoded, ruleSet); 69internal static MacData Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 87Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded); 90internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out MacData decoded) 102private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out MacData decoded) 123if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(Asn1Tag.Integer))
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.xml.cs (8)
20Encode(writer, Asn1Tag.Sequence); 23internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 40return Decode(Asn1Tag.Sequence, encoded, ruleSet); 43internal static PfxAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 61Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded); 64internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out PfxAsn decoded) 76private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out PfxAsn decoded) 89if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(Asn1Tag.Sequence))
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\SafeBagAsn.xml.cs (8)
21Encode(writer, Asn1Tag.Sequence); 24internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 64return Decode(Asn1Tag.Sequence, encoded, ruleSet); 67internal static SafeBagAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 85Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded); 88internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out SafeBagAsn decoded) 100private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out SafeBagAsn decoded) 118if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(Asn1Tag.SetOf))
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\SecretBagAsn.xml.cs (7)
19Encode(writer, Asn1Tag.Sequence); 22internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 49return Decode(Asn1Tag.Sequence, encoded, ruleSet); 52internal static SecretBagAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 70Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded); 73internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out SecretBagAsn decoded) 85private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out SecretBagAsn decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\ContentInfoAsn.xml.cs (7)
19Encode(writer, Asn1Tag.Sequence); 22internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 49return Decode(Asn1Tag.Sequence, encoded, ruleSet); 52internal static ContentInfoAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 70Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded); 73internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out ContentInfoAsn decoded) 85private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out ContentInfoAsn decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\EncryptedContentInfoAsn.xml.cs (7)
20Encode(writer, Asn1Tag.Sequence); 23internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 47return Decode(Asn1Tag.Sequence, encoded, ruleSet); 50internal static EncryptedContentInfoAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 68Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded); 71internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out EncryptedContentInfoAsn decoded) 83private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out EncryptedContentInfoAsn decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\EncryptedDataAsn.xml.cs (7)
21Encode(writer, Asn1Tag.Sequence); 24internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 48return Decode(Asn1Tag.Sequence, encoded, ruleSet); 51internal static EncryptedDataAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 69Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded); 72internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out EncryptedDataAsn decoded) 84private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out EncryptedDataAsn decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\PrivateKeyInfoAsn.xml.cs (7)
22Encode(writer, Asn1Tag.Sequence); 25internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 50return Decode(Asn1Tag.Sequence, encoded, ruleSet); 53internal static PrivateKeyInfoAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 71Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded); 74internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out PrivateKeyInfoAsn decoded) 86private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out PrivateKeyInfoAsn decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\PssParamsAsn.xml.cs (7)
64Encode(writer, Asn1Tag.Sequence); 67internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 134return Decode(Asn1Tag.Sequence, encoded, ruleSet); 137internal static PssParamsAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 155Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded); 158internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out PssParamsAsn decoded) 170private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out PssParamsAsn decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\Rc2CbcParameters.xml.cs (7)
19Encode(writer, Asn1Tag.Sequence); 22internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 33return Decode(Asn1Tag.Sequence, encoded, ruleSet); 36internal static Rc2CbcParameters Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 54Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded); 57internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out Rc2CbcParameters decoded) 69private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out Rc2CbcParameters decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\RSAPrivateKeyAsn.xml.cs (7)
26Encode(writer, Asn1Tag.Sequence); 29internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 47return Decode(Asn1Tag.Sequence, encoded, ruleSet); 50internal static RSAPrivateKeyAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 68Decode(ref reader, Asn1Tag.Sequence, out decoded); 71internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, out RSAPrivateKeyAsn decoded) 83private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, out RSAPrivateKeyAsn decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\RSAPublicKeyAsn.xml.cs (7)
19Encode(writer, Asn1Tag.Sequence); 22internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 33return Decode(Asn1Tag.Sequence, encoded, ruleSet); 36internal static RSAPublicKeyAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 54Decode(ref reader, Asn1Tag.Sequence, out decoded); 57internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, out RSAPublicKeyAsn decoded) 69private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, out RSAPublicKeyAsn decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\SpecifiedECDomain.xml.cs (9)
24Encode(writer, Asn1Tag.Sequence); 27internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 60return Decode(Asn1Tag.Sequence, encoded, ruleSet); 63internal static SpecifiedECDomain Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 81Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded); 84internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out SpecifiedECDomain decoded) 96private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out SpecifiedECDomain decoded) 125if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(Asn1Tag.Integer)) 132if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(Asn1Tag.ObjectIdentifier))
src\libraries\Common\src\System\Security\Cryptography\Asn1\SubjectPublicKeyInfoAsn.xml.cs (7)
19Encode(writer, Asn1Tag.Sequence); 22internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 33return Decode(Asn1Tag.Sequence, encoded, ruleSet); 36internal static SubjectPublicKeyInfoAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 54Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded); 57internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out SubjectPublicKeyInfoAsn decoded) 69private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out SubjectPublicKeyInfoAsn decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\X509ExtensionAsn.xml.cs (8)
34Encode(writer, Asn1Tag.Sequence); 37internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 68return Decode(Asn1Tag.Sequence, encoded, ruleSet); 71internal static X509ExtensionAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 89Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded); 92internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out X509ExtensionAsn decoded) 104private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out X509ExtensionAsn decoded) 115if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(Asn1Tag.Boolean))
src\libraries\Common\src\System\Security\Cryptography\Asn1Reader\AsnValueReader.cs (18)
32internal Asn1Tag PeekTag() 34return Asn1Tag.Decode(_span, out _); 62internal bool ReadBoolean(Asn1Tag? expectedTag = default) 69internal BigInteger ReadInteger(Asn1Tag? expectedTag = default) 76internal bool TryReadInt32(out int value, Asn1Tag? expectedTag = default) 83internal ReadOnlySpan<byte> ReadIntegerBytes(Asn1Tag? expectedTag = default) 93Asn1Tag? expectedTag = default) 107internal byte[] ReadBitString(out int unusedBitCount, Asn1Tag? expectedTag = default) 120internal TFlagsEnum ReadNamedBitListValue<TFlagsEnum>(Asn1Tag? expectedTag = default) where TFlagsEnum : Enum 129Asn1Tag? expectedTag = default) 142internal byte[] ReadOctetString(Asn1Tag? expectedTag = default) 154internal string ReadObjectIdentifier(Asn1Tag? expectedTag = default) 161internal AsnValueReader ReadSequence(Asn1Tag? expectedTag = default) 176internal AsnValueReader ReadSetOf(Asn1Tag? expectedTag = default, bool skipSortOrderValidation = false) 192internal DateTimeOffset ReadUtcTime(Asn1Tag? expectedTag = default) 199internal DateTimeOffset ReadGeneralizedTime(Asn1Tag? expectedTag = default) 206internal string ReadCharacterString(UniversalTagNumber encodingType, Asn1Tag? expectedTag = default) 213internal TEnum ReadEnumeratedValue<TEnum>(Asn1Tag? expectedTag = null) where TEnum : Enum
src\libraries\Common\src\System\Security\Cryptography\EccKeyFormatHelper.cs (3)
517Asn1Tag tag = new Asn1Tag(TagClass.ContextSpecific, 0); 842Asn1Tag explicit0 = new Asn1Tag(TagClass.ContextSpecific, 0, isConstructed: true); 854Asn1Tag explicit1 = new Asn1Tag(TagClass.ContextSpecific, 1, isConstructed: true);
src\libraries\Common\src\System\Security\Cryptography\Oids.Shared.cs (4)
106internal static Oid? GetSharedOrNullOid(ref AsnValueReader asnValueReader, Asn1Tag? expectedTag = null) 109Asn1Tag tag = asnValueReader.PeekTag(); 117Asn1Tag expected = expectedTag.GetValueOrDefault(Asn1Tag.ObjectIdentifier);
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Builder.cs (1)
252Asn1Tag contextSpecific0 = new Asn1Tag(TagClass.ContextSpecific, 0);
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeBag.cs (1)
79Asn1Tag contextSpecific0 = new Asn1Tag(TagClass.ContextSpecific, 0);
src\libraries\Common\src\System\Security\Cryptography\X509Certificates\X509CertificateLoader.Pkcs12.cs (1)
973Asn1Tag contextSpecific0 = new Asn1Tag(TagClass.ContextSpecific, 0);
System\Security\Cryptography\Helpers.cs (1)
272Asn1Tag tag;
System\Security\Cryptography\X509Certificates\Asn1\AccessDescriptionAsn.xml.cs (7)
19Encode(writer, Asn1Tag.Sequence); 22internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 40return Decode(Asn1Tag.Sequence, encoded, ruleSet); 43internal static AccessDescriptionAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 61Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded); 64internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out AccessDescriptionAsn decoded) 76private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out AccessDescriptionAsn decoded)
System\Security\Cryptography\X509Certificates\Asn1\BasicConstraintsAsn.xml.cs (9)
33Encode(writer, Asn1Tag.Sequence); 36internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 64return Decode(Asn1Tag.Sequence, encoded, ruleSet); 67internal static BasicConstraintsAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 85Decode(ref reader, Asn1Tag.Sequence, out decoded); 88internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, out BasicConstraintsAsn decoded) 100private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, out BasicConstraintsAsn decoded) 107if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(Asn1Tag.Boolean)) 118if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(Asn1Tag.Integer))
System\Security\Cryptography\X509Certificates\Asn1\CertificateAsn.xml.cs (7)
20Encode(writer, Asn1Tag.Sequence); 23internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 35return Decode(Asn1Tag.Sequence, encoded, ruleSet); 38internal static CertificateAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 56Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded); 59internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out CertificateAsn decoded) 71private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out CertificateAsn decoded)
System\Security\Cryptography\X509Certificates\Asn1\CertificatePolicyMappingAsn.xml.cs (7)
19Encode(writer, Asn1Tag.Sequence); 22internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 47return Decode(Asn1Tag.Sequence, encoded, ruleSet); 50internal static CertificatePolicyMappingAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 68Decode(ref reader, Asn1Tag.Sequence, out decoded); 71internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, out CertificatePolicyMappingAsn decoded) 83private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, out CertificatePolicyMappingAsn decoded)
System\Security\Cryptography\X509Certificates\Asn1\CertificateTemplateAsn.xml.cs (8)
20Encode(writer, Asn1Tag.Sequence); 23internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 47return Decode(Asn1Tag.Sequence, encoded, ruleSet); 50internal static CertificateTemplateAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 68Decode(ref reader, Asn1Tag.Sequence, out decoded); 71internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, out CertificateTemplateAsn decoded) 83private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, out CertificateTemplateAsn decoded) 96if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(Asn1Tag.Integer))
System\Security\Cryptography\X509Certificates\Asn1\CertificationRequestAsn.xml.cs (7)
20Encode(writer, Asn1Tag.Sequence); 23internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 35return Decode(Asn1Tag.Sequence, encoded, ruleSet); 38internal static CertificationRequestAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 56Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded); 59internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out CertificationRequestAsn decoded) 71private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out CertificationRequestAsn decoded)
System\Security\Cryptography\X509Certificates\Asn1\CertificationRequestInfoAsn.xml.cs (9)
22Encode(writer, Asn1Tag.Sequence); 25internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 32if (!Asn1Tag.TryDecode(Subject.Span, out Asn1Tag validateTag, out _) || 61return Decode(Asn1Tag.Sequence, encoded, ruleSet); 64internal static CertificationRequestInfoAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 82Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded); 85internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out CertificationRequestInfoAsn decoded) 97private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out CertificationRequestInfoAsn decoded)
System\Security\Cryptography\X509Certificates\Asn1\DistributionPointAsn.xml.cs (7)
21Encode(writer, Asn1Tag.Sequence); 24internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 60return Decode(Asn1Tag.Sequence, encoded, ruleSet); 63internal static DistributionPointAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 81Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded); 84internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out DistributionPointAsn decoded) 96private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out DistributionPointAsn decoded)
System\Security\Cryptography\X509Certificates\Asn1\DistributionPointNameAsn.xml.cs (5)
21var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>(); 22Action<Asn1Tag, string> ensureUniqueTag = (tag, fieldName) => 64if (!Asn1Tag.TryDecode(NameRelativeToCRLIssuer.Value.Span, out Asn1Tag validateTag, out _) || 119Asn1Tag tag = reader.PeekTag();
System\Security\Cryptography\X509Certificates\Asn1\PolicyConstraintsAsn.xml.cs (7)
19Encode(writer, Asn1Tag.Sequence); 22internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 43return Decode(Asn1Tag.Sequence, encoded, ruleSet); 46internal static PolicyConstraintsAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 64Decode(ref reader, Asn1Tag.Sequence, out decoded); 67internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, out PolicyConstraintsAsn decoded) 79private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, out PolicyConstraintsAsn decoded)
System\Security\Cryptography\X509Certificates\Asn1\PolicyInformationAsn.xml.cs (7)
19Encode(writer, Asn1Tag.Sequence); 22internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 52return Decode(Asn1Tag.Sequence, encoded, ruleSet); 55internal static PolicyInformationAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 73Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded); 76internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out PolicyInformationAsn decoded) 88private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out PolicyInformationAsn decoded)
System\Security\Cryptography\X509Certificates\Asn1\TbsCertificateAsn.xml.cs (11)
47Encode(writer, Asn1Tag.Sequence); 50internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 73if (!Asn1Tag.TryDecode(Issuer.Span, out Asn1Tag validateTag, out _) || 91if (!Asn1Tag.TryDecode(Subject.Span, out Asn1Tag validateTag, out _) || 139return Decode(Asn1Tag.Sequence, encoded, ruleSet); 142internal static TbsCertificateAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 160Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded); 163internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out TbsCertificateAsn decoded) 175private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out TbsCertificateAsn decoded)
System\Security\Cryptography\X509Certificates\Asn1\TimeAsn.xml.cs (7)
20var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>(); 21Action<Asn1Tag, string> ensureUniqueTag = (tag, fieldName) => 31ensureUniqueTag(Asn1Tag.UtcTime, "UtcTime"); 32ensureUniqueTag(Asn1Tag.GeneralizedTime, "GeneralTime"); 95Asn1Tag tag = reader.PeekTag(); 97if (tag.HasSameClassAndValue(Asn1Tag.UtcTime)) 101else if (tag.HasSameClassAndValue(Asn1Tag.GeneralizedTime))
System\Security\Cryptography\X509Certificates\Asn1\ValidityAsn.xml.cs (7)
19Encode(writer, Asn1Tag.Sequence); 22internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 33return Decode(Asn1Tag.Sequence, encoded, ruleSet); 36internal static ValidityAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 54Decode(ref reader, Asn1Tag.Sequence, out decoded); 57internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, out ValidityAsn decoded) 69private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, out ValidityAsn decoded)
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.cs (4)
262if (reader.PeekTag().HasSameClassAndValue(Asn1Tag.UtcTime)) 272if (reader.PeekTag().HasSameClassAndValue(Asn1Tag.UtcTime)) 277if (reader.PeekTag().HasSameClassAndValue(Asn1Tag.GeneralizedTime)) 315if (!revokedCertificate.PeekTag().HasSameClassAndValue(Asn1Tag.Sequence))
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.Load.cs (3)
110if (tbsCertList.PeekTag().HasSameClassAndValue(Asn1Tag.Integer)) 135if (tbsCertList.HasData && tbsCertList.PeekTag().HasSameClassAndValue(Asn1Tag.Sequence)) 156if (extension.PeekTag().HasSameClassAndValue(Asn1Tag.Boolean))
System\Security\Cryptography\X509Certificates\X500DirectoryStringHelper.cs (2)
12Asn1Tag tag = tavReader.PeekTag(); 39Asn1Tag tag = tavReader.PeekTag();
System\Security\Cryptography\X509Certificates\X500NameEncoder.ManagedDecode.cs (1)
153Asn1Tag tag = tavReader.PeekTag();
System\Security\Cryptography\X509Certificates\X500RelativeDistinguishedName.cs (1)
131Asn1Tag tag = reader.PeekTag();
System\Security\Cryptography\X509Certificates\X509AuthorityKeyIdentifierExtension.cs (1)
521Asn1Tag nextTag = default;
System.Security.Cryptography.Pkcs (452)
Internal\Cryptography\Pal\AnyOS\AsnHelpers.cs (1)
108if (reader.PeekTag() != Asn1Tag.Null)
src\libraries\Common\src\System\Security\Cryptography\Asn1\AlgorithmIdentifierAsn.xml.cs (7)
19Encode(writer, Asn1Tag.Sequence); 22internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 52return Decode(Asn1Tag.Sequence, encoded, ruleSet); 55internal static AlgorithmIdentifierAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 73Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded); 76internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out AlgorithmIdentifierAsn decoded) 88private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out AlgorithmIdentifierAsn decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\AttributeAsn.xml.cs (7)
20Encode(writer, Asn1Tag.Sequence); 23internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 55return Decode(Asn1Tag.Sequence, encoded, ruleSet); 58internal static AttributeAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 76Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded); 79internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out AttributeAsn decoded) 91private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out AttributeAsn decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\DigestInfoAsn.xml.cs (7)
19Encode(writer, Asn1Tag.Sequence); 22internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 33return Decode(Asn1Tag.Sequence, encoded, ruleSet); 36internal static DigestInfoAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 54Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded); 57internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out DigestInfoAsn decoded) 69private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out DigestInfoAsn decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\DirectoryStringAsn.xml.cs (5)
23var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>(); 24Action<Asn1Tag, string> ensureUniqueTag = (tag, fieldName) => 71if (!Asn1Tag.TryDecode(UniversalString.Value.Span, out Asn1Tag validateTag, out _) || 144Asn1Tag tag = reader.PeekTag();
src\libraries\Common\src\System\Security\Cryptography\Asn1\EdiPartyNameAsn.xml.cs (7)
19Encode(writer, Asn1Tag.Sequence); 22internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 42return Decode(Asn1Tag.Sequence, encoded, ruleSet); 45internal static EdiPartyNameAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 63Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded); 66internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out EdiPartyNameAsn decoded) 78private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out EdiPartyNameAsn decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\EncryptedPrivateKeyInfoAsn.xml.cs (7)
19Encode(writer, Asn1Tag.Sequence); 22internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 33return Decode(Asn1Tag.Sequence, encoded, ruleSet); 36internal static EncryptedPrivateKeyInfoAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 54Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded); 57internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out EncryptedPrivateKeyInfoAsn decoded) 69private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out EncryptedPrivateKeyInfoAsn decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\GeneralNameAsn.xml.cs (5)
27var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>(); 28Action<Asn1Tag, string> ensureUniqueTag = (tag, fieldName) => 88if (!Asn1Tag.TryDecode(X400Address.Value.Span, out Asn1Tag validateTag, out _) || 204Asn1Tag tag = reader.PeekTag();
src\libraries\Common\src\System\Security\Cryptography\Asn1\OaepParamsAsn.xml.cs (7)
47Encode(writer, Asn1Tag.Sequence); 50internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 101return Decode(Asn1Tag.Sequence, encoded, ruleSet); 104internal static OaepParamsAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 122Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded); 125internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out OaepParamsAsn decoded) 137private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out OaepParamsAsn decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\OtherNameAsn.xml.cs (7)
19Encode(writer, Asn1Tag.Sequence); 22internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 49return Decode(Asn1Tag.Sequence, encoded, ruleSet); 52internal static OtherNameAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 70Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded); 73internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out OtherNameAsn decoded) 85private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out OtherNameAsn decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\PBEParameter.xml.cs (7)
19Encode(writer, Asn1Tag.Sequence); 22internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 33return Decode(Asn1Tag.Sequence, encoded, ruleSet); 36internal static PBEParameter Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 54Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded); 57internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out PBEParameter decoded) 69private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out PBEParameter decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\PBES2Params.xml.cs (7)
19Encode(writer, Asn1Tag.Sequence); 22internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 33return Decode(Asn1Tag.Sequence, encoded, ruleSet); 36internal static PBES2Params Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 54Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded); 57internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out PBES2Params decoded) 69private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out PBES2Params decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pbkdf2Params.xml.cs (9)
36Encode(writer, Asn1Tag.Sequence); 39internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 68return Decode(Asn1Tag.Sequence, encoded, ruleSet); 71internal static Pbkdf2Params Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 89Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded); 92internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out Pbkdf2Params decoded) 104private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out Pbkdf2Params decoded) 118if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(Asn1Tag.Integer)) 133if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(Asn1Tag.Sequence))
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pbkdf2SaltChoice.xml.cs (7)
20var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>(); 21Action<Asn1Tag, string> ensureUniqueTag = (tag, fieldName) => 31ensureUniqueTag(Asn1Tag.PrimitiveOctetString, "Specified"); 32ensureUniqueTag(Asn1Tag.Sequence, "OtherSource"); 95Asn1Tag tag = reader.PeekTag(); 100if (tag.HasSameClassAndValue(Asn1Tag.PrimitiveOctetString)) 113else if (tag.HasSameClassAndValue(Asn1Tag.Sequence))
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\CertBagAsn.xml.cs (7)
19Encode(writer, Asn1Tag.Sequence); 22internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 49return Decode(Asn1Tag.Sequence, encoded, ruleSet); 52internal static CertBagAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 70Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded); 73internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out CertBagAsn decoded) 85private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out CertBagAsn decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\MacData.xml.cs (8)
39Encode(writer, Asn1Tag.Sequence); 42internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 66return Decode(Asn1Tag.Sequence, encoded, ruleSet); 69internal static MacData Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 87Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded); 90internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out MacData decoded) 102private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out MacData decoded) 123if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(Asn1Tag.Integer))
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.xml.cs (8)
20Encode(writer, Asn1Tag.Sequence); 23internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 40return Decode(Asn1Tag.Sequence, encoded, ruleSet); 43internal static PfxAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 61Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded); 64internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out PfxAsn decoded) 76private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out PfxAsn decoded) 89if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(Asn1Tag.Sequence))
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\SafeBagAsn.xml.cs (8)
21Encode(writer, Asn1Tag.Sequence); 24internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 64return Decode(Asn1Tag.Sequence, encoded, ruleSet); 67internal static SafeBagAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 85Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded); 88internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out SafeBagAsn decoded) 100private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out SafeBagAsn decoded) 118if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(Asn1Tag.SetOf))
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\SecretBagAsn.xml.cs (7)
19Encode(writer, Asn1Tag.Sequence); 22internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 49return Decode(Asn1Tag.Sequence, encoded, ruleSet); 52internal static SecretBagAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 70Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded); 73internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out SecretBagAsn decoded) 85private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out SecretBagAsn decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\ContentInfoAsn.xml.cs (7)
19Encode(writer, Asn1Tag.Sequence); 22internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 49return Decode(Asn1Tag.Sequence, encoded, ruleSet); 52internal static ContentInfoAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 70Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded); 73internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out ContentInfoAsn decoded) 85private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out ContentInfoAsn decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\EncryptedContentInfoAsn.xml.cs (7)
20Encode(writer, Asn1Tag.Sequence); 23internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 47return Decode(Asn1Tag.Sequence, encoded, ruleSet); 50internal static EncryptedContentInfoAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 68Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded); 71internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out EncryptedContentInfoAsn decoded) 83private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out EncryptedContentInfoAsn decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\EncryptedDataAsn.xml.cs (7)
21Encode(writer, Asn1Tag.Sequence); 24internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 48return Decode(Asn1Tag.Sequence, encoded, ruleSet); 51internal static EncryptedDataAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 69Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded); 72internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out EncryptedDataAsn decoded) 84private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out EncryptedDataAsn decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\PrivateKeyInfoAsn.xml.cs (7)
22Encode(writer, Asn1Tag.Sequence); 25internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 50return Decode(Asn1Tag.Sequence, encoded, ruleSet); 53internal static PrivateKeyInfoAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 71Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded); 74internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out PrivateKeyInfoAsn decoded) 86private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out PrivateKeyInfoAsn decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\PssParamsAsn.xml.cs (7)
64Encode(writer, Asn1Tag.Sequence); 67internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 134return Decode(Asn1Tag.Sequence, encoded, ruleSet); 137internal static PssParamsAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 155Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded); 158internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out PssParamsAsn decoded) 170private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out PssParamsAsn decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\Rc2CbcParameters.xml.cs (7)
19Encode(writer, Asn1Tag.Sequence); 22internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 33return Decode(Asn1Tag.Sequence, encoded, ruleSet); 36internal static Rc2CbcParameters Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 54Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded); 57internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out Rc2CbcParameters decoded) 69private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out Rc2CbcParameters decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\SubjectPublicKeyInfoAsn.xml.cs (7)
19Encode(writer, Asn1Tag.Sequence); 22internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 33return Decode(Asn1Tag.Sequence, encoded, ruleSet); 36internal static SubjectPublicKeyInfoAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 54Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded); 57internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out SubjectPublicKeyInfoAsn decoded) 69private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out SubjectPublicKeyInfoAsn decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\X509ExtensionAsn.xml.cs (8)
34Encode(writer, Asn1Tag.Sequence); 37internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 68return Decode(Asn1Tag.Sequence, encoded, ruleSet); 71internal static X509ExtensionAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 89Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded); 92internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out X509ExtensionAsn decoded) 104private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out X509ExtensionAsn decoded) 115if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(Asn1Tag.Boolean))
src\libraries\Common\src\System\Security\Cryptography\Asn1Reader\AsnValueReader.cs (18)
32internal Asn1Tag PeekTag() 34return Asn1Tag.Decode(_span, out _); 62internal bool ReadBoolean(Asn1Tag? expectedTag = default) 69internal BigInteger ReadInteger(Asn1Tag? expectedTag = default) 76internal bool TryReadInt32(out int value, Asn1Tag? expectedTag = default) 83internal ReadOnlySpan<byte> ReadIntegerBytes(Asn1Tag? expectedTag = default) 93Asn1Tag? expectedTag = default) 107internal byte[] ReadBitString(out int unusedBitCount, Asn1Tag? expectedTag = default) 120internal TFlagsEnum ReadNamedBitListValue<TFlagsEnum>(Asn1Tag? expectedTag = default) where TFlagsEnum : Enum 129Asn1Tag? expectedTag = default) 142internal byte[] ReadOctetString(Asn1Tag? expectedTag = default) 154internal string ReadObjectIdentifier(Asn1Tag? expectedTag = default) 161internal AsnValueReader ReadSequence(Asn1Tag? expectedTag = default) 176internal AsnValueReader ReadSetOf(Asn1Tag? expectedTag = default, bool skipSortOrderValidation = false) 192internal DateTimeOffset ReadUtcTime(Asn1Tag? expectedTag = default) 199internal DateTimeOffset ReadGeneralizedTime(Asn1Tag? expectedTag = default) 206internal string ReadCharacterString(UniversalTagNumber encodingType, Asn1Tag? expectedTag = default) 213internal TEnum ReadEnumeratedValue<TEnum>(Asn1Tag? expectedTag = null) where TEnum : Enum
src\libraries\Common\src\System\Security\Cryptography\Oids.Shared.cs (4)
106internal static Oid? GetSharedOrNullOid(ref AsnValueReader asnValueReader, Asn1Tag? expectedTag = null) 109Asn1Tag tag = asnValueReader.PeekTag(); 117Asn1Tag expected = expectedTag.GetValueOrDefault(Asn1Tag.ObjectIdentifier);
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Builder.cs (1)
252Asn1Tag contextSpecific0 = new Asn1Tag(TagClass.ContextSpecific, 0);
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeBag.cs (1)
79Asn1Tag contextSpecific0 = new Asn1Tag(TagClass.ContextSpecific, 0);
System\Security\Cryptography\Pkcs\Asn1\CadesIssuerSerial.xml.cs (7)
20Encode(writer, Asn1Tag.Sequence); 23internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 41return Decode(Asn1Tag.Sequence, encoded, ruleSet); 44internal static CadesIssuerSerial Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 62Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded); 65internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out CadesIssuerSerial decoded) 77private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out CadesIssuerSerial decoded)
System\Security\Cryptography\Pkcs\Asn1\CertificateChoiceAsn.xml.cs (11)
23var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>(); 24Action<Asn1Tag, string> ensureUniqueTag = (tag, fieldName) => 53if (!Asn1Tag.TryDecode(Certificate.Value.Span, out Asn1Tag validateTag, out _) || 78if (!Asn1Tag.TryDecode(ExtendedCertificate.Value.Span, out Asn1Tag validateTag, out _) || 103if (!Asn1Tag.TryDecode(AttributeCertificateV1.Value.Span, out Asn1Tag validateTag, out _) || 128if (!Asn1Tag.TryDecode(AttributeCertificateV2.Value.Span, out Asn1Tag validateTag, out _) || 192Asn1Tag tag = reader.PeekTag();
System\Security\Cryptography\Pkcs\Asn1\EncapsulatedContentInfoAsn.xml.cs (7)
19Encode(writer, Asn1Tag.Sequence); 22internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 54return Decode(Asn1Tag.Sequence, encoded, ruleSet); 57internal static EncapsulatedContentInfoAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 75Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded); 78internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out EncapsulatedContentInfoAsn decoded) 90private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out EncapsulatedContentInfoAsn decoded)
System\Security\Cryptography\Pkcs\Asn1\EnvelopedDataAsn.xml.cs (7)
23Encode(writer, Asn1Tag.Sequence); 26internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 64return Decode(Asn1Tag.Sequence, encoded, ruleSet); 67internal static EnvelopedDataAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 85Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded); 88internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out EnvelopedDataAsn decoded) 100private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out EnvelopedDataAsn decoded)
System\Security\Cryptography\Pkcs\Asn1\EssCertId.xml.cs (8)
19Encode(writer, Asn1Tag.Sequence); 22internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 38return Decode(Asn1Tag.Sequence, encoded, ruleSet); 41internal static EssCertId Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 59Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded); 62internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out EssCertId decoded) 74private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out EssCertId decoded) 93if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(Asn1Tag.Sequence))
System\Security\Cryptography\Pkcs\Asn1\EssCertIdV2.xml.cs (9)
35Encode(writer, Asn1Tag.Sequence); 38internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 66return Decode(Asn1Tag.Sequence, encoded, ruleSet); 69internal static EssCertIdV2 Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 87Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded); 90internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out EssCertIdV2 decoded) 102private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out EssCertIdV2 decoded) 112if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(Asn1Tag.Sequence)) 133if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(Asn1Tag.Sequence))
System\Security\Cryptography\Pkcs\Asn1\IssuerAndSerialNumberAsn.xml.cs (9)
19Encode(writer, Asn1Tag.Sequence); 22internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 28if (!Asn1Tag.TryDecode(Issuer.Span, out Asn1Tag validateTag, out _) || 49return Decode(Asn1Tag.Sequence, encoded, ruleSet); 52internal static IssuerAndSerialNumberAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 70Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded); 73internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out IssuerAndSerialNumberAsn decoded) 85private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out IssuerAndSerialNumberAsn decoded)
System\Security\Cryptography\Pkcs\Asn1\KeyAgreeRecipientIdentifierAsn.xml.cs (5)
20var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>(); 21Action<Asn1Tag, string> ensureUniqueTag = (tag, fieldName) => 31ensureUniqueTag(Asn1Tag.Sequence, "IssuerAndSerialNumber"); 95Asn1Tag tag = reader.PeekTag(); 97if (tag.HasSameClassAndValue(Asn1Tag.Sequence))
System\Security\Cryptography\Pkcs\Asn1\KeyAgreeRecipientInfoAsn.xml.cs (7)
23Encode(writer, Asn1Tag.Sequence); 26internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 56return Decode(Asn1Tag.Sequence, encoded, ruleSet); 59internal static KeyAgreeRecipientInfoAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 77Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded); 80internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out KeyAgreeRecipientInfoAsn decoded) 92private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out KeyAgreeRecipientInfoAsn decoded)
System\Security\Cryptography\Pkcs\Asn1\KeyTransRecipientInfoAsn.xml.cs (7)
21Encode(writer, Asn1Tag.Sequence); 24internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 37return Decode(Asn1Tag.Sequence, encoded, ruleSet); 40internal static KeyTransRecipientInfoAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 58Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded); 61internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out KeyTransRecipientInfoAsn decoded) 73private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out KeyTransRecipientInfoAsn decoded)
System\Security\Cryptography\Pkcs\Asn1\MessageImprint.xml.cs (7)
19Encode(writer, Asn1Tag.Sequence); 22internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 33return Decode(Asn1Tag.Sequence, encoded, ruleSet); 36internal static MessageImprint Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 54Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded); 57internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out MessageImprint decoded) 69private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out MessageImprint decoded)
System\Security\Cryptography\Pkcs\Asn1\OriginatorIdentifierOrKeyAsn.xml.cs (5)
21var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>(); 22Action<Asn1Tag, string> ensureUniqueTag = (tag, fieldName) => 32ensureUniqueTag(Asn1Tag.Sequence, "IssuerAndSerialNumber"); 106Asn1Tag tag = reader.PeekTag(); 111if (tag.HasSameClassAndValue(Asn1Tag.Sequence))
System\Security\Cryptography\Pkcs\Asn1\OriginatorInfoAsn.xml.cs (7)
20Encode(writer, Asn1Tag.Sequence); 23internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 65return Decode(Asn1Tag.Sequence, encoded, ruleSet); 68internal static OriginatorInfoAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 86Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded); 89internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out OriginatorInfoAsn decoded) 101private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out OriginatorInfoAsn decoded)
System\Security\Cryptography\Pkcs\Asn1\OriginatorPublicKeyAsn.xml.cs (7)
19Encode(writer, Asn1Tag.Sequence); 22internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 33return Decode(Asn1Tag.Sequence, encoded, ruleSet); 36internal static OriginatorPublicKeyAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 54Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded); 57internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out OriginatorPublicKeyAsn decoded) 69private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out OriginatorPublicKeyAsn decoded)
System\Security\Cryptography\Pkcs\Asn1\OtherCertificateFormat.xml.cs (7)
19Encode(writer, Asn1Tag.Sequence); 22internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 47return Decode(Asn1Tag.Sequence, encoded, ruleSet); 50internal static OtherCertificateFormat Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 68Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded); 71internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out OtherCertificateFormat decoded) 83private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out OtherCertificateFormat decoded)
System\Security\Cryptography\Pkcs\Asn1\OtherKeyAttributeAsn.xml.cs (7)
19Encode(writer, Asn1Tag.Sequence); 22internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 52return Decode(Asn1Tag.Sequence, encoded, ruleSet); 55internal static OtherKeyAttributeAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 73Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded); 76internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out OtherKeyAttributeAsn decoded) 88private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out OtherKeyAttributeAsn decoded)
System\Security\Cryptography\Pkcs\Asn1\PkiStatusInfo.xml.cs (10)
20Encode(writer, Asn1Tag.Sequence); 23internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 33if (!Asn1Tag.TryDecode(StatusString.Value.Span, out Asn1Tag validateTag, out _) || 61return Decode(Asn1Tag.Sequence, encoded, ruleSet); 64internal static PkiStatusInfo Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 82Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded); 85internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out PkiStatusInfo decoded) 97private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out PkiStatusInfo decoded) 119if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(Asn1Tag.PrimitiveBitString))
System\Security\Cryptography\Pkcs\Asn1\PolicyInformation.xml.cs (8)
20Encode(writer, Asn1Tag.Sequence); 23internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 53return Decode(Asn1Tag.Sequence, encoded, ruleSet); 56internal static PolicyInformation Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 74Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded); 77internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out PolicyInformation decoded) 89private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out PolicyInformation decoded) 97if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(Asn1Tag.Sequence))
System\Security\Cryptography\Pkcs\Asn1\PolicyQualifierInfo.xml.cs (7)
19Encode(writer, Asn1Tag.Sequence); 22internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 47return Decode(Asn1Tag.Sequence, encoded, ruleSet); 50internal static PolicyQualifierInfo Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 68Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded); 71internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out PolicyQualifierInfo decoded) 83private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out PolicyQualifierInfo decoded)
System\Security\Cryptography\Pkcs\Asn1\RecipientEncryptedKeyAsn.xml.cs (7)
19Encode(writer, Asn1Tag.Sequence); 22internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 33return Decode(Asn1Tag.Sequence, encoded, ruleSet); 36internal static RecipientEncryptedKeyAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 54Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded); 57internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out RecipientEncryptedKeyAsn decoded) 69private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out RecipientEncryptedKeyAsn decoded)
System\Security\Cryptography\Pkcs\Asn1\RecipientIdentifierAsn.xml.cs (5)
20var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>(); 21Action<Asn1Tag, string> ensureUniqueTag = (tag, fieldName) => 31ensureUniqueTag(Asn1Tag.Sequence, "IssuerAndSerialNumber"); 95Asn1Tag tag = reader.PeekTag(); 100if (tag.HasSameClassAndValue(Asn1Tag.Sequence))
System\Security\Cryptography\Pkcs\Asn1\RecipientInfoAsn.xml.cs (5)
20var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>(); 21Action<Asn1Tag, string> ensureUniqueTag = (tag, fieldName) => 31ensureUniqueTag(Asn1Tag.Sequence, "Ktri"); 95Asn1Tag tag = reader.PeekTag(); 97if (tag.HasSameClassAndValue(Asn1Tag.Sequence))
System\Security\Cryptography\Pkcs\Asn1\RecipientKeyIdentifier.xml.cs (9)
20Encode(writer, Asn1Tag.Sequence); 23internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 45return Decode(Asn1Tag.Sequence, encoded, ruleSet); 48internal static RecipientKeyIdentifier Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 66Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded); 69internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out RecipientKeyIdentifier decoded) 81private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out RecipientKeyIdentifier decoded) 100if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(Asn1Tag.GeneralizedTime)) 106if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(Asn1Tag.Sequence))
System\Security\Cryptography\Pkcs\Asn1\Rfc3161Accuracy.xml.cs (8)
20Encode(writer, Asn1Tag.Sequence); 23internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 50return Decode(Asn1Tag.Sequence, encoded, ruleSet); 53internal static Rfc3161Accuracy Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 71Decode(ref reader, Asn1Tag.Sequence, out decoded); 74internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, out Rfc3161Accuracy decoded) 86private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, out Rfc3161Accuracy decoded) 92if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(Asn1Tag.Integer))
System\Security\Cryptography\Pkcs\Asn1\Rfc3161TimeStampReq.xml.cs (10)
38Encode(writer, Asn1Tag.Sequence); 41internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 97return Decode(Asn1Tag.Sequence, encoded, ruleSet); 100internal static Rfc3161TimeStampReq Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 118Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded); 121internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out Rfc3161TimeStampReq decoded) 133private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out Rfc3161TimeStampReq decoded) 151if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(Asn1Tag.ObjectIdentifier)) 157if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(Asn1Tag.Integer)) 164if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(Asn1Tag.Boolean))
System\Security\Cryptography\Pkcs\Asn1\Rfc3161TimeStampResp.xml.cs (7)
19Encode(writer, Asn1Tag.Sequence); 22internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 45return Decode(Asn1Tag.Sequence, encoded, ruleSet); 48internal static Rfc3161TimeStampResp Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 66Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded); 69internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out Rfc3161TimeStampResp decoded) 81private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out Rfc3161TimeStampResp decoded)
System\Security\Cryptography\Pkcs\Asn1\Rfc3161TstInfo.xml.cs (10)
42Encode(writer, Asn1Tag.Sequence); 45internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 112return Decode(Asn1Tag.Sequence, encoded, ruleSet); 115internal static Rfc3161TstInfo Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 133Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded); 136internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out Rfc3161TstInfo decoded) 148private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out Rfc3161TstInfo decoded) 171if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(Asn1Tag.Sequence)) 180if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(Asn1Tag.Boolean)) 191if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(Asn1Tag.Integer))
System\Security\Cryptography\Pkcs\Asn1\SignedAttributesSet.xml.cs (3)
20var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>(); 21Action<Asn1Tag, string> ensureUniqueTag = (tag, fieldName) => 92Asn1Tag tag = reader.PeekTag();
System\Security\Cryptography\Pkcs\Asn1\SignedDataAsn.xml.cs (7)
24Encode(writer, Asn1Tag.Sequence); 27internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 87return Decode(Asn1Tag.Sequence, encoded, ruleSet); 90internal static SignedDataAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 108Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded); 111internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out SignedDataAsn decoded) 123private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out SignedDataAsn decoded)
System\Security\Cryptography\Pkcs\Asn1\SignerIdentifierAsn.xml.cs (5)
20var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>(); 21Action<Asn1Tag, string> ensureUniqueTag = (tag, fieldName) => 31ensureUniqueTag(Asn1Tag.Sequence, "IssuerAndSerialNumber"); 95Asn1Tag tag = reader.PeekTag(); 100if (tag.HasSameClassAndValue(Asn1Tag.Sequence))
System\Security\Cryptography\Pkcs\Asn1\SignerInfoAsn.xml.cs (9)
25Encode(writer, Asn1Tag.Sequence); 28internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 40if (!Asn1Tag.TryDecode(SignedAttributes.Value.Span, out Asn1Tag validateTag, out _) || 77return Decode(Asn1Tag.Sequence, encoded, ruleSet); 80internal static SignerInfoAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 98Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded); 101internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out SignerInfoAsn decoded) 113private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out SignerInfoAsn decoded)
System\Security\Cryptography\Pkcs\Asn1\SigningCertificateAsn.xml.cs (8)
20Encode(writer, Asn1Tag.Sequence); 23internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 53return Decode(Asn1Tag.Sequence, encoded, ruleSet); 56internal static SigningCertificateAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 74Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded); 77internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out SigningCertificateAsn decoded) 89private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out SigningCertificateAsn decoded) 112if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(Asn1Tag.Sequence))
System\Security\Cryptography\Pkcs\Asn1\SigningCertificateV2Asn.xml.cs (8)
20Encode(writer, Asn1Tag.Sequence); 23internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 53return Decode(Asn1Tag.Sequence, encoded, ruleSet); 56internal static SigningCertificateV2Asn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet) 74Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded); 77internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out SigningCertificateV2Asn decoded) 89private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out SigningCertificateV2Asn decoded) 112if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(Asn1Tag.Sequence))