Skip to content

Commit

Permalink
Fix KeyType.can_do() for DH+FFDH
Browse files Browse the repository at this point in the history
Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
  • Loading branch information
mpg committed Jul 18, 2023
1 parent a1f14f2 commit 4325774
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/mbedtls_dev/crypto_knowledge.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,8 @@ def can_do(self, alg: 'Algorithm') -> bool:
if alg.head in {'PURE_EDDSA', 'EDDSA_PREHASH'} and \
eccc == EllipticCurveCategory.TWISTED_EDWARDS:
return True
if self.head == 'DH' and alg.head == 'FFDH':
return True
return False


Expand Down

0 comments on commit 4325774

Please sign in to comment.