From f0762df56cb6caedf2e62ed7f335b4c3ef0f2889 Mon Sep 17 00:00:00 2001 From: J08nY Date: Tue, 8 Aug 2023 10:53:42 +0200 Subject: Docs fix in context.py --- pyecsca/ec/context.py | 4 ---- pyecsca/ec/signature.py | 2 ++ 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 -- cgit v1.3.1