You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<summary>When overridden in a derived class, generates a new public/private key pair for the specified curve.</summary>
464
+
<paramname="curve">The curve to use to generate the key.</param>
465
+
<summary>When overridden in a derived class, generates a new ephemeral public/private key pair for the specified curve, replacing the current key.</summary>
466
466
<remarks>To be added.</remarks>
467
467
<exceptioncref="T:System.NotSupportedException">A derived class must override this method.</exception>
468
468
</Docs>
@@ -1158,7 +1158,7 @@ The algorithm-specific key import failed.
1158
1158
<Docs>
1159
1159
<paramname="hash">The hash value of the data that is being signed.</param>
1160
1160
<summary>Generates a digital signature for the specified hash value.</summary>
1161
-
<returns>A digital signature that consists of the given hash value encrypted with the private key.</returns>
1161
+
<returns>A digital signature for the specified hash value.</returns>
1162
1162
<remarks>To be added.</remarks>
1163
1163
<exceptioncref="T:System.ArgumentNullException">The <paramrefname="hash" /> parameter is <seelangword="null" />.</exception>
1164
1164
</Docs>
@@ -1432,13 +1432,22 @@ The algorithm-specific key import failed.
<paramname="destination">The buffer to receive the hash value.</param>
1437
+
<paramname="hashAlgorithm">The algorithm to use to hash the data.</param>
1438
+
<paramname="bytesWritten">When this method returns, the total number of bytes written into <paramrefname="destination"/>. This parameter is treated as uninitialized.</param>
1439
+
<summary>Attempts to compute the hash value of the specified read-only span of bytes into the provided destination by using the specified hashing algorithm.</summary>
1440
+
<returns><seelangword="false"/> if <paramrefname="destination"/> is not long enough to receive the hash value.</returns>
1441
+
<remarks>
1442
+
<formattype="text/markdown"><![CDATA[
1443
+
1444
+
## Remarks
1445
+
1446
+
The default implementation of this method is to call <xref:System.Security.Cryptography.ECDsa.HashData(System.Byte[],System.Int32,System.Int32,System.Security.Cryptography.HashAlgorithmName)> and copy the result to `destination`.
1447
+
Derived types should override this method to avoid the intermediate array creation.
1448
+
1449
+
]]></format>
1450
+
</remarks>
1442
1451
</Docs>
1443
1452
</Member>
1444
1453
<MemberMemberName="TrySignData">
@@ -1470,12 +1479,12 @@ The algorithm-specific key import failed.
<paramname="destination">The buffer to receive the signature.</param>
1484
+
<paramname="hashAlgorithm">The algorithm to use to hash the data for signing.</param>
1485
+
<paramname="bytesWritten">When this method returns, the total number of bytes written into <paramrefname="destination"/>. This parameter is treated as uninitialized.</param>
1486
+
<summary>Attempts to compute the ECDSA digital signature for the specified read-only span of bytes into the provided destination by using the specified hashing algorithm and the current key.</summary>
1487
+
<returns><seelangword="false"/> if <paramrefname="destination"/> is not long enough to receive the signature.</returns>
1479
1488
<remarks>To be added.</remarks>
1480
1489
</Docs>
1481
1490
</Member>
@@ -1507,11 +1516,11 @@ The algorithm-specific key import failed.
<paramname="hash">The hash value of the data that is being signed.</param>
1520
+
<paramname="destination">The buffer to receive the signature.</param>
1521
+
<paramname="bytesWritten">When this method returns, the total number of bytes written into <paramrefname="destination"/>. This parameter is treated as uninitialized.</param>
1522
+
<summary>Attempts to compute the ECDSA digital signature for the specified read-only span of bytes representing a data hash into the provided destination by using the current key.</summary>
1523
+
<returns><seelangword="false"/> if <paramrefname="destination"/> is not long enough to receive the signature.</returns>
1515
1524
<remarks>To be added.</remarks>
1516
1525
</Docs>
1517
1526
</Member>
@@ -1523,7 +1532,7 @@ The algorithm-specific key import failed.
1523
1532
<AssemblyVersion>4.3.0.0</AssemblyVersion>
1524
1533
</AssemblyInfo>
1525
1534
<Docs>
1526
-
<summary>Verifies that a digital signature is valid.</summary>
1535
+
<summary>Verifies that a digital signature is appropriate for the current key and provided data with a specified hash algorithm.</summary>
1527
1536
</Docs>
1528
1537
</MemberGroup>
1529
1538
<MemberMemberName="VerifyData">
@@ -1563,7 +1572,7 @@ The algorithm-specific key import failed.
1563
1572
<paramname="data">The signed data.</param>
1564
1573
<paramname="signature">The signature data to be verified.</param>
1565
1574
<paramname="hashAlgorithm">The hash algorithm used to create the hash value of the data.</param>
1566
-
<summary>Verifies that a digital signature is valid by calculating the hash value of the specified data using the specified hash algorithm and comparing it to the provided signature.</summary>
1575
+
<summary>Verifies that a digital signature is appropriate for the current key and provided data with a specified hash algorithm.</summary>
1567
1576
<returns>
1568
1577
<seelangword="true" /> if the signature is valid; otherwise, <seelangword="false" />.</returns>
1569
1578
<remarks>To be added.</remarks>
@@ -1614,7 +1623,7 @@ The algorithm-specific key import failed.
1614
1623
<paramname="data">The signed data.</param>
1615
1624
<paramname="signature">The signature data to be verified.</param>
1616
1625
<paramname="hashAlgorithm">The hash algorithm used to create the hash value of the data.</param>
1617
-
<summary>Verifies that a digital signature is valid by calculating the hash value of the specified stream using the specified hash algorithm and comparing it to the provided signature.</summary>
1626
+
<summary>Verifies that a digital signature is appropriate for the current key and provided data with a specified hash algorithm.</summary>
1618
1627
<returns>
1619
1628
<seelangword="true" /> if the signature is valid; otherwise, <seelangword="false" />.</returns>
1620
1629
<remarks>To be added.</remarks>
@@ -1656,12 +1665,14 @@ The algorithm-specific key import failed.
<paramname="signature">The signature to be verified.</param>
1670
+
<paramname="hashAlgorithm">The hash algorithm used to create the hash value of the data.</param>
1671
+
<summary>Verifies that a digital signature is appropriate for the current key and provided data with a specified hash algorithm.</summary>
1672
+
<returns><seelangword="true"/> if the signature is valid; otherwise, <seelangword="false"/>.</returns>
1664
1673
<remarks>To be added.</remarks>
1674
+
<exceptioncref="T:System.ArgumentException">
1675
+
<paramrefname="hashAlgorithm" />.<seecref="P:System.Security.Cryptography.HashAlgorithmName.Name" /> is <seelangword="null" /> or <seecref="F:System.String.Empty" />.</exception>
1665
1676
</Docs>
1666
1677
</Member>
1667
1678
<MemberMemberName="VerifyData">
@@ -1705,7 +1716,7 @@ The algorithm-specific key import failed.
1705
1716
<paramname="count">The number of bytes to hash.</param>
1706
1717
<paramname="signature">The signature data to be verified.</param>
1707
1718
<paramname="hashAlgorithm">The hash algorithm used to create the hash value of the data.</param>
1708
-
<summary>Verifies that a digital signature is valid by calculating the hash value of the data in a portion of a byte array using the specified hash algorithm and comparing it to the provided signature.</summary>
1719
+
<summary>Verifies that a digital signature is appropriate for the current key and provided portion of data with a specified hash algorithm.</summary>
1709
1720
<returns>
1710
1721
<seelangword="true" /> if the signature is valid; otherwise, <seelangword="false" />.</returns>
1711
1722
<remarks>To be added.</remarks>
@@ -1763,19 +1774,13 @@ The algorithm-specific key import failed.
1763
1774
<ParameterName="signature"Type="System.Byte[]" />
1764
1775
</Parameters>
1765
1776
<Docs>
1766
-
<paramname="hash">The hash value of a block of data.</param>
1767
-
<paramname="signature">The digital signature to be verified.</param>
1768
-
<summary>Verifies a digital signature against the specified hash value.</summary>
1777
+
<paramname="hash">The hash value of the data to be verified.</param>
1778
+
<paramname="signature">The digital signature of the data to be verified against the hash value.</param>
1779
+
<summary>Verifies that a digital signature is appropriate for the current key and provided data hash.</summary>
1769
1780
<returns>
1770
-
<seelangword="true" /> if the hash value equals the decrypted signature; otherwise, <seelangword="false" />.</returns>
1771
-
<remarks>
1772
-
<formattype="text/markdown"><![CDATA[
1773
-
1774
-
## Remarks
1775
-
The signature is first decrypted by using the public key, and then compared to the hash value for verification.
1776
-
1777
-
]]></format>
1778
-
</remarks>
1781
+
<seelangword="true" /> if the signature is valid; otherwise, <seelangword="false" />.</returns>
1782
+
<remarks>To be added.</remarks>
1783
+
<exceptioncref="T:System.ArgumentNullException"><paramrefname="hash"/> or <paramrefname="signature"/> is <seelangword="null"/>.</exception>
1779
1784
</Docs>
1780
1785
</Member>
1781
1786
<MemberMemberName="VerifyHash">
@@ -1805,10 +1810,11 @@ The algorithm-specific key import failed.
0 commit comments