aboutsummaryrefslogtreecommitdiff
path: root/pyecsca/ec/mult/window.py
diff options
context:
space:
mode:
authorJ08nY2023-10-04 21:23:36 +0200
committerJ08nY2023-10-04 21:23:36 +0200
commitee155ddad1308a5de6149233f93467b1565ac2e2 (patch)
tree6c0dbc76ca2da50a805aeca457d82c79bc43d19f /pyecsca/ec/mult/window.py
parentb22af4813f19427e22f0f22aa9c682a03b8da257 (diff)
downloadpyecsca-ee155ddad1308a5de6149233f93467b1565ac2e2.tar.gz
pyecsca-ee155ddad1308a5de6149233f93467b1565ac2e2.tar.zst
pyecsca-ee155ddad1308a5de6149233f93467b1565ac2e2.zip
Diffstat (limited to 'pyecsca/ec/mult/window.py')
-rw-r--r--pyecsca/ec/mult/window.py16
1 files changed, 13 insertions, 3 deletions
diff --git a/pyecsca/ec/mult/window.py b/pyecsca/ec/mult/window.py
index 3ee8c50..8317965 100644
--- a/pyecsca/ec/mult/window.py
+++ b/pyecsca/ec/mult/window.py
@@ -17,13 +17,20 @@ from ..scalar import convert_base, sliding_window_rtl, sliding_window_ltr
@public
class SlidingWindowMultiplier(AccumulatorMultiplier, ScalarMultiplier):
- """Sliding window scalar multiplier."""
+ """
+ Sliding window scalar multiplier.
+
+ :param width: The width of the sliding-window recoding.
+ :param recoding_direction: The direction for the sliding-window recoding.
+ :param accumulation_order: The order of accumulation of points.
+ """
requires = {AdditionFormula, DoublingFormula}
optionals = {ScalingFormula}
- complete: bool
width: int
+ """The width of the sliding-window recoding."""
recoding_direction: ProcessingDirection
+ """The direction for the sliding-window recoding."""
_points: MutableMapping[int, Point]
def __init__(
@@ -93,12 +100,15 @@ class FixedWindowLTRMultiplier(AccumulatorMultiplier, ScalarMultiplier):
to perform the multiplication-by-m between each window addition.
For other `m` values, this is the m-ary multiplier.
+
+ :param m: The arity of the multiplier.
+ :param accumulation_order: The order of accumulation of points.
"""
requires = {AdditionFormula, DoublingFormula}
optionals = {ScalingFormula}
- complete: bool
m: int
+ """The arity of the multiplier."""
_points: MutableMapping[int, Point]
def __init__(