32 references to TryEncode
System.Formats.Asn1 (3)
System\Formats\Asn1\AsnWriter.cs (3)
102
/// Gets the number of bytes that would be written by <see cref="
TryEncode
"/>.
105
/// The number of bytes that would be written by <see cref="
TryEncode
"/>.
176
if (!
TryEncode
(destination, out int bytesWritten))
System.Security.Cryptography (23)
src\libraries\Common\src\System\Security\Cryptography\DSAKeyFormatHelper.cs (1)
279
if (!inner.
TryEncode
(tmp, out int written))
src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (1)
414
if (!source.
TryEncode
(sourceRent, out _))
src\libraries\Common\src\System\Security\Cryptography\RSAKeyFormatHelper.cs (1)
193
if (!pkcs1PublicKey.
TryEncode
(rented, out int written))
System\Security\Cryptography\AsymmetricAlgorithmHelpers.Der.cs (1)
30
return writer.
TryEncode
(destination, out bytesWritten);
System\Security\Cryptography\DSA.cs (4)
941
return writer.
TryEncode
(destination, out bytesWritten);
963
return writer.
TryEncode
(destination, out bytesWritten);
971
return writer.
TryEncode
(destination, out bytesWritten);
979
return writer.
TryEncode
(destination, out bytesWritten);
System\Security\Cryptography\ECAlgorithm.cs (5)
154
return writer.
TryEncode
(destination, out bytesWritten);
226
return writer.
TryEncode
(destination, out bytesWritten);
266
return writer.
TryEncode
(destination, out bytesWritten);
302
return writer.
TryEncode
(destination, out bytesWritten);
660
return writer.
TryEncode
(destination, out bytesWritten);
System\Security\Cryptography\ECDiffieHellmanPublicKey.ExportParameters.cs (1)
54
return writer.
TryEncode
(destination, out bytesWritten);
System\Security\Cryptography\RSA.cs (6)
708
return pkcs1PrivateKey.
TryEncode
(destination, out bytesWritten);
720
return pkcs1PublicKey.
TryEncode
(destination, out bytesWritten);
749
return writer.
TryEncode
(destination, out bytesWritten);
762
return writer.
TryEncode
(destination, out bytesWritten);
821
return writer.
TryEncode
(destination, out bytesWritten);
844
return writer.
TryEncode
(destination, out bytesWritten);
System\Security\Cryptography\X509Certificates\PublicKey.cs (1)
119
EncodeSubjectPublicKeyInfo().
TryEncode
(destination, out bytesWritten);
System\Security\Cryptography\X509Certificates\UnixExportProvider.cs (2)
304
if (!tmpWriter.
TryEncode
(keyBuf, out length))
468
if (!tmpWriter.
TryEncode
(authSafe, out authSafeLength))
System.Security.Cryptography.Pkcs (6)
src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (1)
414
if (!source.
TryEncode
(sourceRent, out _))
System\Security\Cryptography\Pkcs\Pkcs12Builder.cs (1)
191
if (!contentsWriter.
TryEncode
(rentedAuthSafe, out int written))
System\Security\Cryptography\Pkcs\Pkcs12SafeBag.cs (1)
64
return writer.
TryEncode
(destination, out bytesWritten);
System\Security\Cryptography\Pkcs\Pkcs8PrivateKeyInfo.cs (3)
140
return writer.
TryEncode
(destination, out bytesWritten);
161
return writer.
TryEncode
(destination, out bytesWritten);
182
return writer.
TryEncode
(destination, out bytesWritten);