diff options
Diffstat (limited to 'pyecsca/sca/target')
| -rw-r--r-- | pyecsca/sca/target/ISO7816.py | 2 | ||||
| -rw-r--r-- | pyecsca/sca/target/PCSC.py | 2 | ||||
| -rw-r--r-- | pyecsca/sca/target/base.py | 2 | ||||
| -rw-r--r-- | pyecsca/sca/target/binary.py | 2 | ||||
| -rw-r--r-- | pyecsca/sca/target/chipwhisperer.py | 2 | ||||
| -rw-r--r-- | pyecsca/sca/target/ectester.py | 2 | ||||
| -rw-r--r-- | pyecsca/sca/target/flash.py | 2 | ||||
| -rw-r--r-- | pyecsca/sca/target/serial.py | 2 | ||||
| -rw-r--r-- | pyecsca/sca/target/simpleserial.py | 5 |
9 files changed, 11 insertions, 10 deletions
diff --git a/pyecsca/sca/target/ISO7816.py b/pyecsca/sca/target/ISO7816.py index cca09d5..4441f94 100644 --- a/pyecsca/sca/target/ISO7816.py +++ b/pyecsca/sca/target/ISO7816.py @@ -1,4 +1,4 @@ -"""This module provides classes for working with ISO7816-4 APDUs and an abstract base class for an ISO7816-4 based target.""" +"""Provides classes for working with ISO7816-4 APDUs and an abstract base class for an ISO7816-4 based target.""" from abc import abstractmethod, ABC from dataclasses import dataclass from typing import Optional diff --git a/pyecsca/sca/target/PCSC.py b/pyecsca/sca/target/PCSC.py index ca77d12..f36843f 100644 --- a/pyecsca/sca/target/PCSC.py +++ b/pyecsca/sca/target/PCSC.py @@ -1,4 +1,4 @@ -"""This module provides a smartcard target communicating via PC/SC (Personal Computer/Smart Card).""" +"""Provides a smartcard target communicating via PC/SC (Personal Computer/Smart Card).""" from typing import Union from public import public diff --git a/pyecsca/sca/target/base.py b/pyecsca/sca/target/base.py index 0c24f8d..53106d5 100644 --- a/pyecsca/sca/target/base.py +++ b/pyecsca/sca/target/base.py @@ -1,4 +1,4 @@ -"""This module provides an abstract base class for targets.""" +"""Provides an abstract base class for targets.""" from abc import ABC, abstractmethod from public import public diff --git a/pyecsca/sca/target/binary.py b/pyecsca/sca/target/binary.py index 9e782f6..310b9e2 100644 --- a/pyecsca/sca/target/binary.py +++ b/pyecsca/sca/target/binary.py @@ -1,4 +1,4 @@ -"""This module provides a binary target class which represents a target that is a runnable binary on the host.""" +"""Provides a binary target class which represents a target that is a runnable binary on the host.""" import subprocess from subprocess import Popen from typing import Optional, Union, List diff --git a/pyecsca/sca/target/chipwhisperer.py b/pyecsca/sca/target/chipwhisperer.py index 47e3ab0..49daef3 100644 --- a/pyecsca/sca/target/chipwhisperer.py +++ b/pyecsca/sca/target/chipwhisperer.py @@ -1,5 +1,5 @@ """ -This module provides a `ChipWhisperer <https://github.com/newaetech/chipwhisperer/>`_ target class. +Provides a `ChipWhisperer <https://github.com/newaetech/chipwhisperer/>`_ target class. ChipWhisperer is a side-channel analysis tool and framework. A ChipWhisperer target is one that uses the ChipWhisperer's SimpleSerial communication protocol and is communicated with diff --git a/pyecsca/sca/target/ectester.py b/pyecsca/sca/target/ectester.py index 4057e61..a4a13c2 100644 --- a/pyecsca/sca/target/ectester.py +++ b/pyecsca/sca/target/ectester.py @@ -1,4 +1,4 @@ -"""This module provides an `ECTester <https://github.com/crocs-muni/ECTester/>`_ target class.""" +"""Provides an `ECTester <https://github.com/crocs-muni/ECTester/>`_ target class.""" from abc import ABC from binascii import hexlify from enum import IntEnum, IntFlag diff --git a/pyecsca/sca/target/flash.py b/pyecsca/sca/target/flash.py index b644c27..95c078d 100644 --- a/pyecsca/sca/target/flash.py +++ b/pyecsca/sca/target/flash.py @@ -1,4 +1,4 @@ -"""This module provides a mix-in class of a flashable target (e.g. one where the code gets flashed to it before running).""" +"""Provides a mix-in class of a flashable target (e.g. one where the code gets flashed to it before running).""" from public import public from abc import ABC, abstractmethod diff --git a/pyecsca/sca/target/serial.py b/pyecsca/sca/target/serial.py index fba5d69..3b81851 100644 --- a/pyecsca/sca/target/serial.py +++ b/pyecsca/sca/target/serial.py @@ -1,4 +1,4 @@ -"""This module provides an abstract serial target, that communicates by writing and reading a stream of bytes.""" +"""Provides an abstract serial target, that communicates by writing and reading a stream of bytes.""" from abc import abstractmethod from public import public diff --git a/pyecsca/sca/target/simpleserial.py b/pyecsca/sca/target/simpleserial.py index 882ac93..aeb5c5f 100644 --- a/pyecsca/sca/target/simpleserial.py +++ b/pyecsca/sca/target/simpleserial.py @@ -1,4 +1,5 @@ -"""This module provides an abstract target class communicating using the `ChipWhisperer's <https://github.com/newaetech/chipwhisperer/>`_ SimpleSerial protocol.""" +"""Provides an abstract target class communicating using the `ChipWhisperer's <https://github.com/newaetech/chipwhisperer/>`_ SimpleSerial protocol.""" +from abc import ABC from time import time_ns, sleep from typing import Mapping, Union @@ -35,7 +36,7 @@ class SimpleSerialMessage: @public -class SimpleSerialTarget(SerialTarget): +class SimpleSerialTarget(SerialTarget, ABC): """A SimpleSerial target, sends and receives SimpleSerial messages over a serial link.""" def recv_msgs(self, timeout: int) -> Mapping[str, SimpleSerialMessage]: |
