Skip to content

RSACng.Encrypt used wrong "Pkcs1" link. #2849

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 4 commits into from
Mar 23, 2020
Merged
Changes from all commits
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
10 changes: 5 additions & 5 deletions xml/System.Security.Cryptography/RSACng.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Type Name="RSACng" FullName="System.Security.Cryptography.RSACng">
<Type Name="RSACng" FullName="System.Security.Cryptography.RSACng">
<TypeSignature Language="C#" Value="public sealed class RSACng : System.Security.Cryptography.RSA" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi sealed beforefieldinit RSACng extends System.Security.Cryptography.RSA" />
<TypeSignature Language="DocId" Value="T:System.Security.Cryptography.RSACng" />
Expand Down Expand Up @@ -239,13 +239,13 @@ If a key is loaded via the <xref:System.Security.Cryptography.RSACng.ImportParam
<returns>The decrypted data.</returns>
<remarks>To be added.</remarks>
<exception cref="T:System.ArgumentNullException">
<paramref name="data" /> is <see langword="null" />.
<paramref name="data" /> is <see langword="null" />.

-or-

<paramref name="padding" /> is <see langword="null" />.</exception>
<exception cref="T:System.Security.Cryptography.CryptographicException">
<paramref name="padding" /> does not equal <see cref="P:System.Security.Cryptography.RSAEncryptionPadding.Pkcs1" />, or else the <see cref="P:System.Security.Cryptography.RSAEncryptionPadding.Mode" /> of <paramref name="padding" /> does not equal <see cref="F:System.Security.Cryptography.RSAEncryptionPaddingMode.Oaep" />.</exception>
<paramref name="padding" />.<see cref="P:System.Security.Cryptography.RSAEncryptionPadding.Mode" /> isn't equal to <see cref="F:System.Security.Cryptography.RSAEncryptionPaddingMode.Pkcs1" /> or <see cref="F:System.Security.Cryptography.RSAEncryptionPaddingMode.Oaep" />.</exception>
</Docs>
</Member>
<Member MemberName="DecryptValue">
Expand Down Expand Up @@ -357,13 +357,13 @@ If a key is loaded via the <xref:System.Security.Cryptography.RSACng.ImportParam
<returns>The encrypted data.</returns>
<remarks>To be added.</remarks>
<exception cref="T:System.ArgumentNullException">
<paramref name="data" /> is <see langword="null" />.
<paramref name="data" /> is <see langword="null" />.

-or-

<paramref name="padding" /> is <see langword="null" />.</exception>
<exception cref="T:System.Security.Cryptography.CryptographicException">
<paramref name="padding" /> does not equal <see cref="P:System.Security.Cryptography.RSASignaturePadding.Pkcs1" /> or <see cref="P:System.Security.Cryptography.RSASignaturePadding.Pss" />.</exception>
<paramref name="padding" />.<see cref="P:System.Security.Cryptography.RSAEncryptionPadding.Mode" /> isn't equal to <see cref="F:System.Security.Cryptography.RSAEncryptionPaddingMode.Pkcs1" /> or <see cref="F:System.Security.Cryptography.RSAEncryptionPaddingMode.Oaep" />.</exception>
</Docs>
</Member>
<Member MemberName="EncryptValue">
Expand Down