111 instantiations of AsnWriter
InMemory.FunctionalTests (2)
src\Servers\Kestrel\shared\test\CertificateAuthority.cs (2)
369AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 515AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
src\Servers\Kestrel\shared\test\CertificateAuthority.cs (2)
369AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 515AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);
System.Net.Security (3)
System\Net\NegotiateAuthenticationPal.ManagedSpnego.cs (3)
142AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 169AsnWriter mechListWriter = new AsnWriter(AsnEncodingRules.DER); 334AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);
System.Security.Cryptography (54)
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pbkdf2Params.xml.cs (1)
54AsnWriter tmp = new AsnWriter(AsnEncodingRules.DER);
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\MacData.xml.cs (1)
52AsnWriter tmp = new AsnWriter(AsnEncodingRules.DER, initialCapacity: AsnManagedIntegerDerMaxEncodeSize);
src\libraries\Common\src\System\Security\Cryptography\Asn1\PssParamsAsn.xml.cs (4)
74AsnWriter tmp = new AsnWriter(AsnEncodingRules.DER); 88AsnWriter tmp = new AsnWriter(AsnEncodingRules.DER); 103AsnWriter tmp = new AsnWriter(AsnEncodingRules.DER, initialCapacity: AsnManagedIntegerDerMaxEncodeSize); 118AsnWriter tmp = new AsnWriter(AsnEncodingRules.DER, initialCapacity: AsnManagedIntegerDerMaxEncodeSize);
src\libraries\Common\src\System\Security\Cryptography\Asn1\X509ExtensionAsn.xml.cs (1)
53AsnWriter tmp = new AsnWriter(AsnEncodingRules.DER, initialCapacity: AsnBoolDerEncodeSize);
src\libraries\Common\src\System\Security\Cryptography\DSAKeyFormatHelper.cs (3)
230AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 242AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 274AsnWriter inner = new AsnWriter(AsnEncodingRules.DER);
src\libraries\Common\src\System\Security\Cryptography\EccKeyFormatHelper.cs (5)
248AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 461AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 478AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 516AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 828AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);
src\libraries\Common\src\System\Security\Cryptography\KeyFormatHelper.cs (1)
184AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);
src\libraries\Common\src\System\Security\Cryptography\KeyFormatHelper.Encrypted.cs (3)
221writer = new AsnWriter(AsnEncodingRules.DER); 337AsnWriter pkcs8Writer = new AsnWriter(AsnEncodingRules.BER); 373AsnWriter pkcs8Writer = new AsnWriter(AsnEncodingRules.BER);
src\libraries\Common\src\System\Security\Cryptography\RSAKeyFormatHelper.cs (4)
178AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 212AsnWriter writer = new AsnWriter(AsnEncodingRules.BER); 265AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 291AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);
src\libraries\Common\src\System\Security\Cryptography\X509Certificates\X509CertificateLoader.Pkcs12.cs (1)
894AsnWriter writer = new AsnWriter(AsnEncodingRules.BER);
System\Security\Cryptography\AsymmetricAlgorithmHelpers.Der.cs (1)
42AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);
System\Security\Cryptography\X509Certificates\Asn1\BasicConstraintsAsn.xml.cs (1)
44AsnWriter tmp = new AsnWriter(AsnEncodingRules.DER, initialCapacity: AsnBoolDerEncodeSize);
System\Security\Cryptography\X509Certificates\Asn1\TbsCertificateAsn.xml.cs (1)
58AsnWriter tmp = new AsnWriter(AsnEncodingRules.DER, initialCapacity: AsnManagedIntegerDerMaxEncodeSize);
System\Security\Cryptography\X509Certificates\CertificateRequest.cs (1)
879AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.Build.cs (1)
345AsnWriter writer = (_writer ??= new AsnWriter(AsnEncodingRules.DER));
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.CdpExtension.cs (1)
72writer = new AsnWriter(AsnEncodingRules.DER);
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.cs (1)
178AsnWriter writer = (_writer ??= new AsnWriter(AsnEncodingRules.DER));
System\Security\Cryptography\X509Certificates\ECDsaX509SignatureGenerator.cs (2)
57AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 96AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);
System\Security\Cryptography\X509Certificates\OpenSslX509Encoder.cs (1)
178AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);
System\Security\Cryptography\X509Certificates\Pkcs10CertificationRequestInfo.cs (1)
72AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);
System\Security\Cryptography\X509Certificates\Pkcs9ExtensionRequest.cs (1)
21AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);
System\Security\Cryptography\X509Certificates\PublicKey.cs (1)
287AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);
System\Security\Cryptography\X509Certificates\RSAPkcs1X509SignatureGenerator.cs (1)
83AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);
System\Security\Cryptography\X509Certificates\RSAPssX509SignatureGenerator.cs (1)
81AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);
System\Security\Cryptography\X509Certificates\SubjectAlternativeNameBuilder.cs (3)
55AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 70AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 91AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);
System\Security\Cryptography\X509Certificates\UnixExportProvider.cs (1)
100AsnWriter tmpWriter = new AsnWriter(AsnEncodingRules.DER);
System\Security\Cryptography\X509Certificates\X500DistinguishedNameBuilder.cs (1)
35private readonly AsnWriter _writer = new AsnWriter(AsnEncodingRules.DER);
System\Security\Cryptography\X509Certificates\X500NameEncoder.cs (2)
123AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 511AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);
System\Security\Cryptography\X509Certificates\X509AuthorityInformationAccessExtension.cs (1)
278AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);
System\Security\Cryptography\X509Certificates\X509AuthorityKeyIdentifierExtension.cs (3)
241AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 311AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 410AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);
System\Security\Cryptography\X509Certificates\X509BasicConstraintsExtension.cs (1)
157AsnWriter writer = new AsnWriter(AsnEncodingRules.DER, initialCapacity: 11);
System\Security\Cryptography\X509Certificates\X509EnhancedKeyUsageExtension.cs (1)
67AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);
System\Security\Cryptography\X509Certificates\X509KeyUsageExtension.cs (1)
58AsnWriter writer = new AsnWriter(AsnEncodingRules.DER, initialCapacity: 5);
System\Security\Cryptography\X509Certificates\X509SubjectKeyIdentifierExtension.cs (1)
141AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);
System.Security.Cryptography.Pkcs (50)
Internal\Cryptography\Pal\AnyOS\ManagedPal.Decrypt.cs (1)
128AsnWriter writer = new AsnWriter(AsnEncodingRules.BER);
Internal\Cryptography\Pal\AnyOS\ManagedPal.Encrypt.cs (2)
144AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 163AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);
Internal\Cryptography\PkcsHelpers.cs (4)
160AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 205AsnWriter writer = new AsnWriter(ruleSet); 548AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 557AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);
src\libraries\Common\src\System\Security\Cryptography\Asn1\OaepParamsAsn.xml.cs (3)
57AsnWriter tmp = new AsnWriter(AsnEncodingRules.DER); 71AsnWriter tmp = new AsnWriter(AsnEncodingRules.DER); 85AsnWriter tmp = new AsnWriter(AsnEncodingRules.DER);
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pbkdf2Params.xml.cs (1)
54AsnWriter tmp = new AsnWriter(AsnEncodingRules.DER);
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\MacData.xml.cs (1)
52AsnWriter tmp = new AsnWriter(AsnEncodingRules.DER, initialCapacity: AsnManagedIntegerDerMaxEncodeSize);
src\libraries\Common\src\System\Security\Cryptography\Asn1\PssParamsAsn.xml.cs (4)
74AsnWriter tmp = new AsnWriter(AsnEncodingRules.DER); 88AsnWriter tmp = new AsnWriter(AsnEncodingRules.DER); 103AsnWriter tmp = new AsnWriter(AsnEncodingRules.DER, initialCapacity: AsnManagedIntegerDerMaxEncodeSize); 118AsnWriter tmp = new AsnWriter(AsnEncodingRules.DER, initialCapacity: AsnManagedIntegerDerMaxEncodeSize);
src\libraries\Common\src\System\Security\Cryptography\Asn1\X509ExtensionAsn.xml.cs (1)
53AsnWriter tmp = new AsnWriter(AsnEncodingRules.DER, initialCapacity: AsnBoolDerEncodeSize);
src\libraries\Common\src\System\Security\Cryptography\KeyFormatHelper.cs (1)
184AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);
src\libraries\Common\src\System\Security\Cryptography\KeyFormatHelper.Encrypted.cs (3)
221writer = new AsnWriter(AsnEncodingRules.DER); 337AsnWriter pkcs8Writer = new AsnWriter(AsnEncodingRules.BER); 373AsnWriter pkcs8Writer = new AsnWriter(AsnEncodingRules.BER);
System\Security\Cryptography\Pkcs\Asn1\EssCertIdV2.xml.cs (1)
45AsnWriter tmp = new AsnWriter(AsnEncodingRules.DER);
System\Security\Cryptography\Pkcs\Asn1\Rfc3161TimeStampReq.xml.cs (1)
70AsnWriter tmp = new AsnWriter(AsnEncodingRules.DER, initialCapacity: AsnBoolDerEncodeSize);
System\Security\Cryptography\Pkcs\Asn1\Rfc3161TstInfo.xml.cs (1)
71AsnWriter tmp = new AsnWriter(AsnEncodingRules.DER, initialCapacity: AsnBoolDerEncodeSize);
System\Security\Cryptography\Pkcs\CmsSignature.cs (1)
223AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);
System\Security\Cryptography\Pkcs\CmsSigner.cs (2)
211AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 243AsnWriter attrsWriter = new AsnWriter(AsnEncodingRules.BER);
System\Security\Cryptography\Pkcs\Pkcs12Builder.cs (4)
175AsnWriter contentsWriter = new AsnWriter(AsnEncodingRules.BER); 236AsnWriter writer = new AsnWriter(AsnEncodingRules.BER); 318AsnWriter contentsWriter = new AsnWriter(AsnEncodingRules.BER); 319AsnWriter writer = new AsnWriter(AsnEncodingRules.BER);
System\Security\Cryptography\Pkcs\Pkcs12CertBag.cs (1)
118AsnWriter writer = new AsnWriter(AsnEncodingRules.BER);
System\Security\Cryptography\Pkcs\Pkcs12SafeBag.cs (1)
97AsnWriter writer = new AsnWriter(AsnEncodingRules.BER);
System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (4)
408AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 453writer = new AsnWriter(AsnEncodingRules.BER); 460writer = new AsnWriter(AsnEncodingRules.BER); 482AsnWriter valueWriter = new AsnWriter(AsnEncodingRules.DER);
System\Security\Cryptography\Pkcs\Pkcs12SecretBag.cs (1)
54AsnWriter writer = new AsnWriter(AsnEncodingRules.BER);
System\Security\Cryptography\Pkcs\Pkcs8PrivateKeyInfo.cs (1)
269AsnWriter writer = new AsnWriter(AsnEncodingRules.BER);
System\Security\Cryptography\Pkcs\Pkcs9LocalKeyId.cs (1)
28AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);
System\Security\Cryptography\Pkcs\Rfc3161TimestampRequest.cs (1)
329AsnWriter writer = new AsnWriter(ruleSet);
System\Security\Cryptography\Pkcs\Rfc3161TimestampTokenInfo.cs (2)
158AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 375AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);
System\Security\Cryptography\Pkcs\SignedCms.cs (4)
128AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 147AsnWriter detachedWriter = new AsnWriter(AsnEncodingRules.DER); 153AsnWriter attachedWriter = new AsnWriter(AsnEncodingRules.BER); 367AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);
System\Security\Cryptography\Pkcs\SignerInfo.cs (3)
153AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 297AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 601AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);
445 references to AsnWriter
InMemory.FunctionalTests (2)
src\Servers\Kestrel\shared\test\CertificateAuthority.cs (2)
369AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 515AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
src\Servers\Kestrel\shared\test\CertificateAuthority.cs (2)
369AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 515AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);
System.Formats.Asn1 (3)
System\Formats\Asn1\AsnEncodingRules.cs (1)
7/// Specifies the encoding ruleset for an <see cref="AsnReader"/> or <see cref="AsnWriter"/>.
System\Formats\Asn1\AsnWriter.cs (2)
36/// Creates a new <see cref="AsnWriter"/> with a given set of encoding rules. 55/// Initializes a new instance of <see cref="AsnWriter" /> with a given set of encoding rules and an initial capacity.
System.Net.Security (6)
src\libraries\Common\src\System\Security\Cryptography\Asn1Reader\AsnValueReader.cs (3)
224this AsnWriter writer, 238this AsnWriter writer, 251internal static ArraySegment<byte> RentAndEncode(this AsnWriter writer)
System\Net\NegotiateAuthenticationPal.ManagedSpnego.cs (3)
142AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 169AsnWriter mechListWriter = new AsnWriter(AsnEncodingRules.DER); 334AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);
System.Security.Cryptography (239)
src\libraries\Common\src\System\Security\Cryptography\Asn1\AlgorithmIdentifierAsn.xml.cs (2)
17internal readonly void Encode(AsnWriter writer) 22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
src\libraries\Common\src\System\Security\Cryptography\Asn1\AttributeAsn.xml.cs (2)
18internal readonly void Encode(AsnWriter writer) 23internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
src\libraries\Common\src\System\Security\Cryptography\Asn1\CurveAsn.xml.cs (2)
18internal readonly void Encode(AsnWriter writer) 23internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
src\libraries\Common\src\System\Security\Cryptography\Asn1\DigestInfoAsn.xml.cs (2)
17internal readonly void Encode(AsnWriter writer) 22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
src\libraries\Common\src\System\Security\Cryptography\Asn1\DirectoryStringAsn.xml.cs (1)
42internal readonly void Encode(AsnWriter writer)
src\libraries\Common\src\System\Security\Cryptography\Asn1\DssParms.xml.cs (2)
18internal readonly void Encode(AsnWriter writer) 23internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
src\libraries\Common\src\System\Security\Cryptography\Asn1\ECDomainParameters.xml.cs (1)
36internal readonly void Encode(AsnWriter writer)
src\libraries\Common\src\System\Security\Cryptography\Asn1\ECPrivateKey.xml.cs (2)
19internal readonly void Encode(AsnWriter writer) 24internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
src\libraries\Common\src\System\Security\Cryptography\Asn1\EdiPartyNameAsn.xml.cs (2)
17internal readonly void Encode(AsnWriter writer) 22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
src\libraries\Common\src\System\Security\Cryptography\Asn1\EncryptedPrivateKeyInfoAsn.xml.cs (2)
17internal readonly void Encode(AsnWriter writer) 22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
src\libraries\Common\src\System\Security\Cryptography\Asn1\FieldID.xml.cs (2)
17internal readonly void Encode(AsnWriter writer) 22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
src\libraries\Common\src\System\Security\Cryptography\Asn1\GeneralNameAsn.xml.cs (1)
50internal readonly void Encode(AsnWriter writer)
src\libraries\Common\src\System\Security\Cryptography\Asn1\OtherNameAsn.xml.cs (2)
17internal readonly void Encode(AsnWriter writer) 22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
src\libraries\Common\src\System\Security\Cryptography\Asn1\PBEParameter.xml.cs (2)
17internal readonly void Encode(AsnWriter writer) 22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
src\libraries\Common\src\System\Security\Cryptography\Asn1\PBES2Params.xml.cs (2)
17internal readonly void Encode(AsnWriter writer) 22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pbkdf2Params.xml.cs (3)
34internal readonly void Encode(AsnWriter writer) 39internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 54AsnWriter tmp = new AsnWriter(AsnEncodingRules.DER);
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pbkdf2SaltChoice.xml.cs (1)
36internal readonly void Encode(AsnWriter writer)
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\CertBagAsn.xml.cs (2)
17internal readonly void Encode(AsnWriter writer) 22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\MacData.xml.cs (3)
37internal readonly void Encode(AsnWriter writer) 42internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 52AsnWriter tmp = new AsnWriter(AsnEncodingRules.DER, initialCapacity: AsnManagedIntegerDerMaxEncodeSize);
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.xml.cs (2)
18internal readonly void Encode(AsnWriter writer) 23internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\SafeBagAsn.xml.cs (2)
19internal readonly void Encode(AsnWriter writer) 24internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\ContentInfoAsn.xml.cs (2)
17internal readonly void Encode(AsnWriter writer) 22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\EncryptedContentInfoAsn.xml.cs (2)
18internal readonly void Encode(AsnWriter writer) 23internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\EncryptedDataAsn.xml.cs (2)
19internal readonly void Encode(AsnWriter writer) 24internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
src\libraries\Common\src\System\Security\Cryptography\Asn1\PrivateKeyInfoAsn.xml.cs (2)
20internal readonly void Encode(AsnWriter writer) 25internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
src\libraries\Common\src\System\Security\Cryptography\Asn1\PssParamsAsn.xml.cs (6)
62internal readonly void Encode(AsnWriter writer) 67internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 74AsnWriter tmp = new AsnWriter(AsnEncodingRules.DER); 88AsnWriter tmp = new AsnWriter(AsnEncodingRules.DER); 103AsnWriter tmp = new AsnWriter(AsnEncodingRules.DER, initialCapacity: AsnManagedIntegerDerMaxEncodeSize); 118AsnWriter tmp = new AsnWriter(AsnEncodingRules.DER, initialCapacity: AsnManagedIntegerDerMaxEncodeSize);
src\libraries\Common\src\System\Security\Cryptography\Asn1\Rc2CbcParameters.xml.cs (2)
17internal readonly void Encode(AsnWriter writer) 22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
src\libraries\Common\src\System\Security\Cryptography\Asn1\RSAPrivateKeyAsn.xml.cs (2)
24internal readonly void Encode(AsnWriter writer) 29internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
src\libraries\Common\src\System\Security\Cryptography\Asn1\RSAPublicKeyAsn.xml.cs (2)
17internal readonly void Encode(AsnWriter writer) 22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
src\libraries\Common\src\System\Security\Cryptography\Asn1\SpecifiedECDomain.xml.cs (2)
22internal readonly void Encode(AsnWriter writer) 27internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
src\libraries\Common\src\System\Security\Cryptography\Asn1\SubjectPublicKeyInfoAsn.xml.cs (2)
17internal readonly void Encode(AsnWriter writer) 22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
src\libraries\Common\src\System\Security\Cryptography\Asn1\X509ExtensionAsn.xml.cs (3)
32internal readonly void Encode(AsnWriter writer) 37internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 53AsnWriter tmp = new AsnWriter(AsnEncodingRules.DER, initialCapacity: AsnBoolDerEncodeSize);
src\libraries\Common\src\System\Security\Cryptography\Asn1Reader\AsnValueReader.cs (3)
224this AsnWriter writer, 238this AsnWriter writer, 251internal static ArraySegment<byte> RentAndEncode(this AsnWriter writer)
src\libraries\Common\src\System\Security\Cryptography\DSAKeyFormatHelper.cs (7)
228internal static AsnWriter WriteSubjectPublicKeyInfo(in DSAParameters dsaParameters) 230AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 240internal static AsnWriter WritePkcs8(in DSAParameters dsaParameters) 242AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 253private static void WriteAlgorithmId(AsnWriter writer, in DSAParameters dsaParameters) 270private static void WriteKeyComponent(AsnWriter writer, byte[]? component, bool bitString) 274AsnWriter inner = new AsnWriter(AsnEncodingRules.DER);
src\libraries\Common\src\System\Security\Cryptography\EccKeyFormatHelper.cs (21)
248AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 454internal static AsnWriter WriteSubjectPublicKeyInfo(ECParameters ecParameters) 461AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 476private static AsnWriter WriteAlgorithmIdentifier(in ECParameters ecParameters) 478AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 483private static void WriteAlgorithmIdentifier(in ECParameters ecParameters, AsnWriter writer) 493internal static AsnWriter WritePkcs8PrivateKey(ECParameters ecParameters, AttributeAsn[]? attributes = null) 503AsnWriter ecPrivateKey = WriteEcPrivateKey(ecParameters, includeDomainParameters: false); 504AsnWriter algorithmIdentifier = WriteAlgorithmIdentifier(ecParameters); 505AsnWriter? attributeWriter = WritePrivateKeyInfoAttributes(attributes); 511private static AsnWriter? WritePrivateKeyInfoAttributes(AttributeAsn[]? attributes) 516AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 529private static void WriteEcParameters(ECParameters ecParameters, AsnWriter writer) 556private static void WriteSpecifiedECDomain(ECParameters ecParameters, AsnWriter writer) 739private static void WriteCurve(in ECCurve curve, AsnWriter writer) 753private static void WriteFieldElement(byte[] fieldElement, AsnWriter writer) 765private static void WriteUncompressedBasePoint(in ECParameters ecParameters, AsnWriter writer) 793private static void WriteUncompressedPublicKey(in ECParameters ecParameters, AsnWriter writer) 821internal static AsnWriter WriteECPrivateKey(in ECParameters ecParameters) 826private static AsnWriter WriteEcPrivateKey(in ECParameters ecParameters, bool includeDomainParameters) 828AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);
src\libraries\Common\src\System\Security\Cryptography\KeyBlobHelpers.cs (1)
69internal static void WriteKeyParameterInteger(this AsnWriter writer, ReadOnlySpan<byte> integer)
src\libraries\Common\src\System\Security\Cryptography\KeyFormatHelper.cs (5)
161internal static AsnWriter WritePkcs8( 162AsnWriter algorithmIdentifierWriter, 163AsnWriter privateKeyWriter, 164AsnWriter? attributesWriter = null) 184AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);
src\libraries\Common\src\System\Security\Cryptography\KeyFormatHelper.Encrypted.cs (11)
156internal static AsnWriter WriteEncryptedPkcs8( 158AsnWriter pkcs8Writer, 168internal static AsnWriter WriteEncryptedPkcs8( 170AsnWriter pkcs8Writer, 180private static AsnWriter WriteEncryptedPkcs8( 183AsnWriter pkcs8Writer, 194AsnWriter? writer = null; 319internal static AsnWriter ReencryptPkcs8( 337AsnWriter pkcs8Writer = new AsnWriter(AsnEncodingRules.BER); 355internal static AsnWriter ReencryptPkcs8( 373AsnWriter pkcs8Writer = new AsnWriter(AsnEncodingRules.BER);
src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (2)
314AsnWriter source, 1019AsnWriter writer,
src\libraries\Common\src\System\Security\Cryptography\RSAKeyFormatHelper.cs (15)
176internal static AsnWriter WriteSubjectPublicKeyInfo(ReadOnlySpan<byte> pkcs1PublicKey) 178AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 188internal static AsnWriter WriteSubjectPublicKeyInfo(in RSAParameters rsaParameters) 190AsnWriter pkcs1PublicKey = WritePkcs1PublicKey(rsaParameters); 199AsnWriter ret = WriteSubjectPublicKeyInfo(rented.AsSpan(0, written)); 206internal static AsnWriter WritePkcs8PrivateKey( 208AsnWriter? copyFrom = null) 212AsnWriter writer = new AsnWriter(AsnEncodingRules.BER); 236internal static AsnWriter WritePkcs8PrivateKey(in RSAParameters rsaParameters) 238AsnWriter pkcs1PrivateKey = WritePkcs1PrivateKey(rsaParameters); 242private static void WriteAlgorithmIdentifier(AsnWriter writer) 258internal static AsnWriter WritePkcs1PublicKey(in RSAParameters rsaParameters) 265AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 274internal static AsnWriter WritePkcs1PrivateKey(in RSAParameters rsaParameters) 291AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);
src\libraries\Common\src\System\Security\Cryptography\RSAOpenSsl.cs (4)
455AsnWriter writer = RSAKeyFormatHelper.WritePkcs8PrivateKey(parameters); 469AsnWriter writer = RSAKeyFormatHelper.WriteSubjectPublicKeyInfo(parameters); 503AsnWriter writer = RSAKeyFormatHelper.WriteSubjectPublicKeyInfo(source.Slice(0, read)); 619AsnWriter writer = RSAKeyFormatHelper.WritePkcs8PrivateKey(source.Slice(0, read));
src\libraries\Common\src\System\Security\Cryptography\X509Certificates\X509CertificateLoader.Pkcs12.cs (1)
894AsnWriter writer = new AsnWriter(AsnEncodingRules.BER);
System\Security\Cryptography\AsymmetricAlgorithmHelpers.Der.cs (4)
20AsnWriter writer = WriteIeee1363ToDer(input); 29AsnWriter writer = WriteIeee1363ToDer(input); 33private static AsnWriter WriteIeee1363ToDer(ReadOnlySpan<byte> input) 42AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);
System\Security\Cryptography\DSA.cs (8)
934AsnWriter pkcs8PrivateKey = WritePkcs8(); 936AsnWriter writer = KeyFormatHelper.WriteEncryptedPkcs8( 957AsnWriter pkcs8PrivateKey = WritePkcs8(); 958AsnWriter writer = KeyFormatHelper.WriteEncryptedPkcs8( 970AsnWriter writer = WritePkcs8(); 978AsnWriter writer = WriteSubjectPublicKeyInfo(); 982private unsafe AsnWriter WritePkcs8() 999private AsnWriter WriteSubjectPublicKeyInfo()
System\Security\Cryptography\ECAlgorithm.cs (8)
147AsnWriter pkcs8PrivateKey = EccKeyFormatHelper.WritePkcs8PrivateKey(ecParameters); 149AsnWriter writer = KeyFormatHelper.WriteEncryptedPkcs8( 219AsnWriter pkcs8PrivateKey = EccKeyFormatHelper.WritePkcs8PrivateKey(ecParameters); 221AsnWriter writer = KeyFormatHelper.WriteEncryptedPkcs8( 265AsnWriter writer = EccKeyFormatHelper.WritePkcs8PrivateKey(ecParameters); 301AsnWriter writer = EccKeyFormatHelper.WriteSubjectPublicKeyInfo(ecParameters); 623AsnWriter writer = EccKeyFormatHelper.WriteECPrivateKey(ecParameters); 659AsnWriter writer = EccKeyFormatHelper.WriteECPrivateKey(ecParameters);
System\Security\Cryptography\ECDiffieHellmanPublicKey.ExportParameters.cs (2)
53AsnWriter writer = EccKeyFormatHelper.WriteSubjectPublicKeyInfo(ecParameters); 71AsnWriter writer = EccKeyFormatHelper.WriteSubjectPublicKeyInfo(ecParameters);
System\Security\Cryptography\RSA.cs (13)
701AsnWriter pkcs1PrivateKey = WritePkcs1PrivateKey(); 707AsnWriter pkcs1PrivateKey = WritePkcs1PrivateKey(); 713AsnWriter pkcs1PublicKey = WritePkcs1PublicKey(); 719AsnWriter pkcs1PublicKey = WritePkcs1PublicKey(); 748AsnWriter writer = RSAKeyFormatHelper.WriteSubjectPublicKeyInfo(rented.AsSpan(0, pkcs1Size)); 761AsnWriter writer = WritePkcs8PrivateKey(); 765private unsafe AsnWriter WritePkcs8PrivateKey() 814AsnWriter pkcs8PrivateKey = WritePkcs8PrivateKey(); 816AsnWriter writer = KeyFormatHelper.WriteEncryptedPkcs8( 837AsnWriter pkcs8PrivateKey = WritePkcs8PrivateKey(); 839AsnWriter writer = KeyFormatHelper.WriteEncryptedPkcs8( 847private AsnWriter WritePkcs1PublicKey() 853private unsafe AsnWriter WritePkcs1PrivateKey()
System\Security\Cryptography\X509Certificates\Asn1\AccessDescriptionAsn.xml.cs (2)
17internal readonly void Encode(AsnWriter writer) 22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
System\Security\Cryptography\X509Certificates\Asn1\BasicConstraintsAsn.xml.cs (3)
31internal readonly void Encode(AsnWriter writer) 36internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 44AsnWriter tmp = new AsnWriter(AsnEncodingRules.DER, initialCapacity: AsnBoolDerEncodeSize);
System\Security\Cryptography\X509Certificates\Asn1\CertificateAsn.xml.cs (2)
18internal readonly void Encode(AsnWriter writer) 23internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
System\Security\Cryptography\X509Certificates\Asn1\CertificatePolicyMappingAsn.xml.cs (2)
17internal readonly void Encode(AsnWriter writer) 22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
System\Security\Cryptography\X509Certificates\Asn1\CertificateTemplateAsn.xml.cs (2)
18internal readonly void Encode(AsnWriter writer) 23internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
System\Security\Cryptography\X509Certificates\Asn1\CertificationRequestAsn.xml.cs (2)
18internal readonly void Encode(AsnWriter writer) 23internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
System\Security\Cryptography\X509Certificates\Asn1\CertificationRequestInfoAsn.xml.cs (2)
20internal readonly void Encode(AsnWriter writer) 25internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
System\Security\Cryptography\X509Certificates\Asn1\DistributionPointAsn.xml.cs (2)
19internal readonly void Encode(AsnWriter writer) 24internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
System\Security\Cryptography\X509Certificates\Asn1\DistributionPointNameAsn.xml.cs (1)
37internal readonly void Encode(AsnWriter writer)
System\Security\Cryptography\X509Certificates\Asn1\PolicyConstraintsAsn.xml.cs (2)
17internal readonly void Encode(AsnWriter writer) 22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
System\Security\Cryptography\X509Certificates\Asn1\PolicyInformationAsn.xml.cs (2)
17internal readonly void Encode(AsnWriter writer) 22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
System\Security\Cryptography\X509Certificates\Asn1\TbsCertificateAsn.xml.cs (3)
45internal readonly void Encode(AsnWriter writer) 50internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 58AsnWriter tmp = new AsnWriter(AsnEncodingRules.DER, initialCapacity: AsnManagedIntegerDerMaxEncodeSize);
System\Security\Cryptography\X509Certificates\Asn1\TimeAsn.xml.cs (1)
36internal readonly void Encode(AsnWriter writer)
System\Security\Cryptography\X509Certificates\Asn1\ValidityAsn.xml.cs (2)
17internal readonly void Encode(AsnWriter writer) 22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
System\Security\Cryptography\X509Certificates\CertificateRequest.cs (1)
879AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.Build.cs (1)
345AsnWriter writer = (_writer ??= new AsnWriter(AsnEncodingRules.DER));
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.CdpExtension.cs (1)
61AsnWriter? writer = null;
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.cs (3)
19private AsnWriter? _writer; 178AsnWriter writer = (_writer ??= new AsnWriter(AsnEncodingRules.DER)); 285private static void WriteX509Time(AsnWriter writer, DateTimeOffset time)
System\Security\Cryptography\X509Certificates\ECDsaX509SignatureGenerator.cs (2)
57AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 96AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);
System\Security\Cryptography\X509Certificates\OpenSslX509Encoder.cs (1)
178AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);
System\Security\Cryptography\X509Certificates\Pkcs10CertificationRequestInfo.cs (1)
72AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);
System\Security\Cryptography\X509Certificates\Pkcs9ExtensionRequest.cs (1)
21AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);
System\Security\Cryptography\X509Certificates\PublicKey.cs (2)
275internal AsnWriter EncodeSubjectPublicKeyInfo() 287AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);
System\Security\Cryptography\X509Certificates\RSAPkcs1X509SignatureGenerator.cs (1)
83AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);
System\Security\Cryptography\X509Certificates\RSAPssX509SignatureGenerator.cs (1)
81AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);
System\Security\Cryptography\X509Certificates\SubjectAlternativeNameBuilder.cs (3)
55AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 70AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 91AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);
System\Security\Cryptography\X509Certificates\UnixExportProvider.cs (7)
100AsnWriter tmpWriter = new AsnWriter(AsnEncodingRules.DER); 176AsnWriter tmpWriter, 224AsnWriter tmpWriter, 289private static ArraySegment<byte> EncodeKeys(AsnWriter tmpWriter, SafeBagAsn[] keyBags, int keyCount) 317AsnWriter tmpWriter, 397AsnWriter tmpWriter, 481AsnWriter tmpWriter,
System\Security\Cryptography\X509Certificates\X500DistinguishedNameBuilder.cs (1)
35private readonly AsnWriter _writer = new AsnWriter(AsnEncodingRules.DER);
System\Security\Cryptography\X509Certificates\X500NameEncoder.cs (3)
123AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 511AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 645private static void WriteCryptoCharacterString(AsnWriter writer, UniversalTagNumber tagNumber, ReadOnlySpan<char> data)
System\Security\Cryptography\X509Certificates\X509AuthorityInformationAccessExtension.cs (2)
278AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 281static void WriteAccessMethod(AsnWriter writer, string oid, string value)
System\Security\Cryptography\X509Certificates\X509AuthorityKeyIdentifierExtension.cs (3)
241AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 311AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 410AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);
System\Security\Cryptography\X509Certificates\X509BasicConstraintsExtension.cs (1)
157AsnWriter writer = new AsnWriter(AsnEncodingRules.DER, initialCapacity: 11);
System\Security\Cryptography\X509Certificates\X509EnhancedKeyUsageExtension.cs (1)
67AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);
System\Security\Cryptography\X509Certificates\X509KeyUsageExtension.cs (1)
58AsnWriter writer = new AsnWriter(AsnEncodingRules.DER, initialCapacity: 5);
System\Security\Cryptography\X509Certificates\X509SubjectKeyIdentifierExtension.cs (2)
141AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 217AsnWriter writer = key.EncodeSubjectPublicKeyInfo();
System.Security.Cryptography.Pkcs (193)
Internal\Cryptography\Pal\AnyOS\ManagedPal.Decrypt.cs (1)
128AsnWriter writer = new AsnWriter(AsnEncodingRules.BER);
Internal\Cryptography\Pal\AnyOS\ManagedPal.Encrypt.cs (2)
144AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 163AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);
Internal\Cryptography\PkcsHelpers.cs (4)
160AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 205AsnWriter writer = new AsnWriter(ruleSet); 548AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 557AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);
src\libraries\Common\src\System\Security\Cryptography\Asn1\AlgorithmIdentifierAsn.xml.cs (2)
17internal readonly void Encode(AsnWriter writer) 22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
src\libraries\Common\src\System\Security\Cryptography\Asn1\AttributeAsn.xml.cs (2)
18internal readonly void Encode(AsnWriter writer) 23internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
src\libraries\Common\src\System\Security\Cryptography\Asn1\DigestInfoAsn.xml.cs (2)
17internal readonly void Encode(AsnWriter writer) 22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
src\libraries\Common\src\System\Security\Cryptography\Asn1\DirectoryStringAsn.xml.cs (1)
42internal readonly void Encode(AsnWriter writer)
src\libraries\Common\src\System\Security\Cryptography\Asn1\EdiPartyNameAsn.xml.cs (2)
17internal readonly void Encode(AsnWriter writer) 22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
src\libraries\Common\src\System\Security\Cryptography\Asn1\EncryptedPrivateKeyInfoAsn.xml.cs (2)
17internal readonly void Encode(AsnWriter writer) 22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
src\libraries\Common\src\System\Security\Cryptography\Asn1\GeneralNameAsn.xml.cs (1)
50internal readonly void Encode(AsnWriter writer)
src\libraries\Common\src\System\Security\Cryptography\Asn1\OaepParamsAsn.xml.cs (5)
45internal readonly void Encode(AsnWriter writer) 50internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 57AsnWriter tmp = new AsnWriter(AsnEncodingRules.DER); 71AsnWriter tmp = new AsnWriter(AsnEncodingRules.DER); 85AsnWriter tmp = new AsnWriter(AsnEncodingRules.DER);
src\libraries\Common\src\System\Security\Cryptography\Asn1\OtherNameAsn.xml.cs (2)
17internal readonly void Encode(AsnWriter writer) 22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
src\libraries\Common\src\System\Security\Cryptography\Asn1\PBEParameter.xml.cs (2)
17internal readonly void Encode(AsnWriter writer) 22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
src\libraries\Common\src\System\Security\Cryptography\Asn1\PBES2Params.xml.cs (2)
17internal readonly void Encode(AsnWriter writer) 22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pbkdf2Params.xml.cs (3)
34internal readonly void Encode(AsnWriter writer) 39internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 54AsnWriter tmp = new AsnWriter(AsnEncodingRules.DER);
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pbkdf2SaltChoice.xml.cs (1)
36internal readonly void Encode(AsnWriter writer)
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\CertBagAsn.xml.cs (2)
17internal readonly void Encode(AsnWriter writer) 22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\MacData.xml.cs (3)
37internal readonly void Encode(AsnWriter writer) 42internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 52AsnWriter tmp = new AsnWriter(AsnEncodingRules.DER, initialCapacity: AsnManagedIntegerDerMaxEncodeSize);
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.xml.cs (2)
18internal readonly void Encode(AsnWriter writer) 23internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\SafeBagAsn.xml.cs (2)
19internal readonly void Encode(AsnWriter writer) 24internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\ContentInfoAsn.xml.cs (2)
17internal readonly void Encode(AsnWriter writer) 22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\EncryptedContentInfoAsn.xml.cs (2)
18internal readonly void Encode(AsnWriter writer) 23internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\EncryptedDataAsn.xml.cs (2)
19internal readonly void Encode(AsnWriter writer) 24internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
src\libraries\Common\src\System\Security\Cryptography\Asn1\PrivateKeyInfoAsn.xml.cs (2)
20internal readonly void Encode(AsnWriter writer) 25internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
src\libraries\Common\src\System\Security\Cryptography\Asn1\PssParamsAsn.xml.cs (6)
62internal readonly void Encode(AsnWriter writer) 67internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 74AsnWriter tmp = new AsnWriter(AsnEncodingRules.DER); 88AsnWriter tmp = new AsnWriter(AsnEncodingRules.DER); 103AsnWriter tmp = new AsnWriter(AsnEncodingRules.DER, initialCapacity: AsnManagedIntegerDerMaxEncodeSize); 118AsnWriter tmp = new AsnWriter(AsnEncodingRules.DER, initialCapacity: AsnManagedIntegerDerMaxEncodeSize);
src\libraries\Common\src\System\Security\Cryptography\Asn1\Rc2CbcParameters.xml.cs (2)
17internal readonly void Encode(AsnWriter writer) 22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
src\libraries\Common\src\System\Security\Cryptography\Asn1\SubjectPublicKeyInfoAsn.xml.cs (2)
17internal readonly void Encode(AsnWriter writer) 22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
src\libraries\Common\src\System\Security\Cryptography\Asn1\X509ExtensionAsn.xml.cs (3)
32internal readonly void Encode(AsnWriter writer) 37internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 53AsnWriter tmp = new AsnWriter(AsnEncodingRules.DER, initialCapacity: AsnBoolDerEncodeSize);
src\libraries\Common\src\System\Security\Cryptography\Asn1Reader\AsnValueReader.cs (3)
224this AsnWriter writer, 238this AsnWriter writer, 251internal static ArraySegment<byte> RentAndEncode(this AsnWriter writer)
src\libraries\Common\src\System\Security\Cryptography\KeyFormatHelper.cs (5)
161internal static AsnWriter WritePkcs8( 162AsnWriter algorithmIdentifierWriter, 163AsnWriter privateKeyWriter, 164AsnWriter? attributesWriter = null) 184AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);
src\libraries\Common\src\System\Security\Cryptography\KeyFormatHelper.Encrypted.cs (11)
156internal static AsnWriter WriteEncryptedPkcs8( 158AsnWriter pkcs8Writer, 168internal static AsnWriter WriteEncryptedPkcs8( 170AsnWriter pkcs8Writer, 180private static AsnWriter WriteEncryptedPkcs8( 183AsnWriter pkcs8Writer, 194AsnWriter? writer = null; 319internal static AsnWriter ReencryptPkcs8( 337AsnWriter pkcs8Writer = new AsnWriter(AsnEncodingRules.BER); 355internal static AsnWriter ReencryptPkcs8( 373AsnWriter pkcs8Writer = new AsnWriter(AsnEncodingRules.BER);
src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (2)
314AsnWriter source, 1019AsnWriter writer,
System\Security\Cryptography\Pkcs\Asn1\CadesIssuerSerial.xml.cs (2)
18internal readonly void Encode(AsnWriter writer) 23internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
System\Security\Cryptography\Pkcs\Asn1\CertificateChoiceAsn.xml.cs (1)
42internal readonly void Encode(AsnWriter writer)
System\Security\Cryptography\Pkcs\Asn1\EncapsulatedContentInfoAsn.xml.cs (2)
17internal readonly void Encode(AsnWriter writer) 22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
System\Security\Cryptography\Pkcs\Asn1\EnvelopedDataAsn.xml.cs (2)
21internal readonly void Encode(AsnWriter writer) 26internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
System\Security\Cryptography\Pkcs\Asn1\EssCertId.xml.cs (2)
17internal readonly void Encode(AsnWriter writer) 22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
System\Security\Cryptography\Pkcs\Asn1\EssCertIdV2.xml.cs (3)
33internal readonly void Encode(AsnWriter writer) 38internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 45AsnWriter tmp = new AsnWriter(AsnEncodingRules.DER);
System\Security\Cryptography\Pkcs\Asn1\IssuerAndSerialNumberAsn.xml.cs (2)
17internal readonly void Encode(AsnWriter writer) 22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
System\Security\Cryptography\Pkcs\Asn1\KeyAgreeRecipientIdentifierAsn.xml.cs (1)
36internal readonly void Encode(AsnWriter writer)
System\Security\Cryptography\Pkcs\Asn1\KeyAgreeRecipientInfoAsn.xml.cs (2)
21internal readonly void Encode(AsnWriter writer) 26internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
System\Security\Cryptography\Pkcs\Asn1\KeyTransRecipientInfoAsn.xml.cs (2)
19internal readonly void Encode(AsnWriter writer) 24internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
System\Security\Cryptography\Pkcs\Asn1\MessageImprint.xml.cs (2)
17internal readonly void Encode(AsnWriter writer) 22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
System\Security\Cryptography\Pkcs\Asn1\OriginatorIdentifierOrKeyAsn.xml.cs (1)
38internal readonly void Encode(AsnWriter writer)
System\Security\Cryptography\Pkcs\Asn1\OriginatorInfoAsn.xml.cs (2)
18internal readonly void Encode(AsnWriter writer) 23internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
System\Security\Cryptography\Pkcs\Asn1\OriginatorPublicKeyAsn.xml.cs (2)
17internal readonly void Encode(AsnWriter writer) 22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
System\Security\Cryptography\Pkcs\Asn1\OtherCertificateFormat.xml.cs (2)
17internal readonly void Encode(AsnWriter writer) 22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
System\Security\Cryptography\Pkcs\Asn1\OtherKeyAttributeAsn.xml.cs (2)
17internal readonly void Encode(AsnWriter writer) 22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
System\Security\Cryptography\Pkcs\Asn1\PkiStatusInfo.xml.cs (2)
18internal readonly void Encode(AsnWriter writer) 23internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
System\Security\Cryptography\Pkcs\Asn1\PolicyInformation.xml.cs (2)
18internal readonly void Encode(AsnWriter writer) 23internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
System\Security\Cryptography\Pkcs\Asn1\PolicyQualifierInfo.xml.cs (2)
17internal readonly void Encode(AsnWriter writer) 22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
System\Security\Cryptography\Pkcs\Asn1\RecipientEncryptedKeyAsn.xml.cs (2)
17internal readonly void Encode(AsnWriter writer) 22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
System\Security\Cryptography\Pkcs\Asn1\RecipientIdentifierAsn.xml.cs (1)
36internal readonly void Encode(AsnWriter writer)
System\Security\Cryptography\Pkcs\Asn1\RecipientInfoAsn.xml.cs (1)
36internal readonly void Encode(AsnWriter writer)
System\Security\Cryptography\Pkcs\Asn1\RecipientKeyIdentifier.xml.cs (2)
18internal readonly void Encode(AsnWriter writer) 23internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
System\Security\Cryptography\Pkcs\Asn1\Rfc3161Accuracy.xml.cs (2)
18internal readonly void Encode(AsnWriter writer) 23internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
System\Security\Cryptography\Pkcs\Asn1\Rfc3161TimeStampReq.xml.cs (3)
36internal readonly void Encode(AsnWriter writer) 41internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 70AsnWriter tmp = new AsnWriter(AsnEncodingRules.DER, initialCapacity: AsnBoolDerEncodeSize);
System\Security\Cryptography\Pkcs\Asn1\Rfc3161TimeStampResp.xml.cs (2)
17internal readonly void Encode(AsnWriter writer) 22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
System\Security\Cryptography\Pkcs\Asn1\Rfc3161TstInfo.xml.cs (3)
40internal readonly void Encode(AsnWriter writer) 45internal readonly void Encode(AsnWriter writer, Asn1Tag tag) 71AsnWriter tmp = new AsnWriter(AsnEncodingRules.DER, initialCapacity: AsnBoolDerEncodeSize);
System\Security\Cryptography\Pkcs\Asn1\SecretBagAsn.xml.cs (2)
17internal readonly void Encode(AsnWriter writer) 22internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
System\Security\Cryptography\Pkcs\Asn1\SignedAttributesSet.xml.cs (1)
35internal readonly void Encode(AsnWriter writer)
System\Security\Cryptography\Pkcs\Asn1\SignedDataAsn.xml.cs (2)
22internal readonly void Encode(AsnWriter writer) 27internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
System\Security\Cryptography\Pkcs\Asn1\SignerIdentifierAsn.xml.cs (1)
36internal readonly void Encode(AsnWriter writer)
System\Security\Cryptography\Pkcs\Asn1\SignerInfoAsn.xml.cs (2)
23internal readonly void Encode(AsnWriter writer) 28internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
System\Security\Cryptography\Pkcs\Asn1\SigningCertificateAsn.xml.cs (2)
18internal readonly void Encode(AsnWriter writer) 23internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
System\Security\Cryptography\Pkcs\Asn1\SigningCertificateV2Asn.xml.cs (2)
18internal readonly void Encode(AsnWriter writer) 23internal readonly void Encode(AsnWriter writer, Asn1Tag tag)
System\Security\Cryptography\Pkcs\CmsSignature.cs (1)
223AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);
System\Security\Cryptography\Pkcs\CmsSigner.cs (2)
211AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 243AsnWriter attrsWriter = new AsnWriter(AsnEncodingRules.BER);
System\Security\Cryptography\Pkcs\Pkcs12Builder.cs (4)
175AsnWriter contentsWriter = new AsnWriter(AsnEncodingRules.BER); 236AsnWriter writer = new AsnWriter(AsnEncodingRules.BER); 318AsnWriter contentsWriter = new AsnWriter(AsnEncodingRules.BER); 319AsnWriter writer = new AsnWriter(AsnEncodingRules.BER);
System\Security\Cryptography\Pkcs\Pkcs12CertBag.cs (1)
118AsnWriter writer = new AsnWriter(AsnEncodingRules.BER);
System\Security\Cryptography\Pkcs\Pkcs12SafeBag.cs (5)
50AsnWriter writer = EncodeToNewWriter(); 63AsnWriter writer = EncodeToNewWriter(); 67internal void EncodeTo(AsnWriter writer) 95private AsnWriter EncodeToNewWriter() 97AsnWriter writer = new AsnWriter(AsnEncodingRules.BER);
System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (6)
377AsnWriter contentsWriter = Encode(); 408AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 446internal AsnWriter Encode() 448AsnWriter writer; 478AsnWriter contentsWriter = Encode(); 482AsnWriter valueWriter = new AsnWriter(AsnEncodingRules.DER);
System\Security\Cryptography\Pkcs\Pkcs12SafeContentsBag.cs (1)
23AsnWriter writer = copyFrom.Encode();
System\Security\Cryptography\Pkcs\Pkcs12SecretBag.cs (1)
54AsnWriter writer = new AsnWriter(AsnEncodingRules.BER);
System\Security\Cryptography\Pkcs\Pkcs8PrivateKeyInfo.cs (12)
97AsnWriter writer = WritePkcs8(); 113AsnWriter pkcs8 = WritePkcs8(); 114AsnWriter writer = KeyFormatHelper.WriteEncryptedPkcs8(password, pkcs8, pbeParameters); 132AsnWriter pkcs8 = WritePkcs8(); 133AsnWriter writer = KeyFormatHelper.WriteEncryptedPkcs8(passwordBytes, pkcs8, pbeParameters); 139AsnWriter writer = WritePkcs8(); 159AsnWriter pkcs8 = WritePkcs8(); 160AsnWriter writer = KeyFormatHelper.WriteEncryptedPkcs8(password, pkcs8, pbeParameters); 180AsnWriter pkcs8 = WritePkcs8(); 181AsnWriter writer = KeyFormatHelper.WriteEncryptedPkcs8(passwordBytes, pkcs8, pbeParameters); 247private AsnWriter WritePkcs8() 269AsnWriter writer = new AsnWriter(AsnEncodingRules.BER);
System\Security\Cryptography\Pkcs\Pkcs9LocalKeyId.cs (1)
28AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);
System\Security\Cryptography\Pkcs\Rfc3161TimestampRequest.cs (1)
329AsnWriter writer = new AsnWriter(ruleSet);
System\Security\Cryptography\Pkcs\Rfc3161TimestampTokenInfo.cs (2)
158AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 375AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);
System\Security\Cryptography\Pkcs\SignedCms.cs (4)
128AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 147AsnWriter detachedWriter = new AsnWriter(AsnEncodingRules.DER); 153AsnWriter attachedWriter = new AsnWriter(AsnEncodingRules.BER); 367AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);
System\Security\Cryptography\Pkcs\SignerInfo.cs (3)
153AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 297AsnWriter writer = new AsnWriter(AsnEncodingRules.DER); 601AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);