392 references to ContextSpecific
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 (1)
System\Formats\Asn1\Asn1Tag.cs (1)
102case TagClass.ContextSpecific:
System.Net.Security (15)
System\Net\NegotiateAuthenticationPal.ManagedSpnego.cs (15)
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 (158)
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\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\X509Certificates\X509CertificateLoader.Pkcs12.cs (1)
973Asn1Tag contextSpecific0 = new Asn1Tag(TagClass.ContextSpecific, 0);
System\Security\Cryptography\X509Certificates\Asn1\CertificationRequestInfoAsn.xml.cs (3)
49writer.PushSetOf(new Asn1Tag(TagClass.ContextSpecific, 0)); 54writer.PopSetOf(new Asn1Tag(TagClass.ContextSpecific, 0)); 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 (16)
63writer.PushSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 65writer.PopSequence(new Asn1Tag(TagClass.ContextSpecific, 0)); 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)); 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\UnixExportProvider.cs (1)
18new Asn1Tag(TagClass.ContextSpecific, 0, isConstructed: true);
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 (206)
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\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));
System\Security\Cryptography\Pkcs\Asn1\CertificateChoiceAsn.xml.cs (13)
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"); 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)); 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\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\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\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));
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));
System\Security\Cryptography\Pkcs\Pkcs12Builder.cs (2)
246Asn1Tag contextSpecific0 = new Asn1Tag(TagClass.ContextSpecific, 0); 346using (writer.PushSequence(new Asn1Tag(TagClass.ContextSpecific, 0)))
System\Security\Cryptography\Pkcs\Pkcs12SafeBag.cs (1)
73Asn1Tag contextSpecific0 = new Asn1Tag(TagClass.ContextSpecific, 0);
System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (1)
431writer.WriteOctetString(encryptedSpan, new Asn1Tag(TagClass.ContextSpecific, 0));