Skip to content

Commit 73968f0

Browse files
committed
misc: set constructor as protected
1 parent 3025188 commit 73968f0

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Yubico.YubiKey/src/Yubico/YubiKey/Cryptography/ECPrivateKey.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@ public class ECPrivateKey : PrivateKey
5656
/// </remarks>
5757
/// <param name="parameters">The EC parameters.</param>
5858
/// <exception cref="ArgumentException">Thrown when parameters do not contain D value.</exception>
59-
[Obsolete("Use factory methods instead", false)]
60-
public ECPrivateKey(ECParameters parameters)
59+
protected ECPrivateKey(ECParameters parameters)
6160
{
6261
if (parameters.D == null)
6362
{
@@ -75,8 +74,7 @@ public ECPrivateKey(ECParameters parameters)
7574
/// It exports the parameters from the ECDsa object and deep copy the parameters from the ECParameters object.
7675
/// </remarks>
7776
/// <param name="ecdsaObject">The ECDsa object.</param>
78-
[Obsolete("Use factory methods instead")]
79-
public ECPrivateKey(ECDsa ecdsaObject)
77+
protected ECPrivateKey(ECDsa ecdsaObject)
8078
{
8179
if (ecdsaObject == null)
8280
{

0 commit comments

Comments
 (0)