Skip to content

Commit

Permalink
Fix EdDSA test
Browse files Browse the repository at this point in the history
  • Loading branch information
Legrandin committed Aug 17, 2024
1 parent 2c672a8 commit aca0117
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Crypto/Signature/eddsa.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ def new(key, mode, context=None):
different applications of the same key.
"""

if not isinstance(key, EccKey) or not key._is_eddsa():
if not isinstance(key, EccKey) or key.curve not in ("Ed25519", "Ed448"):
raise ValueError("EdDSA can only be used with EdDSA keys")

if mode != 'rfc8032':
Expand Down

0 comments on commit aca0117

Please sign in to comment.