109 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 (58)
src\libraries\Common\src\Internal\Cryptography\PkcsHelpers.cs (3)
79return writer.Encode(); 306return writer.Encode(); 371normalizedValue = writer.Encode();
src\libraries\Common\src\System\Security\Cryptography\MLDsa.cs (3)
206return writer.Encode(); 370return writer.Encode(); 412return writer.Encode();
src\libraries\Common\src\System\Security\Cryptography\MLKem.cs (3)
643return ExportSubjectPublicKeyInfoCore().Encode(); 953return writer.Encode(); 993return writer.Encode();
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Builder.cs (2)
282_sealedData = writer.Encode(); 345_sealedData = writer.Encode();
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12CertBag.cs (1)
125return writer.Encode();
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeBag.cs (1)
57return writer.Encode();
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (4)
421return writer.Encode(); 476Content = valueWriter.Encode(), 485Content = contentsWriter.Encode(), 494Content = contentsWriter.Encode(),
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeContentsBag.cs (1)
30return Decode(writer.Encode());
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SecretBag.cs (1)
62return writer.Encode();
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs8PrivateKeyInfo.cs (3)
98return writer.Encode(); 113return writer.Encode(); 128return writer.Encode();
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs9LocalKeyId.cs (1)
36RawData = writer.Encode();
src\libraries\Common\src\System\Security\Cryptography\SlhDsa.cs (3)
213return writer.Encode(); 378return writer.Encode(); 421return writer.Encode();
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)
996byte[] encodedTbsCertificate = writer.Encode();
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.Build.cs (2)
436byte[] tbsCertList = writer.Encode(); 449byte[] 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\MLDsaX509SignatureGenerator.cs (1)
35return writer.Encode();
System\Security\Cryptography\X509Certificates\Pkcs10CertificationRequestInfo.cs (2)
78byte[] encodedRequestInfo = writer.Encode(); 89return writer.Encode();
System\Security\Cryptography\X509Certificates\Pkcs9ExtensionRequest.cs (1)
31return writer.Encode();
System\Security\Cryptography\X509Certificates\PublicKey.cs (1)
150EncodeSubjectPublicKeyInfo().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\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)
147return PkcsHelpers.EncodeContentInfo(writer.Encode(), Oids.Pkcs7Enveloped); 166parameterBytes = writer.Encode();
Internal\Cryptography\PkcsHelpers.cs (1)
126return writer.Encode();
src\libraries\Common\src\Internal\Cryptography\PkcsHelpers.cs (3)
79return writer.Encode(); 306return writer.Encode(); 371normalizedValue = writer.Encode();
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Builder.cs (2)
282_sealedData = writer.Encode(); 345_sealedData = writer.Encode();
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12CertBag.cs (1)
125return writer.Encode();
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeBag.cs (1)
57return writer.Encode();
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (4)
421return writer.Encode(); 476Content = valueWriter.Encode(), 485Content = contentsWriter.Encode(), 494Content = contentsWriter.Encode(),
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeContentsBag.cs (1)
30return Decode(writer.Encode());
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SecretBag.cs (1)
62return writer.Encode();
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs8PrivateKeyInfo.cs (3)
98return writer.Encode(); 113return writer.Encode(); 128return writer.Encode();
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs9LocalKeyId.cs (1)
36RawData = writer.Encode();
System\Security\Cryptography\Pkcs\CmsSignature.cs (1)
261return writer.Encode();
System\Security\Cryptography\Pkcs\CmsSigner.cs (3)
238AttrValues = new[] { new ReadOnlyMemory<byte>(writer.Encode()) }, 250AttrValues = new[] { new ReadOnlyMemory<byte>(writer.Encode()) }, 265newSignerInfo.SignedAttributes = attrsWriter.Encode();
System\Security\Cryptography\Pkcs\Rfc3161TimestampRequest.cs (2)
329byte[] encodedBytes = writer.Encode(); 336_encodedBytes = writer.Encode(),
System\Security\Cryptography\Pkcs\Rfc3161TimestampTokenInfo.cs (2)
160_tsaNameBytes = writer.Encode(); 371return writer.Encode();
System\Security\Cryptography\Pkcs\SignedCms.cs (4)
127return PkcsHelpers.EncodeContentInfo(writer.Encode(), Oids.Pkcs7Signed); 146copy = SignedDataAsn.Decode(detachedWriter.Encode(), AsnEncodingRules.BER); 152return PkcsHelpers.EncodeContentInfo(attachedWriter.Encode(), Oids.Pkcs7Signed); 366_signedData.EncapContentInfo.Content = writer.Encode();
System\Security\Cryptography\Pkcs\SignerInfo.cs (3)
163counterSignerBytes = writer.Encode(); 321AttrValues = new[] { new ReadOnlyMemory<byte>(writer.Encode()) }, 660byte[] encoded = writer.Encode();