aboutsummaryrefslogtreecommitdiffhomepage
path: root/pyecsca/sca/target
diff options
context:
space:
mode:
authorJ08nY2024-05-21 20:48:14 +0200
committerJ08nY2024-05-21 20:48:14 +0200
commitdda535b3600fc3385df996da47afdecb3b3df0ef (patch)
tree57aa7d34d880776458b31c36b471b908768f1869 /pyecsca/sca/target
parent2a804b2dea0bd480a89f9decb72f35010d3436d6 (diff)
downloadpyecsca-dda535b3600fc3385df996da47afdecb3b3df0ef.tar.gz
pyecsca-dda535b3600fc3385df996da47afdecb3b3df0ef.tar.zst
pyecsca-dda535b3600fc3385df996da47afdecb3b3df0ef.zip
Add some more missing docs.
Diffstat (limited to 'pyecsca/sca/target')
-rw-r--r--pyecsca/sca/target/ectester.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pyecsca/sca/target/ectester.py b/pyecsca/sca/target/ectester.py
index 394d86f..512f51c 100644
--- a/pyecsca/sca/target/ectester.py
+++ b/pyecsca/sca/target/ectester.py
@@ -17,6 +17,8 @@ from ...ec.point import Point
class ShiftableFlag(IntFlag): # pragma: no cover
+ """An `IntFlag` that can be shifted."""
+
def __lshift__(self, other):
val = int(self) << other
for e in self.__class__:
@@ -92,6 +94,7 @@ class ExportEnum(IntEnum): # pragma: no cover
@classmethod
def from_bool(cls, val: bool):
+ """Construct an `ExportEnum` from a boolean."""
return cls.EXPORT_TRUE if val else cls.EXPORT_FALSE