aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pyecsca/sca/re/rpa.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pyecsca/sca/re/rpa.py b/pyecsca/sca/re/rpa.py
index 266602b..51c8e2b 100644
--- a/pyecsca/sca/re/rpa.py
+++ b/pyecsca/sca/re/rpa.py
@@ -307,7 +307,7 @@ class RPA(RE):
def run(
self, oracle: Callable[[int, Point], bool], majority: int = 1
) -> Set[ScalarMultiplier]:
- if self.tree is None or self.scalars is None:
+ if self.tree is None or self.scalars is None or self.P0 is None or self.params is None:
raise ValueError("Need to build tree first.")
if (majority % 2) == 0: