diff --git a/Yubico.YubiKey/src/Yubico/YubiKey/Cryptography/EcdsaVerify.cs b/Yubico.YubiKey/src/Yubico/YubiKey/Cryptography/EcdsaVerify.cs index 3763e0954..149ae1bf3 100644 --- a/Yubico.YubiKey/src/Yubico/YubiKey/Cryptography/EcdsaVerify.cs +++ b/Yubico.YubiKey/src/Yubico/YubiKey/Cryptography/EcdsaVerify.cs @@ -405,10 +405,10 @@ private static ECDsa CheckECDsa(ECDsa toCheck) { ECParameters eccParams = toCheck.ExportParameters(false); - int coordinateLength = eccParams.Curve.Oid.FriendlyName switch + int coordinateLength = eccParams.Curve.Oid.Value. switch { - NameP256 => (P256EncodedPointLength - 1) / 2, - NameP384 => (P384EncodedPointLength - 1) / 2, + OidP256 => (P256EncodedPointLength - 1) / 2, + OidP384 => (P384EncodedPointLength - 1) / 2, _ => -1, };