466 references to 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.DirectoryServices.Protocols (5)
System\DirectoryServices\Protocols\common\DirectoryControl.cs (5)
797private static readonly Asn1Tag s_orderingRuleTag = new(TagClass.ContextSpecific, 0); 798private static readonly Asn1Tag s_reverseOrderTag = new(TagClass.ContextSpecific, 1); 906internal static readonly Asn1Tag AttributeNameTag = new(TagClass.ContextSpecific, 0); 921private static readonly Asn1Tag s_byOffsetChoiceTag = new(TagClass.ContextSpecific, 0, true); 922private static readonly Asn1Tag s_greaterThanOrEqualChoiceTag = new(TagClass.ContextSpecific, 1, false);
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))) 226ValueAsnReader challengeReader = reader.ReadSequence(new Asn1Tag(TagClass.ContextSpecific, (int)NegotiationToken.NegTokenResp)); 246if (challengeReader.HasData && challengeReader.PeekTag().HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, (int)NegTokenResp.NegState))) 248ValueAsnReader valueReader = challengeReader.ReadSequence(new Asn1Tag(TagClass.ContextSpecific, (int)NegTokenResp.NegState)); 253if (challengeReader.HasData && challengeReader.PeekTag().HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, (int)NegTokenResp.SupportedMech))) 255ValueAsnReader valueReader = challengeReader.ReadSequence(new Asn1Tag(TagClass.ContextSpecific, (int)NegTokenResp.SupportedMech)); 260if (challengeReader.HasData && challengeReader.PeekTag().HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, (int)NegTokenResp.ResponseToken))) 262ValueAsnReader valueReader = challengeReader.ReadSequence(new Asn1Tag(TagClass.ContextSpecific, (int)NegTokenResp.ResponseToken)); 267if (challengeReader.HasData && challengeReader.PeekTag().HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, (int)NegTokenResp.MechListMIC))) 269ValueAsnReader 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 (217)
src\libraries\Common\src\System\Security\Cryptography\Asn1\ECPrivateKey.xml.cs (8)
55writer.PushSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 57writer.PopSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 63writer.PushSequence(new Asn1Tag(TagClass.ContextSpecific, 1)); 65writer.PopSequence(new Asn1Tag(TagClass.ContextSpecific, 1)); 132if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 0))) 134explicitReader = sequenceReader.ReadSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 144if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 1))) 146explicitReader = 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)
27ensureUniqueTag(new Asn1Tag(TagClass.ContextSpecific, 0), "OtherName"); 28ensureUniqueTag(new Asn1Tag(TagClass.ContextSpecific, 1), "Rfc822Name"); 29ensureUniqueTag(new Asn1Tag(TagClass.ContextSpecific, 2), "DnsName"); 30ensureUniqueTag(new Asn1Tag(TagClass.ContextSpecific, 3), "X400Address"); 31ensureUniqueTag(new Asn1Tag(TagClass.ContextSpecific, 4), "DirectoryName"); 32ensureUniqueTag(new Asn1Tag(TagClass.ContextSpecific, 5), "EdiPartyName"); 33ensureUniqueTag(new Asn1Tag(TagClass.ContextSpecific, 6), "Uri"); 34ensureUniqueTag(new Asn1Tag(TagClass.ContextSpecific, 7), "IPAddress"); 35ensureUniqueTag(new Asn1Tag(TagClass.ContextSpecific, 8), "RegisteredId"); 74OtherName.Value.Encode(writer, new Asn1Tag(TagClass.ContextSpecific, 0)); 83writer.WriteCharacterString(UniversalTagNumber.IA5String, Rfc822Name, new Asn1Tag(TagClass.ContextSpecific, 1)); 92writer.WriteCharacterString(UniversalTagNumber.IA5String, DnsName, new Asn1Tag(TagClass.ContextSpecific, 2)); 104!validateTag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 3))) 126writer.PushSequence(new Asn1Tag(TagClass.ContextSpecific, 4)); 135writer.PopSequence(new Asn1Tag(TagClass.ContextSpecific, 4)); 144EdiPartyName.Value.Encode(writer, new Asn1Tag(TagClass.ContextSpecific, 5)); 153writer.WriteCharacterString(UniversalTagNumber.IA5String, Uri, new Asn1Tag(TagClass.ContextSpecific, 6)); 162writer.WriteOctetString(IPAddress.Value.Span, new Asn1Tag(TagClass.ContextSpecific, 7)); 173writer.WriteObjectIdentifier(RegisteredId, new Asn1Tag(TagClass.ContextSpecific, 8)); 225if (tag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 0))) 228System.Security.Cryptography.Asn1.OtherNameAsn.Decode(ref reader, new Asn1Tag(TagClass.ContextSpecific, 0), rebind, out tmpOtherName); 232else if (tag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 1))) 234decoded.Rfc822Name = reader.ReadCharacterString(UniversalTagNumber.IA5String, new Asn1Tag(TagClass.ContextSpecific, 1)); 236else if (tag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 2))) 238decoded.DnsName = reader.ReadCharacterString(UniversalTagNumber.IA5String, new Asn1Tag(TagClass.ContextSpecific, 2)); 240else if (tag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 3))) 245else if (tag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 4))) 247explicitReader = reader.ReadSequence(new Asn1Tag(TagClass.ContextSpecific, 4)); 252else if (tag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 5))) 255System.Security.Cryptography.Asn1.EdiPartyNameAsn.Decode(ref reader, new Asn1Tag(TagClass.ContextSpecific, 5), rebind, out tmpEdiPartyName); 259else if (tag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 6))) 261decoded.Uri = reader.ReadCharacterString(UniversalTagNumber.IA5String, new Asn1Tag(TagClass.ContextSpecific, 6)); 263else if (tag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 7))) 266if (reader.TryReadPrimitiveOctetString(out tmpSpan, new Asn1Tag(TagClass.ContextSpecific, 7))) 272decoded.IPAddress = reader.ReadOctetString(new Asn1Tag(TagClass.ContextSpecific, 7)); 276else if (tag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 8))) 278decoded.RegisteredId = reader.ReadObjectIdentifier(new Asn1Tag(TagClass.ContextSpecific, 8));
src\libraries\Common\src\System\Security\Cryptography\Asn1\MLDsaPrivateKeyAsn.xml.cs (5)
27ensureUniqueTag(new Asn1Tag(TagClass.ContextSpecific, 0), "Seed"); 95writer.WriteOctetString(Seed, new Asn1Tag(TagClass.ContextSpecific, 0)); 156if (tag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 0))) 159if (reader.TryReadPrimitiveOctetString(out tmpSpan, new Asn1Tag(TagClass.ContextSpecific, 0))) 165decoded.Seed = reader.ReadOctetString(new Asn1Tag(TagClass.ContextSpecific, 0));
src\libraries\Common\src\System\Security\Cryptography\Asn1\MLKemPrivateKeyAsn.xml.cs (5)
27ensureUniqueTag(new Asn1Tag(TagClass.ContextSpecific, 0), "Seed"); 95writer.WriteOctetString(Seed, new Asn1Tag(TagClass.ContextSpecific, 0)); 156if (tag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 0))) 159if (reader.TryReadPrimitiveOctetString(out tmpSpan, new Asn1Tag(TagClass.ContextSpecific, 0))) 165decoded.Seed = reader.ReadOctetString(new Asn1Tag(TagClass.ContextSpecific, 0));
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\CertificateChoiceAsn.xml.cs (13)
28ensureUniqueTag(new Asn1Tag(TagClass.ContextSpecific, 0), "ExtendedCertificate"); 29ensureUniqueTag(new Asn1Tag(TagClass.ContextSpecific, 1), "AttributeCertificateV1"); 30ensureUniqueTag(new Asn1Tag(TagClass.ContextSpecific, 2), "AttributeCertificateV2"); 31ensureUniqueTag(new Asn1Tag(TagClass.ContextSpecific, 3), "OtherCertificateFormat"); 94!validateTag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 0))) 119!validateTag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 1))) 144!validateTag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 2))) 166OtherCertificateFormat.Value.Encode(writer, new Asn1Tag(TagClass.ContextSpecific, 3)); 217else if (tag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 0))) 222else if (tag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 1))) 227else if (tag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 2))) 232else if (tag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 3))) 235System.Security.Cryptography.Asn1.Pkcs7.OtherCertificateFormat.Decode(ref reader, new Asn1Tag(TagClass.ContextSpecific, 3), rebind, out tmpOtherCertificateFormat);
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\ContentInfoAsn.xml.cs (6)
34writer.PushSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 43writer.PopSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 96explicitReader = sequenceReader.ReadSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 129writer.PushSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 139writer.PopSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 188explicitReader = sequenceReader.ReadSequence(new Asn1Tag(TagClass.ContextSpecific, 0));
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\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));
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\Pkcs7\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));
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\SignerIdentifierAsn.xml.cs (5)
28ensureUniqueTag(new Asn1Tag(TagClass.ContextSpecific, 0), "SubjectKeyIdentifier"); 69writer.WriteOctetString(SubjectKeyIdentifier.Value.Span, new Asn1Tag(TagClass.ContextSpecific, 0)); 122else if (tag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 0))) 125if (reader.TryReadPrimitiveOctetString(out tmpSpan, new Asn1Tag(TagClass.ContextSpecific, 0))) 131decoded.SubjectKeyIdentifier = reader.ReadOctetString(new Asn1Tag(TagClass.ContextSpecific, 0));
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\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));
src\libraries\Common\src\System\Security\Cryptography\Asn1\PrivateKeyInfoAsn.xml.cs (6)
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)); 247if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 0))) 286_reader = outerReader.ReadSetOf(new Asn1Tag(TagClass.ContextSpecific, 0));
src\libraries\Common\src\System\Security\Cryptography\Asn1\PssParamsAsn.xml.cs (16)
81writer.PushSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 83writer.PopSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 95writer.PushSequence(new Asn1Tag(TagClass.ContextSpecific, 1)); 97writer.PopSequence(new Asn1Tag(TagClass.ContextSpecific, 1)); 110writer.PushSequence(new Asn1Tag(TagClass.ContextSpecific, 2)); 112writer.PopSequence(new Asn1Tag(TagClass.ContextSpecific, 2)); 125writer.PushSequence(new Asn1Tag(TagClass.ContextSpecific, 3)); 127writer.PopSequence(new Asn1Tag(TagClass.ContextSpecific, 3)); 179if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 0))) 181explicitReader = sequenceReader.ReadSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 192if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 1))) 194explicitReader = sequenceReader.ReadSequence(new Asn1Tag(TagClass.ContextSpecific, 1)); 205if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 2))) 207explicitReader = sequenceReader.ReadSequence(new Asn1Tag(TagClass.ContextSpecific, 2)); 228if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 3))) 230explicitReader = sequenceReader.ReadSequence(new Asn1Tag(TagClass.ContextSpecific, 3));
src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsaManaged.ECDsa.cs (1)
265using (writer.PushSequence(new Asn1Tag(TagClass.ContextSpecific, 0, isConstructed: true)))
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Builder.cs (2)
237Asn1Tag contextSpecific0 = new Asn1Tag(TagClass.ContextSpecific, 0); 337using (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)
415writer.WriteOctetString(encryptedSpan, new Asn1Tag(TagClass.ContextSpecific, 0));
src\libraries\Common\src\System\Security\Cryptography\X509Certificates\X509CertificateLoader.Pkcs12.cs (1)
1288Asn1Tag contextSpecific0 = new Asn1Tag(TagClass.ContextSpecific, 0);
System\Security\Cryptography\EccKeyFormatHelper.cs (2)
821Asn1Tag explicit0 = new Asn1Tag(TagClass.ContextSpecific, 0, isConstructed: true); 833Asn1Tag explicit1 = new Asn1Tag(TagClass.ContextSpecific, 1, isConstructed: true);
System\Security\Cryptography\X509Certificates\Asn1\CertificationRequestInfoAsn.xml.cs (5)
49writer.PushSetOf(new Asn1Tag(TagClass.ContextSpecific, 0)); 54writer.PopSetOf(new Asn1Tag(TagClass.ContextSpecific, 0)); 118collectionReader = sequenceReader.ReadSetOf(new Asn1Tag(TagClass.ContextSpecific, 0)); 237if (!sequenceReader.PeekTag().HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 0))) 276_reader = outerReader.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)
28ensureUniqueTag(new Asn1Tag(TagClass.ContextSpecific, 0), "FullName"); 29ensureUniqueTag(new Asn1Tag(TagClass.ContextSpecific, 1), "NameRelativeToCRLIssuer"); 62writer.PushSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 67writer.PopSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 80!validateTag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 1))) 140if (tag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 0))) 145collectionReader = reader.ReadSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 159else 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 (16)
66writer.PushSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 68writer.PopSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 113writer.WriteBitString(IssuerUniqueId.Value.Span, 0, new Asn1Tag(TagClass.ContextSpecific, 1)); 119writer.WriteBitString(SubjectUniqueId.Value.Span, 0, new Asn1Tag(TagClass.ContextSpecific, 2)); 125writer.PushSequence(new Asn1Tag(TagClass.ContextSpecific, 3)); 134writer.PopSequence(new Asn1Tag(TagClass.ContextSpecific, 3)); 190if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 0))) 192explicitReader = sequenceReader.ReadSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 232if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 1))) 235if (sequenceReader.TryReadPrimitiveBitString(out _, out tmpSpan, new Asn1Tag(TagClass.ContextSpecific, 1))) 241decoded.IssuerUniqueId = sequenceReader.ReadBitString(out _, new Asn1Tag(TagClass.ContextSpecific, 1)); 247if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 2))) 250if (sequenceReader.TryReadPrimitiveBitString(out _, out tmpSpan, new Asn1Tag(TagClass.ContextSpecific, 2))) 256decoded.SubjectUniqueId = sequenceReader.ReadBitString(out _, new Asn1Tag(TagClass.ContextSpecific, 2)); 262if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 3))) 264explicitReader = sequenceReader.ReadSequence(new Asn1Tag(TagClass.ContextSpecific, 3));
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.Build.cs (1)
407using (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)
142ValueAsnReader 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 (216)
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)
27ensureUniqueTag(new Asn1Tag(TagClass.ContextSpecific, 0), "OtherName"); 28ensureUniqueTag(new Asn1Tag(TagClass.ContextSpecific, 1), "Rfc822Name"); 29ensureUniqueTag(new Asn1Tag(TagClass.ContextSpecific, 2), "DnsName"); 30ensureUniqueTag(new Asn1Tag(TagClass.ContextSpecific, 3), "X400Address"); 31ensureUniqueTag(new Asn1Tag(TagClass.ContextSpecific, 4), "DirectoryName"); 32ensureUniqueTag(new Asn1Tag(TagClass.ContextSpecific, 5), "EdiPartyName"); 33ensureUniqueTag(new Asn1Tag(TagClass.ContextSpecific, 6), "Uri"); 34ensureUniqueTag(new Asn1Tag(TagClass.ContextSpecific, 7), "IPAddress"); 35ensureUniqueTag(new Asn1Tag(TagClass.ContextSpecific, 8), "RegisteredId"); 74OtherName.Value.Encode(writer, new Asn1Tag(TagClass.ContextSpecific, 0)); 83writer.WriteCharacterString(UniversalTagNumber.IA5String, Rfc822Name, new Asn1Tag(TagClass.ContextSpecific, 1)); 92writer.WriteCharacterString(UniversalTagNumber.IA5String, DnsName, new Asn1Tag(TagClass.ContextSpecific, 2)); 104!validateTag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 3))) 126writer.PushSequence(new Asn1Tag(TagClass.ContextSpecific, 4)); 135writer.PopSequence(new Asn1Tag(TagClass.ContextSpecific, 4)); 144EdiPartyName.Value.Encode(writer, new Asn1Tag(TagClass.ContextSpecific, 5)); 153writer.WriteCharacterString(UniversalTagNumber.IA5String, Uri, new Asn1Tag(TagClass.ContextSpecific, 6)); 162writer.WriteOctetString(IPAddress.Value.Span, new Asn1Tag(TagClass.ContextSpecific, 7)); 173writer.WriteObjectIdentifier(RegisteredId, new Asn1Tag(TagClass.ContextSpecific, 8)); 225if (tag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 0))) 228System.Security.Cryptography.Asn1.OtherNameAsn.Decode(ref reader, new Asn1Tag(TagClass.ContextSpecific, 0), rebind, out tmpOtherName); 232else if (tag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 1))) 234decoded.Rfc822Name = reader.ReadCharacterString(UniversalTagNumber.IA5String, new Asn1Tag(TagClass.ContextSpecific, 1)); 236else if (tag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 2))) 238decoded.DnsName = reader.ReadCharacterString(UniversalTagNumber.IA5String, new Asn1Tag(TagClass.ContextSpecific, 2)); 240else if (tag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 3))) 245else if (tag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 4))) 247explicitReader = reader.ReadSequence(new Asn1Tag(TagClass.ContextSpecific, 4)); 252else if (tag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 5))) 255System.Security.Cryptography.Asn1.EdiPartyNameAsn.Decode(ref reader, new Asn1Tag(TagClass.ContextSpecific, 5), rebind, out tmpEdiPartyName); 259else if (tag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 6))) 261decoded.Uri = reader.ReadCharacterString(UniversalTagNumber.IA5String, new Asn1Tag(TagClass.ContextSpecific, 6)); 263else if (tag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 7))) 266if (reader.TryReadPrimitiveOctetString(out tmpSpan, new Asn1Tag(TagClass.ContextSpecific, 7))) 272decoded.IPAddress = reader.ReadOctetString(new Asn1Tag(TagClass.ContextSpecific, 7)); 276else if (tag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 8))) 278decoded.RegisteredId = reader.ReadObjectIdentifier(new Asn1Tag(TagClass.ContextSpecific, 8));
src\libraries\Common\src\System\Security\Cryptography\Asn1\OaepParamsAsn.xml.cs (12)
65writer.PushSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 67writer.PopSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 79writer.PushSequence(new Asn1Tag(TagClass.ContextSpecific, 1)); 81writer.PopSequence(new Asn1Tag(TagClass.ContextSpecific, 1)); 93writer.PushSequence(new Asn1Tag(TagClass.ContextSpecific, 2)); 95writer.PopSequence(new Asn1Tag(TagClass.ContextSpecific, 2)); 148if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 0))) 150explicitReader = sequenceReader.ReadSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 161if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 1))) 163explicitReader = sequenceReader.ReadSequence(new Asn1Tag(TagClass.ContextSpecific, 1)); 174if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 2))) 176explicitReader = 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\CertificateChoiceAsn.xml.cs (13)
28ensureUniqueTag(new Asn1Tag(TagClass.ContextSpecific, 0), "ExtendedCertificate"); 29ensureUniqueTag(new Asn1Tag(TagClass.ContextSpecific, 1), "AttributeCertificateV1"); 30ensureUniqueTag(new Asn1Tag(TagClass.ContextSpecific, 2), "AttributeCertificateV2"); 31ensureUniqueTag(new Asn1Tag(TagClass.ContextSpecific, 3), "OtherCertificateFormat"); 94!validateTag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 0))) 119!validateTag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 1))) 144!validateTag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 2))) 166OtherCertificateFormat.Value.Encode(writer, new Asn1Tag(TagClass.ContextSpecific, 3)); 217else if (tag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 0))) 222else if (tag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 1))) 227else if (tag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 2))) 232else if (tag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 3))) 235System.Security.Cryptography.Asn1.Pkcs7.OtherCertificateFormat.Decode(ref reader, new Asn1Tag(TagClass.ContextSpecific, 3), rebind, out tmpOtherCertificateFormat);
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\ContentInfoAsn.xml.cs (6)
34writer.PushSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 43writer.PopSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 96explicitReader = sequenceReader.ReadSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 129writer.PushSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 139writer.PopSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 188explicitReader = sequenceReader.ReadSequence(new Asn1Tag(TagClass.ContextSpecific, 0));
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\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));
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\Pkcs7\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));
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\SignerIdentifierAsn.xml.cs (5)
28ensureUniqueTag(new Asn1Tag(TagClass.ContextSpecific, 0), "SubjectKeyIdentifier"); 69writer.WriteOctetString(SubjectKeyIdentifier.Value.Span, new Asn1Tag(TagClass.ContextSpecific, 0)); 122else if (tag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 0))) 125if (reader.TryReadPrimitiveOctetString(out tmpSpan, new Asn1Tag(TagClass.ContextSpecific, 0))) 131decoded.SubjectKeyIdentifier = reader.ReadOctetString(new Asn1Tag(TagClass.ContextSpecific, 0));
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\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));
src\libraries\Common\src\System\Security\Cryptography\Asn1\PrivateKeyInfoAsn.xml.cs (6)
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)); 247if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 0))) 286_reader = outerReader.ReadSetOf(new Asn1Tag(TagClass.ContextSpecific, 0));
src\libraries\Common\src\System\Security\Cryptography\Asn1\PssParamsAsn.xml.cs (16)
81writer.PushSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 83writer.PopSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 95writer.PushSequence(new Asn1Tag(TagClass.ContextSpecific, 1)); 97writer.PopSequence(new Asn1Tag(TagClass.ContextSpecific, 1)); 110writer.PushSequence(new Asn1Tag(TagClass.ContextSpecific, 2)); 112writer.PopSequence(new Asn1Tag(TagClass.ContextSpecific, 2)); 125writer.PushSequence(new Asn1Tag(TagClass.ContextSpecific, 3)); 127writer.PopSequence(new Asn1Tag(TagClass.ContextSpecific, 3)); 179if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 0))) 181explicitReader = sequenceReader.ReadSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 192if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 1))) 194explicitReader = sequenceReader.ReadSequence(new Asn1Tag(TagClass.ContextSpecific, 1)); 205if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 2))) 207explicitReader = sequenceReader.ReadSequence(new Asn1Tag(TagClass.ContextSpecific, 2)); 228if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 3))) 230explicitReader = sequenceReader.ReadSequence(new Asn1Tag(TagClass.ContextSpecific, 3));
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Builder.cs (2)
237Asn1Tag contextSpecific0 = new Asn1Tag(TagClass.ContextSpecific, 0); 337using (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)
415writer.WriteOctetString(encryptedSpan, 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\KeyAgreeRecipientIdentifierAsn.xml.cs (4)
28ensureUniqueTag(new Asn1Tag(TagClass.ContextSpecific, 0), "RKeyId"); 69RKeyId.Value.Encode(writer, new Asn1Tag(TagClass.ContextSpecific, 0)); 119else if (tag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 0))) 122System.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)
28ensureUniqueTag(new Asn1Tag(TagClass.ContextSpecific, 0), "SubjectKeyIdentifier"); 29ensureUniqueTag(new Asn1Tag(TagClass.ContextSpecific, 1), "OriginatorKey"); 71writer.WriteOctetString(SubjectKeyIdentifier.Value.Span, new Asn1Tag(TagClass.ContextSpecific, 0)); 80OriginatorKey.Value.Encode(writer, new Asn1Tag(TagClass.ContextSpecific, 1)); 133else if (tag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 0))) 136if (reader.TryReadPrimitiveOctetString(out tmpSpan, new Asn1Tag(TagClass.ContextSpecific, 0))) 142decoded.SubjectKeyIdentifier = reader.ReadOctetString(new Asn1Tag(TagClass.ContextSpecific, 0)); 146else if (tag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 1))) 149System.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\RecipientIdentifierAsn.xml.cs (5)
28ensureUniqueTag(new Asn1Tag(TagClass.ContextSpecific, 0), "SubjectKeyIdentifier"); 69writer.WriteOctetString(SubjectKeyIdentifier.Value.Span, new Asn1Tag(TagClass.ContextSpecific, 0)); 122else if (tag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 0))) 125if (reader.TryReadPrimitiveOctetString(out tmpSpan, new Asn1Tag(TagClass.ContextSpecific, 0))) 131decoded.SubjectKeyIdentifier = reader.ReadOctetString(new Asn1Tag(TagClass.ContextSpecific, 0));
System\Security\Cryptography\Pkcs\Asn1\RecipientInfoAsn.xml.cs (4)
28ensureUniqueTag(new Asn1Tag(TagClass.ContextSpecific, 1), "Kari"); 69Kari.Value.Encode(writer, new Asn1Tag(TagClass.ContextSpecific, 1)); 119else if (tag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 1))) 122System.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)
86writer.PushSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 91writer.PopSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 178if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 0))) 183collectionReader = sequenceReader.ReadSequence(new Asn1Tag(TagClass.ContextSpecific, 0));
System\Security\Cryptography\Pkcs\Asn1\Rfc3161TstInfo.xml.cs (13)
92writer.PushSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 94writer.PopSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 101writer.PushSequence(new Asn1Tag(TagClass.ContextSpecific, 1)); 106writer.PopSequence(new Asn1Tag(TagClass.ContextSpecific, 1)); 201if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 0))) 203explicitReader = sequenceReader.ReadSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 212if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 1))) 217collectionReader = sequenceReader.ReadSequence(new Asn1Tag(TagClass.ContextSpecific, 1)); 333writer.PushSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 343writer.PopSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 445if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 0))) 447explicitReader = sequenceReader.ReadSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 454if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 1)))
System\Security\Cryptography\Pkcs\Asn1\SignedAttributesSet.xml.cs (5)
28ensureUniqueTag(new Asn1Tag(TagClass.ContextSpecific, 0), "SignedAttributes"); 60writer.PushSetOf(new Asn1Tag(TagClass.ContextSpecific, 0)); 65writer.PopSetOf(new Asn1Tag(TagClass.ContextSpecific, 0)); 110if (tag.HasSameClassAndValue(new Asn1Tag(TagClass.ContextSpecific, 0))) 115collectionReader = reader.ReadSetOf(new Asn1Tag(TagClass.ContextSpecific, 0));