Skip to content

Commit 9a9a22f

Browse files
authored
RSACng.Encrypt used wrong "Pkcs1" link. (#2849)
* RSACng.Encrypt used wrong "Pkcs1" link. * Checked the source code. Corrrection. * Resolve comment. * Keep exception description in Decrypt consistent with Encrypt.
1 parent 796bf65 commit 9a9a22f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

xml/System.Security.Cryptography/RSACng.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Type Name="RSACng" FullName="System.Security.Cryptography.RSACng">
1+
<Type Name="RSACng" FullName="System.Security.Cryptography.RSACng">
22
<TypeSignature Language="C#" Value="public sealed class RSACng : System.Security.Cryptography.RSA" />
33
<TypeSignature Language="ILAsm" Value=".class public auto ansi sealed beforefieldinit RSACng extends System.Security.Cryptography.RSA" />
44
<TypeSignature Language="DocId" Value="T:System.Security.Cryptography.RSACng" />
@@ -244,13 +244,13 @@ If a key is loaded via the <xref:System.Security.Cryptography.RSACng.ImportParam
244244
<returns>The decrypted data.</returns>
245245
<remarks>To be added.</remarks>
246246
<exception cref="T:System.ArgumentNullException">
247-
<paramref name="data" /> is <see langword="null" />.
247+
<paramref name="data" /> is <see langword="null" />.
248248

249249
-or-
250250

251251
<paramref name="padding" /> is <see langword="null" />.</exception>
252252
<exception cref="T:System.Security.Cryptography.CryptographicException">
253-
<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>
253+
<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>
254254
</Docs>
255255
</Member>
256256
<Member MemberName="DecryptValue">
@@ -364,13 +364,13 @@ If a key is loaded via the <xref:System.Security.Cryptography.RSACng.ImportParam
364364
<returns>The encrypted data.</returns>
365365
<remarks>To be added.</remarks>
366366
<exception cref="T:System.ArgumentNullException">
367-
<paramref name="data" /> is <see langword="null" />.
367+
<paramref name="data" /> is <see langword="null" />.
368368

369369
-or-
370370

371371
<paramref name="padding" /> is <see langword="null" />.</exception>
372372
<exception cref="T:System.Security.Cryptography.CryptographicException">
373-
<paramref name="padding" /> does not equal <see cref="P:System.Security.Cryptography.RSASignaturePadding.Pkcs1" /> or <see cref="P:System.Security.Cryptography.RSASignaturePadding.Pss" />.</exception>
373+
<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>
374374
</Docs>
375375
</Member>
376376
<Member MemberName="EncryptValue">

0 commit comments

Comments
 (0)