84 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 (33)
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)
882
byte[] encodedTbsCertificate = writer.
Encode
();
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.Build.cs (2)
424
byte[] tbsCertList = writer.
Encode
();
437
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\Pkcs10CertificationRequestInfo.cs (2)
74
byte[] encodedRequestInfo = writer.
Encode
();
85
return writer.
Encode
();
System\Security\Cryptography\X509Certificates\Pkcs9ExtensionRequest.cs (1)
31
return writer.
Encode
();
System\Security\Cryptography\X509Certificates\PublicKey.cs (1)
128
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\UnixExportProvider.cs (2)
188
CertValue = tmpWriter.
Encode
(),
562
return tmpWriter.
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)
146
return PkcsHelpers.EncodeContentInfo(writer.
Encode
(), Oids.Pkcs7Enveloped);
165
parameterBytes = writer.
Encode
();
Internal\Cryptography\PkcsHelpers.cs (4)
169
normalizedValue = writer.
Encode
();
207
return writer.
Encode
();
550
return writer.
Encode
();
574
return writer.
Encode
();
System\Security\Cryptography\Pkcs\CmsSignature.cs (1)
261
return writer.
Encode
();
System\Security\Cryptography\Pkcs\CmsSigner.cs (3)
218
AttrValues = new[] { new ReadOnlyMemory<byte>(writer.
Encode
()) },
230
AttrValues = new[] { new ReadOnlyMemory<byte>(writer.
Encode
()) },
245
newSignerInfo.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)
120
return writer.
Encode
();
System\Security\Cryptography\Pkcs\Pkcs12SafeBag.cs (1)
51
return writer.
Encode
();
System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (4)
437
return writer.
Encode
();
492
Content = valueWriter.
Encode
(),
501
Content = contentsWriter.
Encode
(),
510
Content = contentsWriter.
Encode
(),
System\Security\Cryptography\Pkcs\Pkcs12SafeContentsBag.cs (1)
24
return Decode(writer.
Encode
());
System\Security\Cryptography\Pkcs\Pkcs12SecretBag.cs (1)
56
return writer.
Encode
();
System\Security\Cryptography\Pkcs\Pkcs8PrivateKeyInfo.cs (3)
98
return writer.
Encode
();
116
return writer.
Encode
();
134
return writer.
Encode
();
System\Security\Cryptography\Pkcs\Pkcs9LocalKeyId.cs (1)
30
RawData = writer.
Encode
();
System\Security\Cryptography\Pkcs\Rfc3161TimestampRequest.cs (2)
332
byte[] encodedBytes = writer.
Encode
();
339
_encodedBytes = writer.
Encode
(),
System\Security\Cryptography\Pkcs\Rfc3161TimestampTokenInfo.cs (2)
160
_tsaNameBytes = writer.
Encode
();
377
return writer.
Encode
();
System\Security\Cryptography\Pkcs\SignedCms.cs (4)
130
return PkcsHelpers.EncodeContentInfo(writer.
Encode
(), Oids.Pkcs7Signed);
149
copy = SignedDataAsn.Decode(detachedWriter.
Encode
(), AsnEncodingRules.BER);
155
return PkcsHelpers.EncodeContentInfo(attachedWriter.
Encode
(), Oids.Pkcs7Signed);
370
_signedData.EncapContentInfo.Content = writer.
Encode
();
System\Security\Cryptography\Pkcs\SignerInfo.cs (3)
155
counterSignerBytes = writer.
Encode
();
303
AttrValues = new[] { new ReadOnlyMemory<byte>(writer.
Encode
()) },
648
byte[] encoded = writer.
Encode
();