aboutsummaryrefslogtreecommitdiff
path: root/pyecsca/sca/target/__init__.py
blob: 86317df4bb6ba341816c45899f4fde8c12f592c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
"""Package for communicating with targets of measurement."""

from .ISO7816 import *
from .base import *
from .serial import *

has_chipwhisperer = False
has_pyscard = False

try:
    import chipwhisperer

    has_chipwhisperer = True
except ImportError:  # pragma: no cover
    pass

try:
    import pyscard

    has_pyscard = True
except ImportError:  # pragma: no cover
    pass

if has_pyscard:
    from .PCSC import *

if has_chipwhisperer:
    from .chipwhisperer import *