19 instantiations of AsnReader
InMemory.FunctionalTests (2)
src\Servers\Kestrel\shared\test\CertificateAuthority.cs (1)
676AsnReader reader = new AsnReader(certId, AsnEncodingRules.DER);
src\Servers\Kestrel\shared\test\RevocationResponder.cs (1)
335AsnReader reader = new AsnReader(requestBytes, AsnEncodingRules.DER);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
src\Servers\Kestrel\shared\test\CertificateAuthority.cs (1)
676AsnReader reader = new AsnReader(certId, AsnEncodingRules.DER);
src\Servers\Kestrel\shared\test\RevocationResponder.cs (1)
335AsnReader reader = new AsnReader(requestBytes, AsnEncodingRules.DER);
System.Formats.Asn1 (2)
System\Formats\Asn1\AsnDecoder.cs (2)
897public AsnReader Clone() => new AsnReader(_data, RuleSet, _options); 901return new AsnReader(_data.Slice(start, length), RuleSet, _options);
System.Net.Security (1)
src\libraries\Common\src\System\Security\Cryptography\Asn1Reader\AsnValueReader.cs (1)
28new AsnReader(s_singleByte, _ruleSet).ThrowIfNotEmpty();
System.Security.Cryptography (6)
src\libraries\Common\src\System\Security\Cryptography\Asn1Reader\AsnValueReader.cs (1)
28new AsnReader(s_singleByte, _ruleSet).ThrowIfNotEmpty();
src\libraries\Common\src\System\Security\Cryptography\EccKeyFormatHelper.cs (2)
316AsnReader primeReader = new AsnReader(specifiedParameters.FieldID.Parameters, AsnEncodingRules.BER); 334AsnReader char2Reader = new AsnReader(specifiedParameters.FieldID.Parameters, AsnEncodingRules.BER);
System\Security\Cryptography\X509Certificates\ManagedCertificateFinder.cs (1)
163AsnReader reader = new AsnReader(ext.RawData, AsnEncodingRules.DER);
System\Security\Cryptography\X509Certificates\X500NameEncoder.ManagedDecode.cs (1)
24AsnReader x500NameReader = new AsnReader(encodedName, AsnEncodingRules.DER);
System\Security\Cryptography\X509Certificates\X509EnhancedKeyUsageExtension.cs (1)
90AsnReader reader = new AsnReader(encoded, AsnEncodingRules.BER);
System.Security.Cryptography.Pkcs (6)
Internal\Cryptography\Pal\AnyOS\AsnHelpers.cs (1)
103AsnReader reader = new AsnReader(asn.Parameters.Value, AsnEncodingRules.BER);
Internal\Cryptography\Pal\AnyOS\ManagedPal.cs (1)
121AsnReader reader = new AsnReader(contentEncryptionAlgorithm.Parameters.Value, AsnEncodingRules.BER);
src\libraries\Common\src\System\Security\Cryptography\Asn1Reader\AsnValueReader.cs (1)
28new AsnReader(s_singleByte, _ruleSet).ThrowIfNotEmpty();
System\Security\Cryptography\Pkcs\CmsSignature.cs (1)
166AsnReader reader = new AsnReader(derSignature, AsnEncodingRules.DER);
System\Security\Cryptography\Pkcs\Rfc3161TimestampTokenInfo.cs (1)
258AsnReader reader = new AsnReader(source, AsnEncodingRules.DER);
System\Security\Cryptography\Pkcs\SignedCms.cs (1)
260AsnReader reader = new AsnReader(wrappedContent, AsnEncodingRules.BER);
61 references to AsnReader
InMemory.FunctionalTests (12)
src\Servers\Kestrel\shared\test\CertificateAuthority.cs (3)
676AsnReader reader = new AsnReader(certId, AsnEncodingRules.DER); 677AsnReader idReader = reader.ReadSequence(); 680AsnReader algIdReader = idReader.ReadSequence();
src\Servers\Kestrel\shared\test\RevocationResponder.cs (9)
335AsnReader reader = new AsnReader(requestBytes, AsnEncodingRules.DER); 336AsnReader request = reader.ReadSequence(); 339AsnReader tbsRequest = request.ReadSequence(); 352AsnReader versionReader = tbsRequest.ReadSequence(context0); 367AsnReader requestList = tbsRequest.ReadSequence(); 368AsnReader requestExtensions = null; 372AsnReader requestExtensionsWrapper = tbsRequest.ReadSequence(new Asn1Tag(TagClass.ContextSpecific, 2)); 379AsnReader firstRequest = requestList.ReadSequence(); 398AsnReader extension = requestExtensions.ReadSequence();
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (12)
src\Servers\Kestrel\shared\test\CertificateAuthority.cs (3)
676AsnReader reader = new AsnReader(certId, AsnEncodingRules.DER); 677AsnReader idReader = reader.ReadSequence(); 680AsnReader algIdReader = idReader.ReadSequence();
src\Servers\Kestrel\shared\test\RevocationResponder.cs (9)
335AsnReader reader = new AsnReader(requestBytes, AsnEncodingRules.DER); 336AsnReader request = reader.ReadSequence(); 339AsnReader tbsRequest = request.ReadSequence(); 352AsnReader versionReader = tbsRequest.ReadSequence(context0); 367AsnReader requestList = tbsRequest.ReadSequence(); 368AsnReader requestExtensions = null; 372AsnReader requestExtensionsWrapper = tbsRequest.ReadSequence(new Asn1Tag(TagClass.ContextSpecific, 2)); 379AsnReader firstRequest = requestList.ReadSequence(); 398AsnReader extension = requestExtensions.ReadSequence();
System.Formats.Asn1 (17)
System\Formats\Asn1\AsnDecoder.cs (3)
776/// Construct an <see cref="AsnReader"/> over <paramref name="data"/> with a given ruleset. 897public AsnReader Clone() => new AsnReader(_data, RuleSet, _options); 899private AsnReader CloneAtSlice(int start, int length)
System\Formats\Asn1\AsnDecoder.Sequence.cs (2)
133public AsnReader ReadSequence(Asn1Tag? expectedTag = null) 143AsnReader ret = CloneAtSlice(contentStart, contentLength);
System\Formats\Asn1\AsnDecoder.SetOf.cs (3)
167public AsnReader ReadSetOf(Asn1Tag? expectedTag = null) 210public AsnReader ReadSetOf(bool skipSortOrderValidation, Asn1Tag? expectedTag = null) 221AsnReader ret = CloneAtSlice(contentOffset, contentLength);
System\Formats\Asn1\AsnEncodingRules.cs (1)
7/// Specifies the encoding ruleset for an <see cref="AsnReader"/> or <see cref="AsnWriter"/>.
System\Formats\Asn1\AsnReaderOptions.cs (1)
7/// Specifies options that modify the behavior of an <see cref="AsnReader"/>.
System\Formats\Asn1\AsnWriter.BitString.cs (3)
80if (bitString.Length >= AsnReader.MaxCERSegmentSize) 108const int MaxCERSegmentSize = AsnReader.MaxCERSegmentSize; 144const int MaxCERSegmentSize = AsnReader.MaxCERSegmentSize;
System\Formats\Asn1\AsnWriter.OctetString.cs (2)
88if (octetString.Length > AsnReader.MaxCERSegmentSize) 105const int MaxCERSegmentSize = AsnReader.MaxCERSegmentSize;
System\Formats\Asn1\AsnWriter.Text.cs (2)
92if (size > AsnReader.MaxCERSegmentSize) 118Debug.Assert(size > AsnReader.MaxCERSegmentSize);
System.Security.Cryptography (14)
src\libraries\Common\src\System\Security\Cryptography\EccKeyFormatHelper.cs (4)
316AsnReader primeReader = new AsnReader(specifiedParameters.FieldID.Parameters, AsnEncodingRules.BER); 334AsnReader char2Reader = new AsnReader(specifiedParameters.FieldID.Parameters, AsnEncodingRules.BER); 335AsnReader innerReader = char2Reader.ReadSequence(); 371AsnReader pentanomialReader = innerReader.ReadSequence();
System\Security\Cryptography\X509Certificates\ManagedCertificateFinder.cs (1)
163AsnReader reader = new AsnReader(ext.RawData, AsnEncodingRules.DER);
System\Security\Cryptography\X509Certificates\X500DirectoryStringHelper.cs (1)
10internal static string ReadAnyAsnString(this AsnReader tavReader)
System\Security\Cryptography\X509Certificates\X500NameEncoder.ManagedDecode.cs (6)
24AsnReader x500NameReader = new AsnReader(encodedName, AsnEncodingRules.DER); 25AsnReader x500NameSequenceReader = x500NameReader.ReadSequence(); 26var rdnReaders = new List<AsnReader>(); 89AsnReader rdnReader = rdnReaders[loc]; 94AsnReader tavReader = rdnReader.ReadSequence(); 149private static string ReadAttributeValue(AsnReader tavReader, out bool binaryFallback)
System\Security\Cryptography\X509Certificates\X509EnhancedKeyUsageExtension.cs (2)
90AsnReader reader = new AsnReader(encoded, AsnEncodingRules.BER); 91AsnReader sequenceReader = reader.ReadSequence();
System.Security.Cryptography.Pkcs (6)
Internal\Cryptography\Pal\AnyOS\AsnHelpers.cs (1)
103AsnReader reader = new AsnReader(asn.Parameters.Value, AsnEncodingRules.BER);
Internal\Cryptography\Pal\AnyOS\ManagedPal.cs (1)
121AsnReader reader = new AsnReader(contentEncryptionAlgorithm.Parameters.Value, AsnEncodingRules.BER);
System\Security\Cryptography\Pkcs\CmsSignature.cs (2)
166AsnReader reader = new AsnReader(derSignature, AsnEncodingRules.DER); 167AsnReader sequence = reader.ReadSequence();
System\Security\Cryptography\Pkcs\Rfc3161TimestampTokenInfo.cs (1)
258AsnReader reader = new AsnReader(source, AsnEncodingRules.DER);
System\Security\Cryptography\Pkcs\SignedCms.cs (1)
260AsnReader reader = new AsnReader(wrappedContent, AsnEncodingRules.BER);