120 references to AsnDecoder
System.Formats.Asn1 (43)
System\Formats\Asn1\AsnDecoder.BitString.cs (4)
721bool ret = AsnDecoder.TryReadPrimitiveBitString( 731value = AsnDecoder.Slice(_data, span); 787bool ret = AsnDecoder.TryReadBitString( 839byte[] ret = AsnDecoder.ReadBitString(
System\Formats\Asn1\AsnDecoder.Boolean.cs (1)
114bool ret = AsnDecoder.ReadBoolean(_data.Span, RuleSet, out int bytesConsumed, expectedTag);
System\Formats\Asn1\AsnDecoder.cs (4)
753internal const int MaxCERSegmentSize = AsnDecoder.MaxCERSegmentSize; 793AsnDecoder.CheckEncodingRules(ruleSet); 846AsnDecoder.ReadEncodedValue(_data.Span, RuleSet, out _, out _, out int bytesConsumed); 864AsnDecoder.ReadEncodedValue(
System\Formats\Asn1\AsnDecoder.Enumerated.cs (4)
298AsnDecoder.ReadEnumeratedBytes(_data.Span, RuleSet, out int consumed, expectedTag); 300ReadOnlyMemory<byte> memory = AsnDecoder.Slice(_data, bytes); 352TEnum ret = AsnDecoder.ReadEnumeratedValue<TEnum>(_data.Span, RuleSet, out int consumed, expectedTag); 406Enum ret = AsnDecoder.ReadEnumeratedValue(_data.Span, RuleSet, enumType, out int consumed, expectedTag);
System\Formats\Asn1\AsnDecoder.GeneralizedTime.cs (1)
433DateTimeOffset ret = AsnDecoder.ReadGeneralizedTime(_data.Span, RuleSet, out int consumed, expectedTag);
System\Formats\Asn1\AsnDecoder.Integer.cs (7)
550AsnDecoder.ReadIntegerBytes(_data.Span, RuleSet, out int consumed, expectedTag); 552ReadOnlyMemory<byte> ret = AsnDecoder.Slice(_data, bytes); 586BigInteger ret = AsnDecoder.ReadInteger(_data.Span, RuleSet, out int consumed, expectedTag); 625bool ret = AsnDecoder.TryReadInt32(_data.Span, RuleSet, out value, out int read, expectedTag); 665bool ret = AsnDecoder.TryReadUInt32(_data.Span, RuleSet, out value, out int read, expectedTag); 704bool ret = AsnDecoder.TryReadInt64(_data.Span, RuleSet, out value, out int read, expectedTag); 744bool ret = AsnDecoder.TryReadUInt64(_data.Span, RuleSet, out value, out int read, expectedTag);
System\Formats\Asn1\AsnDecoder.NamedBitList.cs (3)
486TFlagsEnum ret = AsnDecoder.ReadNamedBitListValue<TFlagsEnum>( 540Enum ret = AsnDecoder.ReadNamedBitListValue( 578BitArray ret = AsnDecoder.ReadNamedBitList(_data.Span, RuleSet, out int consumed, expectedTag);
System\Formats\Asn1\AsnDecoder.Null.cs (1)
92AsnDecoder.ReadNull(_data.Span, RuleSet, out int consumed, expectedTag);
System\Formats\Asn1\AsnDecoder.OctetString.cs (4)
577bool ret = AsnDecoder.TryReadOctetString( 624byte[] ret = AsnDecoder.ReadOctetString(_data.Span, RuleSet, out int consumed, expectedTag); 662bool ret = AsnDecoder.TryReadPrimitiveOctetString( 671contents = AsnDecoder.Slice(_data, span);
System\Formats\Asn1\AsnDecoder.Oid.cs (1)
321AsnDecoder.ReadObjectIdentifier(_data.Span, RuleSet, out int consumed, expectedTag);
System\Formats\Asn1\AsnDecoder.Sequence.cs (1)
135AsnDecoder.ReadSequence(
System\Formats\Asn1\AsnDecoder.SetOf.cs (1)
212AsnDecoder.ReadSetOf(
System\Formats\Asn1\AsnDecoder.Text.cs (5)
589bool ret = AsnDecoder.TryReadPrimitiveCharacterStringBytes( 598contents = AsnDecoder.Slice(_data, span); 651bool ret = AsnDecoder.TryReadCharacterStringBytes( 720bool ret = AsnDecoder.TryReadCharacterString( 776string ret = AsnDecoder.ReadCharacterString(
System\Formats\Asn1\AsnDecoder.UtcTime.cs (2)
274DateTimeOffset ret = AsnDecoder.ReadUtcTime( 319AsnDecoder.ReadUtcTime(_data.Span, RuleSet, out int consumed, twoDigitYearMax, expectedTag);
System\Formats\Asn1\AsnWriter.cs (3)
444bool read = AsnDecoder.TryReadEncodedValue( 532if (RuleSet != AsnEncodingRules.CER || containedLength <= AsnDecoder.MaxCERSegmentSize) 544AsnDecoder.MaxCERSegmentSize,
System\Formats\Asn1\AsnWriter.NamedBitList.cs (1)
196AsnDecoder.ReverseBitsPerByte(valueSpan);
System.Net.Security (18)
src\libraries\Common\src\System\Security\Cryptography\Asn1Reader\AsnValueReader.cs (18)
39AsnDecoder.ReadEncodedValue( 51AsnDecoder.ReadEncodedValue(_span, _ruleSet, out _, out _, out int consumed); 64bool ret = AsnDecoder.ReadBoolean(_span, _ruleSet, out int consumed, expectedTag); 71BigInteger ret = AsnDecoder.ReadInteger(_span, _ruleSet, out int consumed, expectedTag); 78bool ret = AsnDecoder.TryReadInt32(_span, _ruleSet, out value, out int consumed, expectedTag); 85ReadOnlySpan<byte> ret = AsnDecoder.ReadIntegerBytes(_span, _ruleSet, out int consumed, expectedTag); 95bool ret = AsnDecoder.TryReadPrimitiveBitString( 109byte[] ret = AsnDecoder.ReadBitString( 122TFlagsEnum ret = AsnDecoder.ReadNamedBitListValue<TFlagsEnum>(_span, _ruleSet, out int consumed, expectedTag); 131bool ret = AsnDecoder.TryReadPrimitiveOctetString( 144byte[] ret = AsnDecoder.ReadOctetString( 156string ret = AsnDecoder.ReadObjectIdentifier(_span, _ruleSet, out int consumed, expectedTag); 163AsnDecoder.ReadSequence( 178AsnDecoder.ReadSetOf( 194DateTimeOffset ret = AsnDecoder.ReadUtcTime(_span, _ruleSet, out int consumed, expectedTag: expectedTag); 201DateTimeOffset ret = AsnDecoder.ReadGeneralizedTime(_span, _ruleSet, out int consumed, expectedTag); 208string ret = AsnDecoder.ReadCharacterString(_span, _ruleSet, encodingType, out int consumed, expectedTag); 215TEnum ret = AsnDecoder.ReadEnumeratedValue<TEnum>(_span, _ruleSet, out int consumed, expectedTag);
System.Security.Cryptography (30)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.ASN1.GetIntegerBytes.cs (1)
40return AsnDecoder.ReadIntegerBytes(
src\libraries\Common\src\System\Security\Cryptography\Asn1Reader\AsnValueReader.cs (18)
39AsnDecoder.ReadEncodedValue( 51AsnDecoder.ReadEncodedValue(_span, _ruleSet, out _, out _, out int consumed); 64bool ret = AsnDecoder.ReadBoolean(_span, _ruleSet, out int consumed, expectedTag); 71BigInteger ret = AsnDecoder.ReadInteger(_span, _ruleSet, out int consumed, expectedTag); 78bool ret = AsnDecoder.TryReadInt32(_span, _ruleSet, out value, out int consumed, expectedTag); 85ReadOnlySpan<byte> ret = AsnDecoder.ReadIntegerBytes(_span, _ruleSet, out int consumed, expectedTag); 95bool ret = AsnDecoder.TryReadPrimitiveBitString( 109byte[] ret = AsnDecoder.ReadBitString( 122TFlagsEnum ret = AsnDecoder.ReadNamedBitListValue<TFlagsEnum>(_span, _ruleSet, out int consumed, expectedTag); 131bool ret = AsnDecoder.TryReadPrimitiveOctetString( 144byte[] ret = AsnDecoder.ReadOctetString( 156string ret = AsnDecoder.ReadObjectIdentifier(_span, _ruleSet, out int consumed, expectedTag); 163AsnDecoder.ReadSequence( 178AsnDecoder.ReadSetOf( 194DateTimeOffset ret = AsnDecoder.ReadUtcTime(_span, _ruleSet, out int consumed, expectedTag: expectedTag); 201DateTimeOffset ret = AsnDecoder.ReadGeneralizedTime(_span, _ruleSet, out int consumed, expectedTag); 208string ret = AsnDecoder.ReadCharacterString(_span, _ruleSet, encodingType, out int consumed, expectedTag); 215TEnum ret = AsnDecoder.ReadEnumeratedValue<TEnum>(_span, _ruleSet, out int consumed, expectedTag);
src\libraries\Common\src\System\Security\Cryptography\DSAKeyFormatHelper.cs (2)
42ReadOnlySpan<byte> xSpan = AsnDecoder.ReadIntegerBytes( 76y = AsnDecoder.ReadInteger(
src\libraries\Common\src\System\Security\Cryptography\EccKeyFormatHelper.cs (1)
82AsnDecoder.ReadEncodedValue(
src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (1)
704bool gotIv = AsnDecoder.TryReadOctetString(
src\libraries\Common\src\System\Security\Cryptography\RSAOpenSsl.cs (2)
492AsnDecoder.ReadEncodedValue( 608AsnDecoder.ReadEncodedValue(
System\Security\Cryptography\Helpers.cs (2)
159if (AsnDecoder.TryReadPrimitiveOctetString( 178byte[] ret = AsnDecoder.ReadOctetString(input, AsnEncodingRules.BER, out consumed);
System\Security\Cryptography\RSA.cs (2)
895AsnDecoder.ReadEncodedValue( 925AsnDecoder.ReadEncodedValue(
System\Security\Cryptography\X509Certificates\X509SubjectKeyIdentifierExtension.cs (1)
106bool gotContents = AsnDecoder.TryReadPrimitiveOctetString(
System.Security.Cryptography.Pkcs (29)
Internal\Cryptography\Pal\AnyOS\ManagedPal.Encrypt.cs (1)
182AsnDecoder.ReadEncodedValue(
Internal\Cryptography\PkcsHelpers.cs (7)
468if (!AsnDecoder.TryReadEncodedValue(source, AsnEncodingRules.BER, out _, out _, out _, out int consumed) || 477if (!AsnDecoder.TryReadEncodedValue(source, AsnEncodingRules.BER, out _, out _, out _, out int consumed)) 491if (AsnDecoder.TryReadPrimitiveOctetString( 510byte[] ret = AsnDecoder.ReadOctetString(input, AsnEncodingRules.BER, out consumed); 530byte[] ret = AsnDecoder.ReadOctetString(encodedOctets.Span, AsnEncodingRules.BER, out int consumed); 587DateTimeOffset value = AsnDecoder.ReadUtcTime( 616string value = AsnDecoder.ReadObjectIdentifier(
src\libraries\Common\src\System\Security\Cryptography\Asn1Reader\AsnValueReader.cs (18)
39AsnDecoder.ReadEncodedValue( 51AsnDecoder.ReadEncodedValue(_span, _ruleSet, out _, out _, out int consumed); 64bool ret = AsnDecoder.ReadBoolean(_span, _ruleSet, out int consumed, expectedTag); 71BigInteger ret = AsnDecoder.ReadInteger(_span, _ruleSet, out int consumed, expectedTag); 78bool ret = AsnDecoder.TryReadInt32(_span, _ruleSet, out value, out int consumed, expectedTag); 85ReadOnlySpan<byte> ret = AsnDecoder.ReadIntegerBytes(_span, _ruleSet, out int consumed, expectedTag); 95bool ret = AsnDecoder.TryReadPrimitiveBitString( 109byte[] ret = AsnDecoder.ReadBitString( 122TFlagsEnum ret = AsnDecoder.ReadNamedBitListValue<TFlagsEnum>(_span, _ruleSet, out int consumed, expectedTag); 131bool ret = AsnDecoder.TryReadPrimitiveOctetString( 144byte[] ret = AsnDecoder.ReadOctetString( 156string ret = AsnDecoder.ReadObjectIdentifier(_span, _ruleSet, out int consumed, expectedTag); 163AsnDecoder.ReadSequence( 178AsnDecoder.ReadSetOf( 194DateTimeOffset ret = AsnDecoder.ReadUtcTime(_span, _ruleSet, out int consumed, expectedTag: expectedTag); 201DateTimeOffset ret = AsnDecoder.ReadGeneralizedTime(_span, _ruleSet, out int consumed, expectedTag); 208string ret = AsnDecoder.ReadCharacterString(_span, _ruleSet, encodingType, out int consumed, expectedTag); 215TEnum ret = AsnDecoder.ReadEnumeratedValue<TEnum>(_span, _ruleSet, out int consumed, expectedTag);
src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (1)
704bool gotIv = AsnDecoder.TryReadOctetString(
System\Security\Cryptography\Pkcs\Pkcs12CertBag.cs (1)
98if (!AsnDecoder.TryReadEncodedValue(
System\Security\Cryptography\Pkcs\SignedCms.cs (1)
449AsnDecoder.ReadEncodedValue(