Skip to content

Commit 5b1352d

Browse files
authored
fix: EcdsaVerify cannot be Ed25519
1 parent 7f365ff commit 5b1352d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Yubico.YubiKey/src/Yubico/YubiKey/Cryptography/EcdsaVerify.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,15 +173,14 @@ public EcdsaVerify(PivPublicKey pivPublicKey)
173173
ECDsa = ConvertPublicKey(publicPointSpan.ToArray());
174174
}
175175

176-
// TODO Test
177176
public EcdsaVerify(ECPublicKey publicKey)
178177
{
179178
if (publicKey is null)
180179
{
181180
throw new ArgumentNullException(nameof(publicKey));
182181
}
183182

184-
if (!publicKey.KeyType.IsECDsa() || !publicKey.KeyType.IsCurve25519())
183+
if (!publicKey.KeyType.IsECDsa())
185184
{
186185
throw new ArgumentException("Invalid key type", nameof(publicKey));
187186
}

0 commit comments

Comments
 (0)