aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJ08nY2023-08-08 10:53:42 +0200
committerJ08nY2023-08-08 10:53:42 +0200
commitf0762df56cb6caedf2e62ed7f335b4c3ef0f2889 (patch)
tree260c6c5980eecc4e9606d7b5da9a58ca9ee99b6d
parente54a414a9dd303dac78e435df9d84fe1bcef4676 (diff)
downloadpyecsca-f0762df56cb6caedf2e62ed7f335b4c3ef0f2889.tar.gz
pyecsca-f0762df56cb6caedf2e62ed7f335b4c3ef0f2889.tar.zst
pyecsca-f0762df56cb6caedf2e62ed7f335b4c3ef0f2889.zip
Docs fix in context.py
-rw-r--r--pyecsca/ec/context.py4
-rw-r--r--pyecsca/ec/signature.py2
2 files changed, 2 insertions, 4 deletions
diff --git a/pyecsca/ec/context.py b/pyecsca/ec/context.py
index dd609f8..5bc9cdf 100644
--- a/pyecsca/ec/context.py
+++ b/pyecsca/ec/context.py
@@ -9,8 +9,6 @@ multiplication actions has as its children an ordered list of the individual for
A :py:class:`PathContext` works like a :py:class:`DefaultContext` that only traces an action on a particular path
in the tree.
-
-A :py:class:`NullContext` does not trace any actions and is the default context.
"""
from abc import abstractmethod, ABC
from collections import OrderedDict
@@ -267,6 +265,4 @@ def local(ctx: Optional[Context] = None) -> ContextManager:
:param ctx: If none, current context is copied.
:return: A context manager.
"""
- if ctx is None:
- ctx = current
return _ContextManager(ctx)
diff --git a/pyecsca/ec/signature.py b/pyecsca/ec/signature.py
index 54ca010..abad783 100644
--- a/pyecsca/ec/signature.py
+++ b/pyecsca/ec/signature.py
@@ -74,6 +74,7 @@ class ECDSAAction(Action):
class ECDSASignAction(ECDSAAction):
"""ECDSA signing."""
+ # TODO: Make this a ResultAction
privkey: Mod
def __init__(
@@ -94,6 +95,7 @@ class ECDSASignAction(ECDSAAction):
class ECDSAVerifyAction(ECDSAAction):
"""ECDSA verification."""
+ # TODO: Make this a ResultAction
signature: SignatureResult
pubkey: Point