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
Copy file name to clipboardExpand all lines: Yubico.YubiKey/src/Yubico/YubiKey/Piv/PivEccPrivateKey.cs
+21-17Lines changed: 21 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -13,10 +13,12 @@
13
13
// limitations under the License.
14
14
15
15
usingSystem;
16
-
usingSystem.Diagnostics.CodeAnalysis;
16
+
usingSystem.Collections.Generic;
17
17
usingSystem.Globalization;
18
+
usingSystem.Linq;
18
19
usingSystem.Security.Cryptography;
19
20
usingYubico.Core.Tlv;
21
+
usingYubico.YubiKey.Cryptography;
20
22
21
23
namespaceYubico.YubiKey.Piv
22
24
{
@@ -28,12 +30,11 @@ namespace Yubico.YubiKey.Piv
28
30
/// of a point on the curve. So for ECC P-256, each coordinate is 32 bytes
29
31
/// (256 bits), so the private value will be 32 bytes.
30
32
/// </remarks>
31
-
[Obsolete("Usage of PivEccPublic/PivEccPrivateKey, PivRsaPublic/PivRsaPrivateKey is deprecated. Use implementations of ECPublicKey, ECPrivateKey and RSAPublicKey, RSAPrivateKey instead",false)]
33
+
[Obsolete(
34
+
"Usage of PivEccPublic/PivEccPrivateKey, PivRsaPublic/PivRsaPrivateKey is deprecated. Use implementations of ECPublicKey, ECPrivateKey and RSAPublicKey, RSAPrivateKey instead",
35
+
false)]
32
36
publicsealedclassPivEccPrivateKey:PivPrivateKey
33
37
{
34
-
privateconstintEccP256PrivateKeySize=32;
35
-
privateconstintEccP384PrivateKeySize=48;
36
-
37
38
privateMemory<byte>_privateValue;
38
39
39
40
// <summary>
@@ -70,12 +71,12 @@ private PivEccPrivateKey()
70
71
/// </exception>
71
72
[Obsolete("Usage of PivEccPublic/PivEccPrivateKey is deprecated. Use ECPublicKey, ECPrivateKey instead",false)]
0 commit comments