Skip to content

Commit bac322a

Browse files
authored
Add cryptography PlatformNotSupportedExceptions (#7939)
1 parent ab4ed35 commit bac322a

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

xml/System.Security.Cryptography/ECDiffieHellmanCng.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -998,6 +998,7 @@ This instance represents only a public key.</exception>
998998
<exception cref="T:System.ArgumentOutOfRangeException">
999999
<paramref name="format" /> specifies an invalid format. The only accepted value is <see cref="F:System.Security.Cryptography.ECKeyXmlFormat.Rfc4050" />.</exception>
10001000
<exception cref="T:System.Security.Cryptography.CryptographicException">All other errors.</exception>
1001+
<exception cref="T:System.PlatformNotSupportedException">.NET Core and .NET 5+: In all cases.</exception>
10011002
</Docs>
10021003
</Member>
10031004
<Member MemberName="GenerateKey">
@@ -1796,6 +1797,7 @@ Because key sizes do not uniquely identify elliptic curves, the use of the prope
17961797
<remarks>To be added.</remarks>
17971798
<exception cref="T:System.ArgumentOutOfRangeException">
17981799
<paramref name="format" /> specifies an invalid format. The only accepted value is <see cref="F:System.Security.Cryptography.ECKeyXmlFormat.Rfc4050" />.</exception>
1800+
<exception cref="T:System.PlatformNotSupportedException">.NET Core and .NET 5+: In all cases.</exception>
17991801
</Docs>
18001802
</Member>
18011803
<Member MemberName="TryExportEncryptedPkcs8PrivateKey">

xml/System.Security.Cryptography/ECDiffieHellmanCngPublicKey.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,7 @@
328328
</remarks>
329329
<exception cref="T:System.ArgumentNullException">The <paramref name="xml" /> parameter is <see langword="null" />.</exception>
330330
<exception cref="T:System.ArgumentException">The <paramref name="xml" /> parameter does not specify an <see cref="T:System.Security.Cryptography.ECDiffieHellman" /> key.</exception>
331+
<exception cref="T:System.PlatformNotSupportedException">.NET Core and .NET 5+: In all cases.</exception>
331332
</Docs>
332333
</Member>
333334
<Member MemberName="Import">
@@ -407,6 +408,7 @@
407408
408409
]]></format>
409410
</remarks>
411+
<exception cref="T:System.PlatformNotSupportedException">.NET Core and .NET 5+: In all cases.</exception>
410412
</Docs>
411413
</Member>
412414
</Members>

xml/System.Security.Cryptography/ECDiffieHellmanPublicKey.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,7 @@
417417
<summary>Serializes the <see cref="T:System.Security.Cryptography.ECDiffieHellmanPublicKey" /> key BLOB to a byte array.</summary>
418418
<returns>A byte array that contains the serialized Elliptic Curve Diffie-Hellman (ECDH) public key.</returns>
419419
<remarks>To be added.</remarks>
420+
<exception cref="T:System.PlatformNotSupportedException">Linux and macOS: In all cases.</exception>
420421
</Docs>
421422
</Member>
422423
<Member MemberName="ToXmlString">
@@ -462,6 +463,7 @@
462463
<summary>Serializes the <see cref="T:System.Security.Cryptography.ECDiffieHellmanPublicKey" /> public key to an XML string.</summary>
463464
<returns>An XML string that contains the serialized Elliptic Curve Diffie-Hellman (ECDH) public key.</returns>
464465
<remarks>To be added.</remarks>
466+
<exception cref="T:System.PlatformNotSupportedException">.NET Core and .NET 5+: In all cases.</exception>
465467
</Docs>
466468
</Member>
467469
<Member MemberName="TryExportSubjectPublicKeyInfo">

0 commit comments

Comments
 (0)