aboutsummaryrefslogtreecommitdiff
path: root/pyecsca/sca/target/__init__.py
blob: e75526a7d5817647622b54d135413dba3370baa3 (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
"""Package for communicating with targets of measurement."""

from .ISO7816 import *
from .base 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 *