Python Elliptic Curve cryptography Side Channel Analysis toolkit.
Project description
Python Elliptic Curve cryptography Side-Channel Analysis toolkit.
Functionality
pyecsca aims to fill a gap in SCA tooling for Elliptic Curve Cryptography, it focuses on black-box implementations of ECC and presents a way to extract implementation information about a black-box implementation of ECC through side-channels. The main goal of pyecsca is to be able to reverse engineer the curve model, coordinate system, addition formulas, scalar multiplier and even finite-field implementation details.
It currently provides:
- Enumeration of millions of possible ECC implementation configurations (see notebook/configuration_space)
- Simulation and execution tracing of key generation, ECDH and ECDSA (see notebook/simulation)
- Synthesis of C implementations of ECC for embedded devices, given any implementation configuration (see notebook/codegen), CPU-level simulation of implementations (see notebook/simulator)
- Trace acquisition using PicoScope/ChipWhisperer oscilloscopes (see notebook/measurement)
- Trace processing capabilities, e.g. signal-processing, filtering, averaging, cutting, aligning (pyecsca.sca)
- Trace visualization using holoviews and datashader (see notebook/visualization)
- Communication via PCSC/LEIA with a smartcard target (see notebook/smartcards)
- Reverse-engineering of black-box ECC via RPA-RE and ZVP-RE methods (see notebook/re/rpa and notebook/re/zvp)
pyecsca consists of three packages:
- the core: https://github.com/J08nY/pyecsca
- the codegen package: https://github.com/J08nY/pyecsca-codegen
- the notebook package: https://github.com/J08nY/pyecsca-notebook
License
MIT License
Copyright (c) 2018-2024 Jan Jancar
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Thanks alot to contributors: Tomas Jusko, Andrej Batora, Vojtech Suchanek and to ChipWhisperer/NewAE.
Development was supported by the Masaryk University grant MUNI/C/1701/2018.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pyecsca-0.3.3.tar.gz
.
File metadata
- Download URL: pyecsca-0.3.3.tar.gz
- Upload date:
- Size: 265.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8822a415ea8320759b100182416a798f89505c65950f049a17bec0033781f715 |
|
MD5 | cf9e5e7be6e641048196b8d09f558e21 |
|
BLAKE2b-256 | 1e3d7d665dcc4dc1819a66866820975cf507c8a8436f393f60acf06f06028c5d |
File details
Details for the file pyecsca-0.3.3-py3-none-any.whl
.
File metadata
- Download URL: pyecsca-0.3.3-py3-none-any.whl
- Upload date:
- Size: 472.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 172f4021951cb8c7bdbdd7574b1d19225e8e0a2e0c308af7f5fe681b7730e941 |
|
MD5 | 8bb8b36d8719574b6be002f8994b1d0a |
|
BLAKE2b-256 | 0c8a2e4893ba7bab1ccbfdd4286466f5b4e1a510295a446ff2732f12a182b2bb |