src\libraries\Common\src\System\Security\Cryptography\Asn1\AlgorithmIdentifierAsn.xml.cs (14)
19Encode(writer, Asn1Tag.Sequence);
22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
52return Decode(Asn1Tag.Sequence, encoded, ruleSet);
55internal static AlgorithmIdentifierAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
73Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded);
76internal static void Decode(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out AlgorithmIdentifierAsn decoded)
88private static void DecodeCore(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out AlgorithmIdentifierAsn decoded)
128Encode(writer, Asn1Tag.Sequence);
131internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
162Decode(Asn1Tag.Sequence, encoded, ruleSet, out decoded);
165internal static void Decode(Asn1Tag expectedTag, ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueAlgorithmIdentifierAsn decoded)
182Decode(ref reader, Asn1Tag.Sequence, out decoded);
185internal static void Decode(scoped ref ValueAsnReader reader, Asn1Tag expectedTag, out ValueAlgorithmIdentifierAsn decoded)
197private static void DecodeCore(scoped ref ValueAsnReader reader, Asn1Tag expectedTag, out ValueAlgorithmIdentifierAsn decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\AttributeAsn.xml.cs (15)
20Encode(writer, Asn1Tag.Sequence);
23internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
55return Decode(Asn1Tag.Sequence, encoded, ruleSet);
58internal static AttributeAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
76Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded);
79internal static void Decode(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out AttributeAsn decoded)
91private static void DecodeCore(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out AttributeAsn decoded)
131Encode(writer, Asn1Tag.Sequence);
134internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
160Decode(Asn1Tag.Sequence, encoded, ruleSet, out decoded);
163internal static void Decode(Asn1Tag expectedTag, ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueAttributeAsn decoded)
180Decode(ref reader, Asn1Tag.Sequence, out decoded);
183internal static void Decode(scoped ref ValueAsnReader reader, Asn1Tag expectedTag, out ValueAttributeAsn decoded)
195private static void DecodeCore(scoped ref ValueAsnReader reader, Asn1Tag expectedTag, out ValueAttributeAsn decoded)
202if (!sequenceReader.PeekTag().HasSameClassAndValue(Asn1Tag.SetOf))
src\libraries\Common\src\System\Security\Cryptography\Asn1\CurveAsn.xml.cs (8)
31Encode(writer, Asn1Tag.Sequence);
34internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
51Decode(Asn1Tag.Sequence, encoded, ruleSet, out decoded);
54internal static void Decode(Asn1Tag expectedTag, ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueCurveAsn decoded)
71Decode(ref reader, Asn1Tag.Sequence, out decoded);
74internal static void Decode(scoped ref ValueAsnReader reader, Asn1Tag expectedTag, out ValueCurveAsn decoded)
86private static void DecodeCore(scoped ref ValueAsnReader reader, Asn1Tag expectedTag, out ValueCurveAsn decoded)
113if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(Asn1Tag.PrimitiveBitString))
src\libraries\Common\src\System\Security\Cryptography\Asn1\DigestInfoAsn.xml.cs (14)
19Encode(writer, Asn1Tag.Sequence);
22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
33return Decode(Asn1Tag.Sequence, encoded, ruleSet);
36internal static DigestInfoAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
54Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded);
57internal static void Decode(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out DigestInfoAsn decoded)
69private static void DecodeCore(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out DigestInfoAsn decoded)
101Encode(writer, Asn1Tag.Sequence);
104internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
115Decode(Asn1Tag.Sequence, encoded, ruleSet, out decoded);
118internal static void Decode(Asn1Tag expectedTag, ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueDigestInfoAsn decoded)
135Decode(ref reader, Asn1Tag.Sequence, out decoded);
138internal static void Decode(scoped ref ValueAsnReader reader, Asn1Tag expectedTag, out ValueDigestInfoAsn decoded)
150private static void DecodeCore(scoped ref ValueAsnReader reader, Asn1Tag expectedTag, out ValueDigestInfoAsn decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\DssParms.xml.cs (7)
20Encode(writer, Asn1Tag.Sequence);
23internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
35Decode(Asn1Tag.Sequence, encoded, ruleSet, out decoded);
38internal static void Decode(Asn1Tag expectedTag, ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueDssParms decoded)
55Decode(ref reader, Asn1Tag.Sequence, out decoded);
58internal static void Decode(scoped ref ValueAsnReader reader, Asn1Tag expectedTag, out ValueDssParms decoded)
70private static void DecodeCore(scoped ref ValueAsnReader reader, Asn1Tag expectedTag, out ValueDssParms decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\ECPrivateKey.xml.cs (7)
43Encode(writer, Asn1Tag.Sequence);
46internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
73Decode(Asn1Tag.Sequence, encoded, ruleSet, out decoded);
76internal static void Decode(Asn1Tag expectedTag, ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueECPrivateKey decoded)
93Decode(ref reader, Asn1Tag.Sequence, out decoded);
96internal static void Decode(scoped ref ValueAsnReader reader, Asn1Tag expectedTag, out ValueECPrivateKey decoded)
108private static void DecodeCore(scoped ref ValueAsnReader reader, Asn1Tag expectedTag, out ValueECPrivateKey decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\EdiPartyNameAsn.xml.cs (7)
19Encode(writer, Asn1Tag.Sequence);
22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
42return Decode(Asn1Tag.Sequence, encoded, ruleSet);
45internal static EdiPartyNameAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
63Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded);
66internal static void Decode(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out EdiPartyNameAsn decoded)
78private static void DecodeCore(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out EdiPartyNameAsn decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\EncryptedPrivateKeyInfoAsn.xml.cs (14)
19Encode(writer, Asn1Tag.Sequence);
22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
33return Decode(Asn1Tag.Sequence, encoded, ruleSet);
36internal static EncryptedPrivateKeyInfoAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
54Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded);
57internal static void Decode(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out EncryptedPrivateKeyInfoAsn decoded)
69private static void DecodeCore(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out EncryptedPrivateKeyInfoAsn decoded)
101Encode(writer, Asn1Tag.Sequence);
104internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
115Decode(Asn1Tag.Sequence, encoded, ruleSet, out decoded);
118internal static void Decode(Asn1Tag expectedTag, ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueEncryptedPrivateKeyInfoAsn decoded)
135Decode(ref reader, Asn1Tag.Sequence, out decoded);
138internal static void Decode(scoped ref ValueAsnReader reader, Asn1Tag expectedTag, out ValueEncryptedPrivateKeyInfoAsn decoded)
150private static void DecodeCore(scoped ref ValueAsnReader reader, Asn1Tag expectedTag, out ValueEncryptedPrivateKeyInfoAsn decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\FieldID.xml.cs (7)
19Encode(writer, Asn1Tag.Sequence);
22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
48Decode(Asn1Tag.Sequence, encoded, ruleSet, out decoded);
51internal static void Decode(Asn1Tag expectedTag, ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueFieldID decoded)
68Decode(ref reader, Asn1Tag.Sequence, out decoded);
71internal static void Decode(scoped ref ValueAsnReader reader, Asn1Tag expectedTag, out ValueFieldID decoded)
83private static void DecodeCore(scoped ref ValueAsnReader reader, Asn1Tag expectedTag, out ValueFieldID decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\MLDsaPrivateKeyBothAsn.xml.cs (7)
19Encode(writer, Asn1Tag.Sequence);
22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
33Decode(Asn1Tag.Sequence, encoded, ruleSet, out decoded);
36internal static void Decode(Asn1Tag expectedTag, ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueMLDsaPrivateKeyBothAsn decoded)
53Decode(ref reader, Asn1Tag.Sequence, out decoded);
56internal static void Decode(scoped ref ValueAsnReader reader, Asn1Tag expectedTag, out ValueMLDsaPrivateKeyBothAsn decoded)
68private static void DecodeCore(scoped ref ValueAsnReader reader, Asn1Tag expectedTag, out ValueMLDsaPrivateKeyBothAsn decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\MLKemPrivateKeyBothAsn.xml.cs (7)
19Encode(writer, Asn1Tag.Sequence);
22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
33Decode(Asn1Tag.Sequence, encoded, ruleSet, out decoded);
36internal static void Decode(Asn1Tag expectedTag, ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueMLKemPrivateKeyBothAsn decoded)
53Decode(ref reader, Asn1Tag.Sequence, out decoded);
56internal static void Decode(scoped ref ValueAsnReader reader, Asn1Tag expectedTag, out ValueMLKemPrivateKeyBothAsn decoded)
68private static void DecodeCore(scoped ref ValueAsnReader reader, Asn1Tag expectedTag, out ValueMLKemPrivateKeyBothAsn decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\OtherNameAsn.xml.cs (7)
19Encode(writer, Asn1Tag.Sequence);
22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
49return Decode(Asn1Tag.Sequence, encoded, ruleSet);
52internal static OtherNameAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
70Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded);
73internal static void Decode(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out OtherNameAsn decoded)
85private static void DecodeCore(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out OtherNameAsn decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\PBEParameter.xml.cs (7)
19Encode(writer, Asn1Tag.Sequence);
22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
33Decode(Asn1Tag.Sequence, encoded, ruleSet, out decoded);
36internal static void Decode(Asn1Tag expectedTag, ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValuePBEParameter decoded)
53Decode(ref reader, Asn1Tag.Sequence, out decoded);
56internal static void Decode(scoped ref ValueAsnReader reader, Asn1Tag expectedTag, out ValuePBEParameter decoded)
68private static void DecodeCore(scoped ref ValueAsnReader reader, Asn1Tag expectedTag, out ValuePBEParameter decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\PBES2Params.xml.cs (7)
19Encode(writer, Asn1Tag.Sequence);
22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
33Decode(Asn1Tag.Sequence, encoded, ruleSet, out decoded);
36internal static void Decode(Asn1Tag expectedTag, ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValuePBES2Params decoded)
53Decode(ref reader, Asn1Tag.Sequence, out decoded);
56internal static void Decode(scoped ref ValueAsnReader reader, Asn1Tag expectedTag, out ValuePBES2Params decoded)
68private static void DecodeCore(scoped ref ValueAsnReader reader, Asn1Tag expectedTag, out ValuePBES2Params decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pbkdf2Params.xml.cs (9)
38Encode(writer, Asn1Tag.Sequence);
41internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
70Decode(Asn1Tag.Sequence, encoded, ruleSet, out decoded);
73internal static void Decode(Asn1Tag expectedTag, ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValuePbkdf2Params decoded)
90Decode(ref reader, Asn1Tag.Sequence, out decoded);
93internal static void Decode(scoped ref ValueAsnReader reader, Asn1Tag expectedTag, out ValuePbkdf2Params decoded)
105private static void DecodeCore(scoped ref ValueAsnReader reader, Asn1Tag expectedTag, out ValuePbkdf2Params decoded)
119if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(Asn1Tag.Integer))
134if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(Asn1Tag.Sequence))
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\CertBagAsn.xml.cs (7)
19Encode(writer, Asn1Tag.Sequence);
22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
49return Decode(Asn1Tag.Sequence, encoded, ruleSet);
52internal static CertBagAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
70Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded);
73internal static void Decode(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out CertBagAsn decoded)
85private static void DecodeCore(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out CertBagAsn decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\MacData.xml.cs (16)
42Encode(writer, Asn1Tag.Sequence);
45internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
69return Decode(Asn1Tag.Sequence, encoded, ruleSet);
72internal static MacData Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
90Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded);
93internal static void Decode(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out MacData decoded)
105private static void DecodeCore(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out MacData decoded)
126if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(Asn1Tag.Integer))
160Encode(writer, Asn1Tag.Sequence);
163internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
187Decode(Asn1Tag.Sequence, encoded, ruleSet, out decoded);
190internal static void Decode(Asn1Tag expectedTag, ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueMacData decoded)
207Decode(ref reader, Asn1Tag.Sequence, out decoded);
210internal static void Decode(scoped ref ValueAsnReader reader, Asn1Tag expectedTag, out ValueMacData decoded)
222private static void DecodeCore(scoped ref ValueAsnReader reader, Asn1Tag expectedTag, out ValueMacData decoded)
241if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(Asn1Tag.Integer))
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.xml.cs (16)
20Encode(writer, Asn1Tag.Sequence);
23internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
40return Decode(Asn1Tag.Sequence, encoded, ruleSet);
43internal static PfxAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
61Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded);
64internal static void Decode(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out PfxAsn decoded)
76private static void DecodeCore(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out PfxAsn decoded)
89if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(Asn1Tag.Sequence))
122Encode(writer, Asn1Tag.Sequence);
125internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
142Decode(Asn1Tag.Sequence, encoded, ruleSet, out decoded);
145internal static void Decode(Asn1Tag expectedTag, ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValuePfxAsn decoded)
162Decode(ref reader, Asn1Tag.Sequence, out decoded);
165internal static void Decode(scoped ref ValueAsnReader reader, Asn1Tag expectedTag, out ValuePfxAsn decoded)
177private static void DecodeCore(scoped ref ValueAsnReader reader, Asn1Tag expectedTag, out ValuePfxAsn decoded)
190if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(Asn1Tag.Sequence))
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\SafeBagAsn.xml.cs (8)
21Encode(writer, Asn1Tag.Sequence);
24internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
64return Decode(Asn1Tag.Sequence, encoded, ruleSet);
67internal static SafeBagAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
85Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded);
88internal static void Decode(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out SafeBagAsn decoded)
100private static void DecodeCore(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out SafeBagAsn decoded)
118if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(Asn1Tag.SetOf))
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\SecretBagAsn.xml.cs (7)
19Encode(writer, Asn1Tag.Sequence);
22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
49return Decode(Asn1Tag.Sequence, encoded, ruleSet);
52internal static SecretBagAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
70Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded);
73internal static void Decode(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out SecretBagAsn decoded)
85private static void DecodeCore(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out SecretBagAsn decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\CertificateChoiceAsn.xml.cs (11)
16var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
17Action<Asn1Tag, string> ensureUniqueTag = (tag, fieldName) =>
68if (!Asn1Tag.TryDecode(Certificate.Value.Span, out Asn1Tag validateTag, out _) ||
93if (!Asn1Tag.TryDecode(ExtendedCertificate.Value.Span, out Asn1Tag validateTag, out _) ||
118if (!Asn1Tag.TryDecode(AttributeCertificateV1.Value.Span, out Asn1Tag validateTag, out _) ||
143if (!Asn1Tag.TryDecode(AttributeCertificateV2.Value.Span, out Asn1Tag validateTag, out _) ||
207Asn1Tag tag = reader.PeekTag();
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\ContentInfoAsn.xml.cs (14)
19Encode(writer, Asn1Tag.Sequence);
22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
49return Decode(Asn1Tag.Sequence, encoded, ruleSet);
52internal static ContentInfoAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
70Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded);
73internal static void Decode(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out ContentInfoAsn decoded)
85private static void DecodeCore(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out ContentInfoAsn decoded)
114Encode(writer, Asn1Tag.Sequence);
117internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
145Decode(Asn1Tag.Sequence, encoded, ruleSet, out decoded);
148internal static void Decode(Asn1Tag expectedTag, ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueContentInfoAsn decoded)
165Decode(ref reader, Asn1Tag.Sequence, out decoded);
168internal static void Decode(scoped ref ValueAsnReader reader, Asn1Tag expectedTag, out ValueContentInfoAsn decoded)
180private static void DecodeCore(scoped ref ValueAsnReader reader, Asn1Tag expectedTag, out ValueContentInfoAsn decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\EncapsulatedContentInfoAsn.xml.cs (7)
19Encode(writer, Asn1Tag.Sequence);
22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
54return Decode(Asn1Tag.Sequence, encoded, ruleSet);
57internal static EncapsulatedContentInfoAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
75Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded);
78internal static void Decode(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out EncapsulatedContentInfoAsn decoded)
90private static void DecodeCore(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out EncapsulatedContentInfoAsn decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\EncryptedContentInfoAsn.xml.cs (7)
20Encode(writer, Asn1Tag.Sequence);
23internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
47return Decode(Asn1Tag.Sequence, encoded, ruleSet);
50internal static EncryptedContentInfoAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
68Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded);
71internal static void Decode(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out EncryptedContentInfoAsn decoded)
83private static void DecodeCore(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out EncryptedContentInfoAsn decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\EncryptedDataAsn.xml.cs (7)
21Encode(writer, Asn1Tag.Sequence);
24internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
48return Decode(Asn1Tag.Sequence, encoded, ruleSet);
51internal static EncryptedDataAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
69Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded);
72internal static void Decode(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out EncryptedDataAsn decoded)
84private static void DecodeCore(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out EncryptedDataAsn decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\IssuerAndSerialNumberAsn.xml.cs (9)
19Encode(writer, Asn1Tag.Sequence);
22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
28if (!Asn1Tag.TryDecode(Issuer.Span, out Asn1Tag validateTag, out _) ||
49return Decode(Asn1Tag.Sequence, encoded, ruleSet);
52internal static IssuerAndSerialNumberAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
70Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded);
73internal static void Decode(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out IssuerAndSerialNumberAsn decoded)
85private static void DecodeCore(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out IssuerAndSerialNumberAsn decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\OtherCertificateFormat.xml.cs (7)
19Encode(writer, Asn1Tag.Sequence);
22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
47return Decode(Asn1Tag.Sequence, encoded, ruleSet);
50internal static OtherCertificateFormat Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
68Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded);
71internal static void Decode(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out OtherCertificateFormat decoded)
83private static void DecodeCore(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out OtherCertificateFormat decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\SignedDataAsn.xml.cs (7)
24Encode(writer, Asn1Tag.Sequence);
27internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
87return Decode(Asn1Tag.Sequence, encoded, ruleSet);
90internal static SignedDataAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
108Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded);
111internal static void Decode(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out SignedDataAsn decoded)
123private static void DecodeCore(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out SignedDataAsn decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\SignerInfoAsn.xml.cs (9)
25Encode(writer, Asn1Tag.Sequence);
28internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
40if (!Asn1Tag.TryDecode(SignedAttributes.Value.Span, out Asn1Tag validateTag, out _) ||
77return Decode(Asn1Tag.Sequence, encoded, ruleSet);
80internal static SignerInfoAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
98Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded);
101internal static void Decode(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out SignerInfoAsn decoded)
113private static void DecodeCore(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out SignerInfoAsn decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\PrivateKeyInfoAsn.xml.cs (14)
22Encode(writer, Asn1Tag.Sequence);
25internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
50return Decode(Asn1Tag.Sequence, encoded, ruleSet);
53internal static PrivateKeyInfoAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
71Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded);
74internal static void Decode(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out PrivateKeyInfoAsn decoded)
86private static void DecodeCore(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out PrivateKeyInfoAsn decoded)
159Encode(writer, Asn1Tag.Sequence);
162internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
188Decode(Asn1Tag.Sequence, encoded, ruleSet, out decoded);
191internal static void Decode(Asn1Tag expectedTag, ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValuePrivateKeyInfoAsn decoded)
208Decode(ref reader, Asn1Tag.Sequence, out decoded);
211internal static void Decode(scoped ref ValueAsnReader reader, Asn1Tag expectedTag, out ValuePrivateKeyInfoAsn decoded)
223private static void DecodeCore(scoped ref ValueAsnReader reader, Asn1Tag expectedTag, out ValuePrivateKeyInfoAsn decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\PssParamsAsn.xml.cs (7)
66Encode(writer, Asn1Tag.Sequence);
69internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
136Decode(Asn1Tag.Sequence, encoded, ruleSet, out decoded);
139internal static void Decode(Asn1Tag expectedTag, ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValuePssParamsAsn decoded)
156Decode(ref reader, Asn1Tag.Sequence, out decoded);
159internal static void Decode(scoped ref ValueAsnReader reader, Asn1Tag expectedTag, out ValuePssParamsAsn decoded)
171private static void DecodeCore(scoped ref ValueAsnReader reader, Asn1Tag expectedTag, out ValuePssParamsAsn decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\Rc2CbcParameters.xml.cs (14)
19Encode(writer, Asn1Tag.Sequence);
22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
33return Decode(Asn1Tag.Sequence, encoded, ruleSet);
36internal static Rc2CbcParameters Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
54Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded);
57internal static void Decode(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out Rc2CbcParameters decoded)
69private static void DecodeCore(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out Rc2CbcParameters decoded)
106Encode(writer, Asn1Tag.Sequence);
109internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
120Decode(Asn1Tag.Sequence, encoded, ruleSet, out decoded);
123internal static void Decode(Asn1Tag expectedTag, ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueRc2CbcParameters decoded)
140Decode(ref reader, Asn1Tag.Sequence, out decoded);
143internal static void Decode(scoped ref ValueAsnReader reader, Asn1Tag expectedTag, out ValueRc2CbcParameters decoded)
155private static void DecodeCore(scoped ref ValueAsnReader reader, Asn1Tag expectedTag, out ValueRc2CbcParameters decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\RSAPrivateKeyAsn.xml.cs (7)
26Encode(writer, Asn1Tag.Sequence);
29internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
47Decode(Asn1Tag.Sequence, encoded, ruleSet, out decoded);
50internal static void Decode(Asn1Tag expectedTag, ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueRSAPrivateKeyAsn decoded)
67Decode(ref reader, Asn1Tag.Sequence, out decoded);
70internal static void Decode(scoped ref ValueAsnReader reader, Asn1Tag expectedTag, out ValueRSAPrivateKeyAsn decoded)
82private static void DecodeCore(scoped ref ValueAsnReader reader, Asn1Tag expectedTag, out ValueRSAPrivateKeyAsn decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\RSAPublicKeyAsn.xml.cs (7)
19Encode(writer, Asn1Tag.Sequence);
22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
33Decode(Asn1Tag.Sequence, encoded, ruleSet, out decoded);
36internal static void Decode(Asn1Tag expectedTag, ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueRSAPublicKeyAsn decoded)
53Decode(ref reader, Asn1Tag.Sequence, out decoded);
56internal static void Decode(scoped ref ValueAsnReader reader, Asn1Tag expectedTag, out ValueRSAPublicKeyAsn decoded)
68private static void DecodeCore(scoped ref ValueAsnReader reader, Asn1Tag expectedTag, out ValueRSAPublicKeyAsn decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\SpecifiedECDomain.xml.cs (9)
35Encode(writer, Asn1Tag.Sequence);
38internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
71Decode(Asn1Tag.Sequence, encoded, ruleSet, out decoded);
74internal static void Decode(Asn1Tag expectedTag, ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueSpecifiedECDomain decoded)
91Decode(ref reader, Asn1Tag.Sequence, out decoded);
94internal static void Decode(scoped ref ValueAsnReader reader, Asn1Tag expectedTag, out ValueSpecifiedECDomain decoded)
106private static void DecodeCore(scoped ref ValueAsnReader reader, Asn1Tag expectedTag, out ValueSpecifiedECDomain decoded)
132if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(Asn1Tag.Integer))
139if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(Asn1Tag.ObjectIdentifier))
src\libraries\Common\src\System\Security\Cryptography\Asn1\SubjectPublicKeyInfoAsn.xml.cs (14)
19Encode(writer, Asn1Tag.Sequence);
22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
33return Decode(Asn1Tag.Sequence, encoded, ruleSet);
36internal static SubjectPublicKeyInfoAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
54Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded);
57internal static void Decode(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out SubjectPublicKeyInfoAsn decoded)
69private static void DecodeCore(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out SubjectPublicKeyInfoAsn decoded)
101Encode(writer, Asn1Tag.Sequence);
104internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
115Decode(Asn1Tag.Sequence, encoded, ruleSet, out decoded);
118internal static void Decode(Asn1Tag expectedTag, ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueSubjectPublicKeyInfoAsn decoded)
135Decode(ref reader, Asn1Tag.Sequence, out decoded);
138internal static void Decode(scoped ref ValueAsnReader reader, Asn1Tag expectedTag, out ValueSubjectPublicKeyInfoAsn decoded)
150private static void DecodeCore(scoped ref ValueAsnReader reader, Asn1Tag expectedTag, out ValueSubjectPublicKeyInfoAsn decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\X509ExtensionAsn.xml.cs (16)
37Encode(writer, Asn1Tag.Sequence);
40internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
71return Decode(Asn1Tag.Sequence, encoded, ruleSet);
74internal static X509ExtensionAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
92Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded);
95internal static void Decode(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out X509ExtensionAsn decoded)
107private static void DecodeCore(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out X509ExtensionAsn decoded)
118if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(Asn1Tag.Boolean))
152Encode(writer, Asn1Tag.Sequence);
155internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
186Decode(Asn1Tag.Sequence, encoded, ruleSet, out decoded);
189internal static void Decode(Asn1Tag expectedTag, ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueX509ExtensionAsn decoded)
206Decode(ref reader, Asn1Tag.Sequence, out decoded);
209internal static void Decode(scoped ref ValueAsnReader reader, Asn1Tag expectedTag, out ValueX509ExtensionAsn decoded)
221private static void DecodeCore(scoped ref ValueAsnReader reader, Asn1Tag expectedTag, out ValueX509ExtensionAsn decoded)
230if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(Asn1Tag.Boolean))
System\Security\Cryptography\X509Certificates\Asn1\AccessDescriptionAsn.xml.cs (7)
19Encode(writer, Asn1Tag.Sequence);
22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
40return Decode(Asn1Tag.Sequence, encoded, ruleSet);
43internal static AccessDescriptionAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
61Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded);
64internal static void Decode(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out AccessDescriptionAsn decoded)
76private static void DecodeCore(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out AccessDescriptionAsn decoded)
System\Security\Cryptography\X509Certificates\Asn1\BasicConstraintsAsn.xml.cs (9)
36Encode(writer, Asn1Tag.Sequence);
39internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
67return Decode(Asn1Tag.Sequence, encoded, ruleSet);
70internal static BasicConstraintsAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
88Decode(ref reader, Asn1Tag.Sequence, out decoded);
91internal static void Decode(ref ValueAsnReader reader, Asn1Tag expectedTag, out BasicConstraintsAsn decoded)
103private static void DecodeCore(ref ValueAsnReader reader, Asn1Tag expectedTag, out BasicConstraintsAsn decoded)
110if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(Asn1Tag.Boolean))
121if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(Asn1Tag.Integer))
System\Security\Cryptography\X509Certificates\Asn1\CertificateAsn.xml.cs (7)
20Encode(writer, Asn1Tag.Sequence);
23internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
35return Decode(Asn1Tag.Sequence, encoded, ruleSet);
38internal static CertificateAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
56Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded);
59internal static void Decode(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out CertificateAsn decoded)
71private static void DecodeCore(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out CertificateAsn decoded)
System\Security\Cryptography\X509Certificates\Asn1\CertificatePolicyMappingAsn.xml.cs (7)
19Encode(writer, Asn1Tag.Sequence);
22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
47return Decode(Asn1Tag.Sequence, encoded, ruleSet);
50internal static CertificatePolicyMappingAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
68Decode(ref reader, Asn1Tag.Sequence, out decoded);
71internal static void Decode(ref ValueAsnReader reader, Asn1Tag expectedTag, out CertificatePolicyMappingAsn decoded)
83private static void DecodeCore(ref ValueAsnReader reader, Asn1Tag expectedTag, out CertificatePolicyMappingAsn decoded)
System\Security\Cryptography\X509Certificates\Asn1\CertificateTemplateAsn.xml.cs (8)
20Encode(writer, Asn1Tag.Sequence);
23internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
47return Decode(Asn1Tag.Sequence, encoded, ruleSet);
50internal static CertificateTemplateAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
68Decode(ref reader, Asn1Tag.Sequence, out decoded);
71internal static void Decode(ref ValueAsnReader reader, Asn1Tag expectedTag, out CertificateTemplateAsn decoded)
83private static void DecodeCore(ref ValueAsnReader reader, Asn1Tag expectedTag, out CertificateTemplateAsn decoded)
96if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(Asn1Tag.Integer))
System\Security\Cryptography\X509Certificates\Asn1\CertificationRequestAsn.xml.cs (7)
20Encode(writer, Asn1Tag.Sequence);
23internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
35return Decode(Asn1Tag.Sequence, encoded, ruleSet);
38internal static CertificationRequestAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
56Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded);
59internal static void Decode(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out CertificationRequestAsn decoded)
71private static void DecodeCore(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out CertificationRequestAsn decoded)
System\Security\Cryptography\X509Certificates\Asn1\CertificationRequestInfoAsn.xml.cs (18)
22Encode(writer, Asn1Tag.Sequence);
25internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
32if (!Asn1Tag.TryDecode(Subject.Span, out Asn1Tag validateTag, out _) ||
61return Decode(Asn1Tag.Sequence, encoded, ruleSet);
64internal static CertificationRequestInfoAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
82Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded);
85internal static void Decode(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out CertificationRequestInfoAsn decoded)
97private static void DecodeCore(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out CertificationRequestInfoAsn decoded)
146Encode(writer, Asn1Tag.Sequence);
149internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
157if (!Asn1Tag.TryDecode(Subject, out Asn1Tag validateTag, out _) ||
188Decode(Asn1Tag.Sequence, encoded, ruleSet, out decoded);
191internal static void Decode(Asn1Tag expectedTag, ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueCertificationRequestInfoAsn decoded)
208Decode(ref reader, Asn1Tag.Sequence, out decoded);
211internal static void Decode(scoped ref ValueAsnReader reader, Asn1Tag expectedTag, out ValueCertificationRequestInfoAsn decoded)
223private static void DecodeCore(scoped ref ValueAsnReader reader, Asn1Tag expectedTag, out ValueCertificationRequestInfoAsn decoded)
System\Security\Cryptography\X509Certificates\Asn1\DistributionPointAsn.xml.cs (7)
21Encode(writer, Asn1Tag.Sequence);
24internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
60return Decode(Asn1Tag.Sequence, encoded, ruleSet);
63internal static DistributionPointAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
81Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded);
84internal static void Decode(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out DistributionPointAsn decoded)
96private static void DecodeCore(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out DistributionPointAsn decoded)
System\Security\Cryptography\X509Certificates\Asn1\PolicyConstraintsAsn.xml.cs (7)
19Encode(writer, Asn1Tag.Sequence);
22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
43return Decode(Asn1Tag.Sequence, encoded, ruleSet);
46internal static PolicyConstraintsAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
64Decode(ref reader, Asn1Tag.Sequence, out decoded);
67internal static void Decode(ref ValueAsnReader reader, Asn1Tag expectedTag, out PolicyConstraintsAsn decoded)
79private static void DecodeCore(ref ValueAsnReader reader, Asn1Tag expectedTag, out PolicyConstraintsAsn decoded)
System\Security\Cryptography\X509Certificates\Asn1\PolicyInformationAsn.xml.cs (7)
19Encode(writer, Asn1Tag.Sequence);
22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
52return Decode(Asn1Tag.Sequence, encoded, ruleSet);
55internal static PolicyInformationAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
73Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded);
76internal static void Decode(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out PolicyInformationAsn decoded)
88private static void DecodeCore(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out PolicyInformationAsn decoded)
System\Security\Cryptography\X509Certificates\Asn1\TbsCertificateAsn.xml.cs (11)
50Encode(writer, Asn1Tag.Sequence);
53internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
76if (!Asn1Tag.TryDecode(Issuer.Span, out Asn1Tag validateTag, out _) ||
94if (!Asn1Tag.TryDecode(Subject.Span, out Asn1Tag validateTag, out _) ||
142return Decode(Asn1Tag.Sequence, encoded, ruleSet);
145internal static TbsCertificateAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
163Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded);
166internal static void Decode(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out TbsCertificateAsn decoded)
178private static void DecodeCore(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out TbsCertificateAsn decoded)
System\Security\Cryptography\X509Certificates\Asn1\ValidityAsn.xml.cs (7)
19Encode(writer, Asn1Tag.Sequence);
22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
33return Decode(Asn1Tag.Sequence, encoded, ruleSet);
36internal static ValidityAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
54Decode(ref reader, Asn1Tag.Sequence, out decoded);
57internal static void Decode(ref ValueAsnReader reader, Asn1Tag expectedTag, out ValidityAsn decoded)
69private static void DecodeCore(ref ValueAsnReader reader, Asn1Tag expectedTag, out ValidityAsn decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\AlgorithmIdentifierAsn.xml.cs (14)
19Encode(writer, Asn1Tag.Sequence);
22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
52return Decode(Asn1Tag.Sequence, encoded, ruleSet);
55internal static AlgorithmIdentifierAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
73Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded);
76internal static void Decode(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out AlgorithmIdentifierAsn decoded)
88private static void DecodeCore(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out AlgorithmIdentifierAsn decoded)
128Encode(writer, Asn1Tag.Sequence);
131internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
162Decode(Asn1Tag.Sequence, encoded, ruleSet, out decoded);
165internal static void Decode(Asn1Tag expectedTag, ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueAlgorithmIdentifierAsn decoded)
182Decode(ref reader, Asn1Tag.Sequence, out decoded);
185internal static void Decode(scoped ref ValueAsnReader reader, Asn1Tag expectedTag, out ValueAlgorithmIdentifierAsn decoded)
197private static void DecodeCore(scoped ref ValueAsnReader reader, Asn1Tag expectedTag, out ValueAlgorithmIdentifierAsn decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\AttributeAsn.xml.cs (15)
20Encode(writer, Asn1Tag.Sequence);
23internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
55return Decode(Asn1Tag.Sequence, encoded, ruleSet);
58internal static AttributeAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
76Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded);
79internal static void Decode(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out AttributeAsn decoded)
91private static void DecodeCore(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out AttributeAsn decoded)
131Encode(writer, Asn1Tag.Sequence);
134internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
160Decode(Asn1Tag.Sequence, encoded, ruleSet, out decoded);
163internal static void Decode(Asn1Tag expectedTag, ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueAttributeAsn decoded)
180Decode(ref reader, Asn1Tag.Sequence, out decoded);
183internal static void Decode(scoped ref ValueAsnReader reader, Asn1Tag expectedTag, out ValueAttributeAsn decoded)
195private static void DecodeCore(scoped ref ValueAsnReader reader, Asn1Tag expectedTag, out ValueAttributeAsn decoded)
202if (!sequenceReader.PeekTag().HasSameClassAndValue(Asn1Tag.SetOf))
src\libraries\Common\src\System\Security\Cryptography\Asn1\DigestInfoAsn.xml.cs (14)
19Encode(writer, Asn1Tag.Sequence);
22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
33return Decode(Asn1Tag.Sequence, encoded, ruleSet);
36internal static DigestInfoAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
54Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded);
57internal static void Decode(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out DigestInfoAsn decoded)
69private static void DecodeCore(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out DigestInfoAsn decoded)
101Encode(writer, Asn1Tag.Sequence);
104internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
115Decode(Asn1Tag.Sequence, encoded, ruleSet, out decoded);
118internal static void Decode(Asn1Tag expectedTag, ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueDigestInfoAsn decoded)
135Decode(ref reader, Asn1Tag.Sequence, out decoded);
138internal static void Decode(scoped ref ValueAsnReader reader, Asn1Tag expectedTag, out ValueDigestInfoAsn decoded)
150private static void DecodeCore(scoped ref ValueAsnReader reader, Asn1Tag expectedTag, out ValueDigestInfoAsn decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\EdiPartyNameAsn.xml.cs (7)
19Encode(writer, Asn1Tag.Sequence);
22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
42return Decode(Asn1Tag.Sequence, encoded, ruleSet);
45internal static EdiPartyNameAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
63Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded);
66internal static void Decode(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out EdiPartyNameAsn decoded)
78private static void DecodeCore(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out EdiPartyNameAsn decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\EncryptedPrivateKeyInfoAsn.xml.cs (14)
19Encode(writer, Asn1Tag.Sequence);
22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
33return Decode(Asn1Tag.Sequence, encoded, ruleSet);
36internal static EncryptedPrivateKeyInfoAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
54Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded);
57internal static void Decode(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out EncryptedPrivateKeyInfoAsn decoded)
69private static void DecodeCore(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out EncryptedPrivateKeyInfoAsn decoded)
101Encode(writer, Asn1Tag.Sequence);
104internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
115Decode(Asn1Tag.Sequence, encoded, ruleSet, out decoded);
118internal static void Decode(Asn1Tag expectedTag, ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueEncryptedPrivateKeyInfoAsn decoded)
135Decode(ref reader, Asn1Tag.Sequence, out decoded);
138internal static void Decode(scoped ref ValueAsnReader reader, Asn1Tag expectedTag, out ValueEncryptedPrivateKeyInfoAsn decoded)
150private static void DecodeCore(scoped ref ValueAsnReader reader, Asn1Tag expectedTag, out ValueEncryptedPrivateKeyInfoAsn decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\OaepParamsAsn.xml.cs (7)
50Encode(writer, Asn1Tag.Sequence);
53internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
104return Decode(Asn1Tag.Sequence, encoded, ruleSet);
107internal static OaepParamsAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
125Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded);
128internal static void Decode(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out OaepParamsAsn decoded)
140private static void DecodeCore(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out OaepParamsAsn decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\OtherNameAsn.xml.cs (7)
19Encode(writer, Asn1Tag.Sequence);
22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
49return Decode(Asn1Tag.Sequence, encoded, ruleSet);
52internal static OtherNameAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
70Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded);
73internal static void Decode(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out OtherNameAsn decoded)
85private static void DecodeCore(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out OtherNameAsn decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\PBEParameter.xml.cs (7)
19Encode(writer, Asn1Tag.Sequence);
22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
33Decode(Asn1Tag.Sequence, encoded, ruleSet, out decoded);
36internal static void Decode(Asn1Tag expectedTag, ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValuePBEParameter decoded)
53Decode(ref reader, Asn1Tag.Sequence, out decoded);
56internal static void Decode(scoped ref ValueAsnReader reader, Asn1Tag expectedTag, out ValuePBEParameter decoded)
68private static void DecodeCore(scoped ref ValueAsnReader reader, Asn1Tag expectedTag, out ValuePBEParameter decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\PBES2Params.xml.cs (7)
19Encode(writer, Asn1Tag.Sequence);
22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
33Decode(Asn1Tag.Sequence, encoded, ruleSet, out decoded);
36internal static void Decode(Asn1Tag expectedTag, ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValuePBES2Params decoded)
53Decode(ref reader, Asn1Tag.Sequence, out decoded);
56internal static void Decode(scoped ref ValueAsnReader reader, Asn1Tag expectedTag, out ValuePBES2Params decoded)
68private static void DecodeCore(scoped ref ValueAsnReader reader, Asn1Tag expectedTag, out ValuePBES2Params decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pbkdf2Params.xml.cs (9)
38Encode(writer, Asn1Tag.Sequence);
41internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
70Decode(Asn1Tag.Sequence, encoded, ruleSet, out decoded);
73internal static void Decode(Asn1Tag expectedTag, ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValuePbkdf2Params decoded)
90Decode(ref reader, Asn1Tag.Sequence, out decoded);
93internal static void Decode(scoped ref ValueAsnReader reader, Asn1Tag expectedTag, out ValuePbkdf2Params decoded)
105private static void DecodeCore(scoped ref ValueAsnReader reader, Asn1Tag expectedTag, out ValuePbkdf2Params decoded)
119if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(Asn1Tag.Integer))
134if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(Asn1Tag.Sequence))
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\CertBagAsn.xml.cs (7)
19Encode(writer, Asn1Tag.Sequence);
22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
49return Decode(Asn1Tag.Sequence, encoded, ruleSet);
52internal static CertBagAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
70Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded);
73internal static void Decode(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out CertBagAsn decoded)
85private static void DecodeCore(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out CertBagAsn decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\MacData.xml.cs (16)
42Encode(writer, Asn1Tag.Sequence);
45internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
69return Decode(Asn1Tag.Sequence, encoded, ruleSet);
72internal static MacData Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
90Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded);
93internal static void Decode(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out MacData decoded)
105private static void DecodeCore(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out MacData decoded)
126if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(Asn1Tag.Integer))
160Encode(writer, Asn1Tag.Sequence);
163internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
187Decode(Asn1Tag.Sequence, encoded, ruleSet, out decoded);
190internal static void Decode(Asn1Tag expectedTag, ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueMacData decoded)
207Decode(ref reader, Asn1Tag.Sequence, out decoded);
210internal static void Decode(scoped ref ValueAsnReader reader, Asn1Tag expectedTag, out ValueMacData decoded)
222private static void DecodeCore(scoped ref ValueAsnReader reader, Asn1Tag expectedTag, out ValueMacData decoded)
241if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(Asn1Tag.Integer))
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.xml.cs (16)
20Encode(writer, Asn1Tag.Sequence);
23internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
40return Decode(Asn1Tag.Sequence, encoded, ruleSet);
43internal static PfxAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
61Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded);
64internal static void Decode(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out PfxAsn decoded)
76private static void DecodeCore(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out PfxAsn decoded)
89if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(Asn1Tag.Sequence))
122Encode(writer, Asn1Tag.Sequence);
125internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
142Decode(Asn1Tag.Sequence, encoded, ruleSet, out decoded);
145internal static void Decode(Asn1Tag expectedTag, ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValuePfxAsn decoded)
162Decode(ref reader, Asn1Tag.Sequence, out decoded);
165internal static void Decode(scoped ref ValueAsnReader reader, Asn1Tag expectedTag, out ValuePfxAsn decoded)
177private static void DecodeCore(scoped ref ValueAsnReader reader, Asn1Tag expectedTag, out ValuePfxAsn decoded)
190if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(Asn1Tag.Sequence))
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\SafeBagAsn.xml.cs (8)
21Encode(writer, Asn1Tag.Sequence);
24internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
64return Decode(Asn1Tag.Sequence, encoded, ruleSet);
67internal static SafeBagAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
85Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded);
88internal static void Decode(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out SafeBagAsn decoded)
100private static void DecodeCore(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out SafeBagAsn decoded)
118if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(Asn1Tag.SetOf))
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\SecretBagAsn.xml.cs (7)
19Encode(writer, Asn1Tag.Sequence);
22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
49return Decode(Asn1Tag.Sequence, encoded, ruleSet);
52internal static SecretBagAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
70Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded);
73internal static void Decode(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out SecretBagAsn decoded)
85private static void DecodeCore(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out SecretBagAsn decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\CertificateChoiceAsn.xml.cs (11)
16var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
17Action<Asn1Tag, string> ensureUniqueTag = (tag, fieldName) =>
68if (!Asn1Tag.TryDecode(Certificate.Value.Span, out Asn1Tag validateTag, out _) ||
93if (!Asn1Tag.TryDecode(ExtendedCertificate.Value.Span, out Asn1Tag validateTag, out _) ||
118if (!Asn1Tag.TryDecode(AttributeCertificateV1.Value.Span, out Asn1Tag validateTag, out _) ||
143if (!Asn1Tag.TryDecode(AttributeCertificateV2.Value.Span, out Asn1Tag validateTag, out _) ||
207Asn1Tag tag = reader.PeekTag();
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\ContentInfoAsn.xml.cs (14)
19Encode(writer, Asn1Tag.Sequence);
22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
49return Decode(Asn1Tag.Sequence, encoded, ruleSet);
52internal static ContentInfoAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
70Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded);
73internal static void Decode(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out ContentInfoAsn decoded)
85private static void DecodeCore(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out ContentInfoAsn decoded)
114Encode(writer, Asn1Tag.Sequence);
117internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
145Decode(Asn1Tag.Sequence, encoded, ruleSet, out decoded);
148internal static void Decode(Asn1Tag expectedTag, ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueContentInfoAsn decoded)
165Decode(ref reader, Asn1Tag.Sequence, out decoded);
168internal static void Decode(scoped ref ValueAsnReader reader, Asn1Tag expectedTag, out ValueContentInfoAsn decoded)
180private static void DecodeCore(scoped ref ValueAsnReader reader, Asn1Tag expectedTag, out ValueContentInfoAsn decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\EncapsulatedContentInfoAsn.xml.cs (7)
19Encode(writer, Asn1Tag.Sequence);
22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
54return Decode(Asn1Tag.Sequence, encoded, ruleSet);
57internal static EncapsulatedContentInfoAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
75Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded);
78internal static void Decode(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out EncapsulatedContentInfoAsn decoded)
90private static void DecodeCore(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out EncapsulatedContentInfoAsn decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\EncryptedContentInfoAsn.xml.cs (7)
20Encode(writer, Asn1Tag.Sequence);
23internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
47return Decode(Asn1Tag.Sequence, encoded, ruleSet);
50internal static EncryptedContentInfoAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
68Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded);
71internal static void Decode(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out EncryptedContentInfoAsn decoded)
83private static void DecodeCore(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out EncryptedContentInfoAsn decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\EncryptedDataAsn.xml.cs (7)
21Encode(writer, Asn1Tag.Sequence);
24internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
48return Decode(Asn1Tag.Sequence, encoded, ruleSet);
51internal static EncryptedDataAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
69Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded);
72internal static void Decode(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out EncryptedDataAsn decoded)
84private static void DecodeCore(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out EncryptedDataAsn decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\IssuerAndSerialNumberAsn.xml.cs (9)
19Encode(writer, Asn1Tag.Sequence);
22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
28if (!Asn1Tag.TryDecode(Issuer.Span, out Asn1Tag validateTag, out _) ||
49return Decode(Asn1Tag.Sequence, encoded, ruleSet);
52internal static IssuerAndSerialNumberAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
70Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded);
73internal static void Decode(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out IssuerAndSerialNumberAsn decoded)
85private static void DecodeCore(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out IssuerAndSerialNumberAsn decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\OtherCertificateFormat.xml.cs (7)
19Encode(writer, Asn1Tag.Sequence);
22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
47return Decode(Asn1Tag.Sequence, encoded, ruleSet);
50internal static OtherCertificateFormat Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
68Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded);
71internal static void Decode(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out OtherCertificateFormat decoded)
83private static void DecodeCore(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out OtherCertificateFormat decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\SignedDataAsn.xml.cs (7)
24Encode(writer, Asn1Tag.Sequence);
27internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
87return Decode(Asn1Tag.Sequence, encoded, ruleSet);
90internal static SignedDataAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
108Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded);
111internal static void Decode(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out SignedDataAsn decoded)
123private static void DecodeCore(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out SignedDataAsn decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\SignerInfoAsn.xml.cs (9)
25Encode(writer, Asn1Tag.Sequence);
28internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
40if (!Asn1Tag.TryDecode(SignedAttributes.Value.Span, out Asn1Tag validateTag, out _) ||
77return Decode(Asn1Tag.Sequence, encoded, ruleSet);
80internal static SignerInfoAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
98Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded);
101internal static void Decode(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out SignerInfoAsn decoded)
113private static void DecodeCore(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out SignerInfoAsn decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\PrivateKeyInfoAsn.xml.cs (14)
22Encode(writer, Asn1Tag.Sequence);
25internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
50return Decode(Asn1Tag.Sequence, encoded, ruleSet);
53internal static PrivateKeyInfoAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
71Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded);
74internal static void Decode(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out PrivateKeyInfoAsn decoded)
86private static void DecodeCore(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out PrivateKeyInfoAsn decoded)
159Encode(writer, Asn1Tag.Sequence);
162internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
188Decode(Asn1Tag.Sequence, encoded, ruleSet, out decoded);
191internal static void Decode(Asn1Tag expectedTag, ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValuePrivateKeyInfoAsn decoded)
208Decode(ref reader, Asn1Tag.Sequence, out decoded);
211internal static void Decode(scoped ref ValueAsnReader reader, Asn1Tag expectedTag, out ValuePrivateKeyInfoAsn decoded)
223private static void DecodeCore(scoped ref ValueAsnReader reader, Asn1Tag expectedTag, out ValuePrivateKeyInfoAsn decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\PssParamsAsn.xml.cs (7)
66Encode(writer, Asn1Tag.Sequence);
69internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
136Decode(Asn1Tag.Sequence, encoded, ruleSet, out decoded);
139internal static void Decode(Asn1Tag expectedTag, ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValuePssParamsAsn decoded)
156Decode(ref reader, Asn1Tag.Sequence, out decoded);
159internal static void Decode(scoped ref ValueAsnReader reader, Asn1Tag expectedTag, out ValuePssParamsAsn decoded)
171private static void DecodeCore(scoped ref ValueAsnReader reader, Asn1Tag expectedTag, out ValuePssParamsAsn decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\Rc2CbcParameters.xml.cs (14)
19Encode(writer, Asn1Tag.Sequence);
22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
33return Decode(Asn1Tag.Sequence, encoded, ruleSet);
36internal static Rc2CbcParameters Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
54Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded);
57internal static void Decode(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out Rc2CbcParameters decoded)
69private static void DecodeCore(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out Rc2CbcParameters decoded)
106Encode(writer, Asn1Tag.Sequence);
109internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
120Decode(Asn1Tag.Sequence, encoded, ruleSet, out decoded);
123internal static void Decode(Asn1Tag expectedTag, ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueRc2CbcParameters decoded)
140Decode(ref reader, Asn1Tag.Sequence, out decoded);
143internal static void Decode(scoped ref ValueAsnReader reader, Asn1Tag expectedTag, out ValueRc2CbcParameters decoded)
155private static void DecodeCore(scoped ref ValueAsnReader reader, Asn1Tag expectedTag, out ValueRc2CbcParameters decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\SubjectPublicKeyInfoAsn.xml.cs (14)
19Encode(writer, Asn1Tag.Sequence);
22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
33return Decode(Asn1Tag.Sequence, encoded, ruleSet);
36internal static SubjectPublicKeyInfoAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
54Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded);
57internal static void Decode(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out SubjectPublicKeyInfoAsn decoded)
69private static void DecodeCore(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out SubjectPublicKeyInfoAsn decoded)
101Encode(writer, Asn1Tag.Sequence);
104internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
115Decode(Asn1Tag.Sequence, encoded, ruleSet, out decoded);
118internal static void Decode(Asn1Tag expectedTag, ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueSubjectPublicKeyInfoAsn decoded)
135Decode(ref reader, Asn1Tag.Sequence, out decoded);
138internal static void Decode(scoped ref ValueAsnReader reader, Asn1Tag expectedTag, out ValueSubjectPublicKeyInfoAsn decoded)
150private static void DecodeCore(scoped ref ValueAsnReader reader, Asn1Tag expectedTag, out ValueSubjectPublicKeyInfoAsn decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\X509ExtensionAsn.xml.cs (16)
37Encode(writer, Asn1Tag.Sequence);
40internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
71return Decode(Asn1Tag.Sequence, encoded, ruleSet);
74internal static X509ExtensionAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
92Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded);
95internal static void Decode(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out X509ExtensionAsn decoded)
107private static void DecodeCore(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out X509ExtensionAsn decoded)
118if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(Asn1Tag.Boolean))
152Encode(writer, Asn1Tag.Sequence);
155internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
186Decode(Asn1Tag.Sequence, encoded, ruleSet, out decoded);
189internal static void Decode(Asn1Tag expectedTag, ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueX509ExtensionAsn decoded)
206Decode(ref reader, Asn1Tag.Sequence, out decoded);
209internal static void Decode(scoped ref ValueAsnReader reader, Asn1Tag expectedTag, out ValueX509ExtensionAsn decoded)
221private static void DecodeCore(scoped ref ValueAsnReader reader, Asn1Tag expectedTag, out ValueX509ExtensionAsn decoded)
230if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(Asn1Tag.Boolean))
System\Security\Cryptography\Pkcs\Asn1\CadesIssuerSerial.xml.cs (7)
20Encode(writer, Asn1Tag.Sequence);
23internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
41return Decode(Asn1Tag.Sequence, encoded, ruleSet);
44internal static CadesIssuerSerial Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
62Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded);
65internal static void Decode(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out CadesIssuerSerial decoded)
77private static void DecodeCore(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out CadesIssuerSerial decoded)
System\Security\Cryptography\Pkcs\Asn1\EnvelopedDataAsn.xml.cs (7)
23Encode(writer, Asn1Tag.Sequence);
26internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
64return Decode(Asn1Tag.Sequence, encoded, ruleSet);
67internal static EnvelopedDataAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
85Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded);
88internal static void Decode(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out EnvelopedDataAsn decoded)
100private static void DecodeCore(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out EnvelopedDataAsn decoded)
System\Security\Cryptography\Pkcs\Asn1\EssCertId.xml.cs (8)
19Encode(writer, Asn1Tag.Sequence);
22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
38return Decode(Asn1Tag.Sequence, encoded, ruleSet);
41internal static EssCertId Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
59Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded);
62internal static void Decode(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out EssCertId decoded)
74private static void DecodeCore(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out EssCertId decoded)
93if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(Asn1Tag.Sequence))
System\Security\Cryptography\Pkcs\Asn1\EssCertIdV2.xml.cs (9)
38Encode(writer, Asn1Tag.Sequence);
41internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
69return Decode(Asn1Tag.Sequence, encoded, ruleSet);
72internal static EssCertIdV2 Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
90Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded);
93internal static void Decode(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out EssCertIdV2 decoded)
105private static void DecodeCore(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out EssCertIdV2 decoded)
115if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(Asn1Tag.Sequence))
136if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(Asn1Tag.Sequence))
System\Security\Cryptography\Pkcs\Asn1\KeyAgreeRecipientInfoAsn.xml.cs (7)
23Encode(writer, Asn1Tag.Sequence);
26internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
56return Decode(Asn1Tag.Sequence, encoded, ruleSet);
59internal static KeyAgreeRecipientInfoAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
77Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded);
80internal static void Decode(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out KeyAgreeRecipientInfoAsn decoded)
92private static void DecodeCore(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out KeyAgreeRecipientInfoAsn decoded)
System\Security\Cryptography\Pkcs\Asn1\KeyTransRecipientInfoAsn.xml.cs (7)
21Encode(writer, Asn1Tag.Sequence);
24internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
37return Decode(Asn1Tag.Sequence, encoded, ruleSet);
40internal static KeyTransRecipientInfoAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
58Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded);
61internal static void Decode(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out KeyTransRecipientInfoAsn decoded)
73private static void DecodeCore(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out KeyTransRecipientInfoAsn decoded)
System\Security\Cryptography\Pkcs\Asn1\MessageImprint.xml.cs (14)
19Encode(writer, Asn1Tag.Sequence);
22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
33return Decode(Asn1Tag.Sequence, encoded, ruleSet);
36internal static MessageImprint Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
54Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded);
57internal static void Decode(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out MessageImprint decoded)
69private static void DecodeCore(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out MessageImprint decoded)
101Encode(writer, Asn1Tag.Sequence);
104internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
123Decode(Asn1Tag.Sequence, encoded, ruleSet, out decoded);
126internal static void Decode(Asn1Tag expectedTag, ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueMessageImprint decoded)
143Decode(ref reader, Asn1Tag.Sequence, out decoded);
146internal static void Decode(scoped ref ValueAsnReader reader, Asn1Tag expectedTag, out ValueMessageImprint decoded)
158private static void DecodeCore(scoped ref ValueAsnReader reader, Asn1Tag expectedTag, out ValueMessageImprint decoded)
System\Security\Cryptography\Pkcs\Asn1\OriginatorInfoAsn.xml.cs (7)
20Encode(writer, Asn1Tag.Sequence);
23internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
65return Decode(Asn1Tag.Sequence, encoded, ruleSet);
68internal static OriginatorInfoAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
86Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded);
89internal static void Decode(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out OriginatorInfoAsn decoded)
101private static void DecodeCore(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out OriginatorInfoAsn decoded)
System\Security\Cryptography\Pkcs\Asn1\OriginatorPublicKeyAsn.xml.cs (7)
19Encode(writer, Asn1Tag.Sequence);
22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
33return Decode(Asn1Tag.Sequence, encoded, ruleSet);
36internal static OriginatorPublicKeyAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
54Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded);
57internal static void Decode(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out OriginatorPublicKeyAsn decoded)
69private static void DecodeCore(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out OriginatorPublicKeyAsn decoded)
System\Security\Cryptography\Pkcs\Asn1\OtherKeyAttributeAsn.xml.cs (7)
19Encode(writer, Asn1Tag.Sequence);
22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
52return Decode(Asn1Tag.Sequence, encoded, ruleSet);
55internal static OtherKeyAttributeAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
73Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded);
76internal static void Decode(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out OtherKeyAttributeAsn decoded)
88private static void DecodeCore(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out OtherKeyAttributeAsn decoded)
System\Security\Cryptography\Pkcs\Asn1\PkiStatusInfo.xml.cs (10)
20Encode(writer, Asn1Tag.Sequence);
23internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
33if (!Asn1Tag.TryDecode(StatusString.Value.Span, out Asn1Tag validateTag, out _) ||
61return Decode(Asn1Tag.Sequence, encoded, ruleSet);
64internal static PkiStatusInfo Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
82Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded);
85internal static void Decode(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out PkiStatusInfo decoded)
97private static void DecodeCore(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out PkiStatusInfo decoded)
119if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(Asn1Tag.PrimitiveBitString))
System\Security\Cryptography\Pkcs\Asn1\PolicyInformation.xml.cs (8)
20Encode(writer, Asn1Tag.Sequence);
23internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
53return Decode(Asn1Tag.Sequence, encoded, ruleSet);
56internal static PolicyInformation Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
74Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded);
77internal static void Decode(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out PolicyInformation decoded)
89private static void DecodeCore(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out PolicyInformation decoded)
97if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(Asn1Tag.Sequence))
System\Security\Cryptography\Pkcs\Asn1\PolicyQualifierInfo.xml.cs (7)
19Encode(writer, Asn1Tag.Sequence);
22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
47return Decode(Asn1Tag.Sequence, encoded, ruleSet);
50internal static PolicyQualifierInfo Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
68Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded);
71internal static void Decode(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out PolicyQualifierInfo decoded)
83private static void DecodeCore(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out PolicyQualifierInfo decoded)
System\Security\Cryptography\Pkcs\Asn1\RecipientEncryptedKeyAsn.xml.cs (7)
19Encode(writer, Asn1Tag.Sequence);
22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
33return Decode(Asn1Tag.Sequence, encoded, ruleSet);
36internal static RecipientEncryptedKeyAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
54Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded);
57internal static void Decode(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out RecipientEncryptedKeyAsn decoded)
69private static void DecodeCore(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out RecipientEncryptedKeyAsn decoded)
System\Security\Cryptography\Pkcs\Asn1\RecipientKeyIdentifier.xml.cs (9)
20Encode(writer, Asn1Tag.Sequence);
23internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
45return Decode(Asn1Tag.Sequence, encoded, ruleSet);
48internal static RecipientKeyIdentifier Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
66Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded);
69internal static void Decode(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out RecipientKeyIdentifier decoded)
81private static void DecodeCore(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out RecipientKeyIdentifier decoded)
100if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(Asn1Tag.GeneralizedTime))
106if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(Asn1Tag.Sequence))
System\Security\Cryptography\Pkcs\Asn1\Rfc3161Accuracy.xml.cs (8)
20Encode(writer, Asn1Tag.Sequence);
23internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
50return Decode(Asn1Tag.Sequence, encoded, ruleSet);
53internal static Rfc3161Accuracy Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
71Decode(ref reader, Asn1Tag.Sequence, out decoded);
74internal static void Decode(ref ValueAsnReader reader, Asn1Tag expectedTag, out Rfc3161Accuracy decoded)
86private static void DecodeCore(ref ValueAsnReader reader, Asn1Tag expectedTag, out Rfc3161Accuracy decoded)
92if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(Asn1Tag.Integer))
System\Security\Cryptography\Pkcs\Asn1\Rfc3161TimeStampReq.xml.cs (10)
41Encode(writer, Asn1Tag.Sequence);
44internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
100return Decode(Asn1Tag.Sequence, encoded, ruleSet);
103internal static Rfc3161TimeStampReq Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
121Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded);
124internal static void Decode(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out Rfc3161TimeStampReq decoded)
136private static void DecodeCore(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out Rfc3161TimeStampReq decoded)
154if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(Asn1Tag.ObjectIdentifier))
160if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(Asn1Tag.Integer))
167if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(Asn1Tag.Boolean))
System\Security\Cryptography\Pkcs\Asn1\Rfc3161TimeStampResp.xml.cs (7)
19Encode(writer, Asn1Tag.Sequence);
22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
45return Decode(Asn1Tag.Sequence, encoded, ruleSet);
48internal static Rfc3161TimeStampResp Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
66Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded);
69internal static void Decode(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out Rfc3161TimeStampResp decoded)
81private static void DecodeCore(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out Rfc3161TimeStampResp decoded)
System\Security\Cryptography\Pkcs\Asn1\Rfc3161TstInfo.xml.cs (20)
45Encode(writer, Asn1Tag.Sequence);
48internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
115return Decode(Asn1Tag.Sequence, encoded, ruleSet);
118internal static Rfc3161TstInfo Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
136Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded);
139internal static void Decode(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out Rfc3161TstInfo decoded)
151private static void DecodeCore(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out Rfc3161TstInfo decoded)
174if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(Asn1Tag.Sequence))
183if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(Asn1Tag.Boolean))
194if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(Asn1Tag.Integer))
286Encode(writer, Asn1Tag.Sequence);
289internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
365Decode(Asn1Tag.Sequence, encoded, ruleSet, out decoded);
368internal static void Decode(Asn1Tag expectedTag, ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueRfc3161TstInfo decoded)
385Decode(ref reader, Asn1Tag.Sequence, out decoded);
388internal static void Decode(scoped ref ValueAsnReader reader, Asn1Tag expectedTag, out ValueRfc3161TstInfo decoded)
400private static void DecodeCore(scoped ref ValueAsnReader reader, Asn1Tag expectedTag, out ValueRfc3161TstInfo decoded)
418if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(Asn1Tag.Sequence))
427if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(Asn1Tag.Boolean))
438if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(Asn1Tag.Integer))
System\Security\Cryptography\Pkcs\Asn1\SigningCertificateAsn.xml.cs (8)
20Encode(writer, Asn1Tag.Sequence);
23internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
53return Decode(Asn1Tag.Sequence, encoded, ruleSet);
56internal static SigningCertificateAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
74Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded);
77internal static void Decode(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out SigningCertificateAsn decoded)
89private static void DecodeCore(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out SigningCertificateAsn decoded)
112if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(Asn1Tag.Sequence))
System\Security\Cryptography\Pkcs\Asn1\SigningCertificateV2Asn.xml.cs (8)
20Encode(writer, Asn1Tag.Sequence);
23internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
53return Decode(Asn1Tag.Sequence, encoded, ruleSet);
56internal static SigningCertificateV2Asn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
74Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded);
77internal static void Decode(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out SigningCertificateV2Asn decoded)
89private static void DecodeCore(ref ValueAsnReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out SigningCertificateV2Asn decoded)
112if (sequenceReader.HasData && sequenceReader.PeekTag().HasSameClassAndValue(Asn1Tag.Sequence))