From c53294e69e366293a04a10cfd9331f504ceab0ce Mon Sep 17 00:00:00 2001 From: J08nY Date: Thu, 16 May 2024 13:57:46 +0200 Subject: Fix efd detection. --- pyecsca/ec/model.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyecsca/ec/model.py b/pyecsca/ec/model.py index b4f62d3..42025c5 100644 --- a/pyecsca/ec/model.py +++ b/pyecsca/ec/model.py @@ -178,7 +178,8 @@ class TwistedEdwardsModel(EFDCurveModel): super().__init__("twisted") -if not ShortWeierstrassModel.coordinates: +_dirs = list(files("pyecsca.ec").joinpath("efd").iterdir()) +if not _dirs: import warnings warnings.warn( -- cgit v1.3.1