109 references to Encode
InMemory.FunctionalTests (6)
src\Servers\Kestrel\shared\test\CertificateAuthority.cs (6)
377
byte[] signatureAlgId = writer.
Encode
();
473
byte[] tbsCertList = writer.
Encode
();
497
return writer.
Encode
();
610
byte[] tbsResponseData = writer.
Encode
();
656
byte[] responseBytes = writer.
Encode
();
671
return writer.
Encode
();
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (6)
src\Servers\Kestrel\shared\test\CertificateAuthority.cs (6)
377
byte[] signatureAlgId = writer.
Encode
();
473
byte[] tbsCertList = writer.
Encode
();
497
return writer.
Encode
();
610
byte[] tbsResponseData = writer.
Encode
();
656
byte[] responseBytes = writer.
Encode
();
671
return writer.
Encode
();
System.Net.Security (3)
System\Net\NegotiateAuthenticationPal.ManagedSpnego.cs (3)
197
_spnegoMechList = mechListWriter.
Encode
();
213
return writer.
Encode
();
359
return writer.
Encode
();
System.Security.Cryptography (58)
src\libraries\Common\src\Internal\Cryptography\PkcsHelpers.cs (3)
79
return writer.
Encode
();
306
return writer.
Encode
();
371
normalizedValue = writer.
Encode
();
src\libraries\Common\src\System\Security\Cryptography\MLDsa.cs (3)
206
return writer.
Encode
();
370
return writer.
Encode
();
412
return writer.
Encode
();
src\libraries\Common\src\System\Security\Cryptography\MLKem.cs (3)
643
return ExportSubjectPublicKeyInfoCore().
Encode
();
953
return writer.
Encode
();
993
return 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)
125
return writer.
Encode
();
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeBag.cs (1)
57
return writer.
Encode
();
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (4)
421
return writer.
Encode
();
476
Content = valueWriter.
Encode
(),
485
Content = contentsWriter.
Encode
(),
494
Content = contentsWriter.
Encode
(),
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeContentsBag.cs (1)
30
return Decode(writer.
Encode
());
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SecretBag.cs (1)
62
return writer.
Encode
();
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs8PrivateKeyInfo.cs (3)
98
return writer.
Encode
();
113
return writer.
Encode
();
128
return writer.
Encode
();
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs9LocalKeyId.cs (1)
36
RawData = writer.
Encode
();
src\libraries\Common\src\System\Security\Cryptography\SlhDsa.cs (3)
213
return writer.
Encode
();
378
return writer.
Encode
();
421
return writer.
Encode
();
src\libraries\Common\src\System\Security\Cryptography\X509Certificates\X509CertificateLoader.Pkcs12.cs (2)
912
safeContents.Content = writer.
Encode
();
920
byte[] authSafe = writer.
Encode
();
System\Security\Cryptography\AsymmetricAlgorithmHelpers.Der.cs (1)
21
return writer.
Encode
();
System\Security\Cryptography\ECAlgorithm.cs (1)
624
return writer.
Encode
();
System\Security\Cryptography\ECDiffieHellmanPublicKey.ExportParameters.cs (1)
72
return writer.
Encode
();
System\Security\Cryptography\RSA.cs (2)
702
return pkcs1PrivateKey.
Encode
();
714
return pkcs1PublicKey.
Encode
();
System\Security\Cryptography\X509Certificates\CertificateRequest.cs (1)
996
byte[] encodedTbsCertificate = writer.
Encode
();
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.Build.cs (2)
436
byte[] tbsCertList = writer.
Encode
();
449
byte[] crl = writer.
Encode
();
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.cs (1)
196
extensions = writer.
Encode
();
System\Security\Cryptography\X509Certificates\ECDsaX509SignatureGenerator.cs (2)
61
return writer.
Encode
();
98
curveOidEncoded = writer.
Encode
();
System\Security\Cryptography\X509Certificates\MLDsaX509SignatureGenerator.cs (1)
35
return writer.
Encode
();
System\Security\Cryptography\X509Certificates\Pkcs10CertificationRequestInfo.cs (2)
78
byte[] encodedRequestInfo = writer.
Encode
();
89
return writer.
Encode
();
System\Security\Cryptography\X509Certificates\Pkcs9ExtensionRequest.cs (1)
31
return writer.
Encode
();
System\Security\Cryptography\X509Certificates\PublicKey.cs (1)
150
EncodeSubjectPublicKeyInfo().
Encode
();
System\Security\Cryptography\X509Certificates\RSAPkcs1X509SignatureGenerator.cs (1)
88
return writer.
Encode
();
System\Security\Cryptography\X509Certificates\RSAPssX509SignatureGenerator.cs (3)
88
parameters.MaskGenAlgorithm.Parameters = writer.
Encode
();
96
Parameters = writer.
Encode
(),
101
return writer.
Encode
();
System\Security\Cryptography\X509Certificates\SubjectAlternativeNameBuilder.cs (2)
57
byte[] 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)
133
return writer.
Encode
();
557
return writer.
Encode
();
System\Security\Cryptography\X509Certificates\X509AuthorityInformationAccessExtension.cs (1)
333
return writer.
Encode
();
System\Security\Cryptography\X509Certificates\X509BasicConstraintsExtension.cs (1)
159
return writer.
Encode
();
System\Security\Cryptography\X509Certificates\X509EnhancedKeyUsageExtension.cs (1)
77
return writer.
Encode
();
System\Security\Cryptography\X509Certificates\X509KeyUsageExtension.cs (1)
60
return writer.
Encode
();
System\Security\Cryptography\X509Certificates\X509SubjectKeyIdentifierExtension.cs (1)
143
return writer.
Encode
();
System.Security.Cryptography.Pkcs (36)
Internal\Cryptography\Pal\AnyOS\ManagedPal.Decrypt.cs (1)
133
byte[] encoded = writer.
Encode
();
Internal\Cryptography\Pal\AnyOS\ManagedPal.Encrypt.cs (2)
147
return PkcsHelpers.EncodeContentInfo(writer.
Encode
(), Oids.Pkcs7Enveloped);
166
parameterBytes = writer.
Encode
();
Internal\Cryptography\PkcsHelpers.cs (1)
126
return writer.
Encode
();
src\libraries\Common\src\Internal\Cryptography\PkcsHelpers.cs (3)
79
return writer.
Encode
();
306
return writer.
Encode
();
371
normalizedValue = 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)
125
return writer.
Encode
();
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeBag.cs (1)
57
return writer.
Encode
();
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (4)
421
return writer.
Encode
();
476
Content = valueWriter.
Encode
(),
485
Content = contentsWriter.
Encode
(),
494
Content = contentsWriter.
Encode
(),
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeContentsBag.cs (1)
30
return Decode(writer.
Encode
());
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SecretBag.cs (1)
62
return writer.
Encode
();
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs8PrivateKeyInfo.cs (3)
98
return writer.
Encode
();
113
return writer.
Encode
();
128
return writer.
Encode
();
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs9LocalKeyId.cs (1)
36
RawData = writer.
Encode
();
System\Security\Cryptography\Pkcs\CmsSignature.cs (1)
261
return writer.
Encode
();
System\Security\Cryptography\Pkcs\CmsSigner.cs (3)
238
AttrValues = new[] { new ReadOnlyMemory<byte>(writer.
Encode
()) },
250
AttrValues = new[] { new ReadOnlyMemory<byte>(writer.
Encode
()) },
265
newSignerInfo.SignedAttributes = attrsWriter.
Encode
();
System\Security\Cryptography\Pkcs\Rfc3161TimestampRequest.cs (2)
329
byte[] encodedBytes = writer.
Encode
();
336
_encodedBytes = writer.
Encode
(),
System\Security\Cryptography\Pkcs\Rfc3161TimestampTokenInfo.cs (2)
160
_tsaNameBytes = writer.
Encode
();
371
return writer.
Encode
();
System\Security\Cryptography\Pkcs\SignedCms.cs (4)
127
return PkcsHelpers.EncodeContentInfo(writer.
Encode
(), Oids.Pkcs7Signed);
146
copy = SignedDataAsn.Decode(detachedWriter.
Encode
(), AsnEncodingRules.BER);
152
return PkcsHelpers.EncodeContentInfo(attachedWriter.
Encode
(), Oids.Pkcs7Signed);
366
_signedData.EncapContentInfo.Content = writer.
Encode
();
System\Security\Cryptography\Pkcs\SignerInfo.cs (3)
163
counterSignerBytes = writer.
Encode
();
321
AttrValues = new[] { new ReadOnlyMemory<byte>(writer.
Encode
()) },
660
byte[] encoded = writer.
Encode
();