Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 76e5dd6

Browse files
authoredMay 27, 2025··
Merge pull request #230 from Yubico/dennisdyallo/tests
fix,tests: Fixed bug where attest cert could not be RSA3072 or RSA4096, removed obsolete tests and consolidated Piv tests
2 parents 935c676 + 92da903 commit 76e5dd6

File tree

141 files changed

+4163
-9179
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

141 files changed

+4163
-9179
lines changed
 

‎Yubico.YubiKey/examples/PivSampleCode/CertificateOperations/SampleCertificateOperations.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,9 @@ public static AsymmetricAlgorithm GetPublicKeyFromCertificate(X509Certificate2 c
497497

498498
if (string.Equals(certificate.PublicKey.Oid.FriendlyName, "ECC", StringComparison.Ordinal))
499499
{
500+
#pragma warning disable CS0618 // Type or member is obsolete
500501
var pivPub = new PivEccPublicKey(certificate.PublicKey.EncodedKeyValue.RawData);
502+
#pragma warning restore CS0618 // Type or member is obsolete
501503
return KeyConverter.GetDotNetFromPivPublicKey(pivPub);
502504
}
503505

‎Yubico.YubiKey/examples/PivSampleCode/Converters/KeyConverter.Asymmetric.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@ public static PivPublicKey GetPivPublicKeyFromDotNet(AsymmetricAlgorithm dotNetO
6565
offset += keySize + (keySize - eccParams.Q.Y.Length);
6666
Array.Copy(eccParams.Q.Y, 0, point, offset, eccParams.Q.Y.Length);
6767

68+
#pragma warning disable CS0618 // Type or member is obsolete
6869
var eccPubKey = new PivEccPublicKey(point);
70+
#pragma warning restore CS0618 // Type or member is obsolete
6971
return (PivPublicKey)eccPubKey;
7072
}
7173

0 commit comments

Comments
 (0)