Fix KeyType.can_do() for DH+FFDH

Signed-off-by: Manuel Pégourié-Gonnard <[email protected]>
This commit is contained in:
Manuel Pégourié-Gonnard
2023-07-26 09:34:30 +02:00
parent c154a043bb
commit 182eb1514e
+2
View File
@@ -267,6 +267,8 @@ class KeyType:
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