Skip to content

Update RSACryptoServiceProvider.xml #3439

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 20, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions xml/System.Security.Cryptography/RSACryptoServiceProvider.xml
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@
## Examples
The following code example encrypts and decrypts data.

This example uses the <xref:System.Text.ASCIIEncoding> class; however, the <xref:System.Text.UnicodeEncoding> class may be preferable in large data operations. The encrypted value can be saved as an `nvarchar` data type in Microsoft SQL Server 2005.
This example uses the <xref:System.Text.ASCIIEncoding> class; however, the <xref:System.Text.UnicodeEncoding> class may be preferable in large data operations. The encrypted value can be saved as an `nvarchar` data type in Microsoft SQL Server.

[!code-cpp[Cryptography.RSACSP.Decrypt#1](~/samples/snippets/cpp/VS_Snippets_CLR/Cryptography.RSACSP.Decrypt/CPP/example.cpp#1)]
[!code-csharp[Cryptography.RSACSP.Decrypt#1](~/samples/snippets/csharp/VS_Snippets_CLR/Cryptography.RSACSP.Decrypt/CS/example.cs#1)]
Expand Down Expand Up @@ -1296,9 +1296,16 @@
<ReturnType>System.Security.Cryptography.KeySizes[]</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
<summary>Gets the key sizes that are supported by the asymmetric algorithm.</summary>
<value>An array that contains the key sizes supported by the asymmetric algorithm.</value>
<remarks>
<format type="text/markdown"><![CDATA[

## Remarks
The supported RSA key sizes depend on the available cryptographic service provider. For more information, see <xref:System.Security.Cryptography.RSACryptoServiceProvider#remarks> remarks.

]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="PersistKeyInCsp">
Expand Down