84 references to Encode
InMemory.FunctionalTests (6)
src\Servers\Kestrel\shared\test\CertificateAuthority.cs (6)
377byte[] signatureAlgId = writer.Encode(); 473byte[] tbsCertList = writer.Encode(); 497return writer.Encode(); 610byte[] tbsResponseData = writer.Encode(); 656byte[] responseBytes = writer.Encode(); 671return writer.Encode();
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (6)
src\Servers\Kestrel\shared\test\CertificateAuthority.cs (6)
377byte[] signatureAlgId = writer.Encode(); 473byte[] tbsCertList = writer.Encode(); 497return writer.Encode(); 610byte[] tbsResponseData = writer.Encode(); 656byte[] responseBytes = writer.Encode(); 671return writer.Encode();
System.Net.Security (3)
System\Net\NegotiateAuthenticationPal.ManagedSpnego.cs (3)
197_spnegoMechList = mechListWriter.Encode(); 213return writer.Encode(); 359return writer.Encode();
System.Security.Cryptography (33)
src\libraries\Common\src\System\Security\Cryptography\X509Certificates\X509CertificateLoader.Pkcs12.cs (2)
912safeContents.Content = writer.Encode(); 920byte[] authSafe = writer.Encode();
System\Security\Cryptography\AsymmetricAlgorithmHelpers.Der.cs (1)
21return writer.Encode();
System\Security\Cryptography\ECAlgorithm.cs (1)
624return writer.Encode();
System\Security\Cryptography\ECDiffieHellmanPublicKey.ExportParameters.cs (1)
72return writer.Encode();
System\Security\Cryptography\RSA.cs (2)
702return pkcs1PrivateKey.Encode(); 714return pkcs1PublicKey.Encode();
System\Security\Cryptography\X509Certificates\CertificateRequest.cs (1)
882byte[] encodedTbsCertificate = writer.Encode();
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.Build.cs (2)
424byte[] tbsCertList = writer.Encode(); 437byte[] crl = writer.Encode();
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.cs (1)
196extensions = writer.Encode();
System\Security\Cryptography\X509Certificates\ECDsaX509SignatureGenerator.cs (2)
61return writer.Encode(); 98curveOidEncoded = writer.Encode();
System\Security\Cryptography\X509Certificates\Pkcs10CertificationRequestInfo.cs (2)
74byte[] encodedRequestInfo = writer.Encode(); 85return writer.Encode();
System\Security\Cryptography\X509Certificates\Pkcs9ExtensionRequest.cs (1)
31return writer.Encode();
System\Security\Cryptography\X509Certificates\PublicKey.cs (1)
128EncodeSubjectPublicKeyInfo().Encode();
System\Security\Cryptography\X509Certificates\RSAPkcs1X509SignatureGenerator.cs (1)
88return writer.Encode();
System\Security\Cryptography\X509Certificates\RSAPssX509SignatureGenerator.cs (3)
88parameters.MaskGenAlgorithm.Parameters = writer.Encode(); 96Parameters = writer.Encode(), 101return writer.Encode();
System\Security\Cryptography\X509Certificates\SubjectAlternativeNameBuilder.cs (2)
57byte[] otherNameValue = writer.Encode(); 93_encodedNames.Add(writer.Encode());
System\Security\Cryptography\X509Certificates\UnixExportProvider.cs (2)
188CertValue = tmpWriter.Encode(), 562return tmpWriter.Encode();
System\Security\Cryptography\X509Certificates\X500DistinguishedNameBuilder.cs (1)
379_encodedComponents.Add(_writer.Encode());
System\Security\Cryptography\X509Certificates\X500NameEncoder.cs (2)
133return writer.Encode(); 557return writer.Encode();
System\Security\Cryptography\X509Certificates\X509AuthorityInformationAccessExtension.cs (1)
333return writer.Encode();
System\Security\Cryptography\X509Certificates\X509BasicConstraintsExtension.cs (1)
159return writer.Encode();
System\Security\Cryptography\X509Certificates\X509EnhancedKeyUsageExtension.cs (1)
77return writer.Encode();
System\Security\Cryptography\X509Certificates\X509KeyUsageExtension.cs (1)
60return writer.Encode();
System\Security\Cryptography\X509Certificates\X509SubjectKeyIdentifierExtension.cs (1)
143return writer.Encode();
System.Security.Cryptography.Pkcs (36)
Internal\Cryptography\Pal\AnyOS\ManagedPal.Decrypt.cs (1)
133byte[] encoded = writer.Encode();
Internal\Cryptography\Pal\AnyOS\ManagedPal.Encrypt.cs (2)
146return PkcsHelpers.EncodeContentInfo(writer.Encode(), Oids.Pkcs7Enveloped); 165parameterBytes = writer.Encode();
Internal\Cryptography\PkcsHelpers.cs (4)
169normalizedValue = writer.Encode(); 207return writer.Encode(); 550return writer.Encode(); 574return writer.Encode();
System\Security\Cryptography\Pkcs\CmsSignature.cs (1)
261return writer.Encode();
System\Security\Cryptography\Pkcs\CmsSigner.cs (3)
218AttrValues = new[] { new ReadOnlyMemory<byte>(writer.Encode()) }, 230AttrValues = new[] { new ReadOnlyMemory<byte>(writer.Encode()) }, 245newSignerInfo.SignedAttributes = attrsWriter.Encode();
System\Security\Cryptography\Pkcs\Pkcs12Builder.cs (2)
291_sealedData = writer.Encode(); 354_sealedData = writer.Encode();
System\Security\Cryptography\Pkcs\Pkcs12CertBag.cs (1)
120return writer.Encode();
System\Security\Cryptography\Pkcs\Pkcs12SafeBag.cs (1)
51return writer.Encode();
System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (4)
437return writer.Encode(); 492Content = valueWriter.Encode(), 501Content = contentsWriter.Encode(), 510Content = contentsWriter.Encode(),
System\Security\Cryptography\Pkcs\Pkcs12SafeContentsBag.cs (1)
24return Decode(writer.Encode());
System\Security\Cryptography\Pkcs\Pkcs12SecretBag.cs (1)
56return writer.Encode();
System\Security\Cryptography\Pkcs\Pkcs8PrivateKeyInfo.cs (3)
98return writer.Encode(); 116return writer.Encode(); 134return writer.Encode();
System\Security\Cryptography\Pkcs\Pkcs9LocalKeyId.cs (1)
30RawData = writer.Encode();
System\Security\Cryptography\Pkcs\Rfc3161TimestampRequest.cs (2)
332byte[] encodedBytes = writer.Encode(); 339_encodedBytes = writer.Encode(),
System\Security\Cryptography\Pkcs\Rfc3161TimestampTokenInfo.cs (2)
160_tsaNameBytes = writer.Encode(); 377return writer.Encode();
System\Security\Cryptography\Pkcs\SignedCms.cs (4)
130return PkcsHelpers.EncodeContentInfo(writer.Encode(), Oids.Pkcs7Signed); 149copy = SignedDataAsn.Decode(detachedWriter.Encode(), AsnEncodingRules.BER); 155return PkcsHelpers.EncodeContentInfo(attachedWriter.Encode(), Oids.Pkcs7Signed); 370_signedData.EncapContentInfo.Content = writer.Encode();
System\Security\Cryptography\Pkcs\SignerInfo.cs (3)
155counterSignerBytes = writer.Encode(); 303AttrValues = new[] { new ReadOnlyMemory<byte>(writer.Encode()) }, 648byte[] encoded = writer.Encode();