Skip to content

Python Elliptic Curve Side-Channel Analysis toolkit. Notebook repository.

License

Notifications You must be signed in to change notification settings

J08nY/pyecsca-notebook

Repository files navigation

pyecsca-notebook

License: MIT

Python Elliptic Curve cryptography Side-Channel Analysis toolkit.

Notebook package, see below for description of the notebooks showcasing the toolkit. See the main repo for more information.

Notebooks

Configuration space

The configuration space notebook explores the size of the space of possible implementation configurations of ECC.

Simulation

The simulation notebook showcases the simulation and execution tracing capabilities of the toolkit.

Codegen & emulation

The codegen notebook demonstrates the process of generating and interacting with generated C implementations of ECC for micro-controllers. The generated implementations can either be run on compatible hardware or emulated (at CPU-level) using the Rainbow-based emulator demonstrated in the emulator notebook.

Measurement

The measurement notebook demonstrates the trace acquisition using PicoScope/ChipWhisperer scopes that can be used with the toolkit.

Visualization

The visualization notebook showcases the trace visualization capabilities of the toolkit.

Smartcards

The smartcards notebook shows the options of communicating with smartcard targets using the toolkit.

Reverse-engineering

RPA-RE

The RPA notebook uses the Refined Power Analysis attack-based technique to reverse-engineer the scalar multiplier of ECC implementations, given access to a power side-channel.

EPA-RE

The EPA notebook uses the ideas behind the Exceptional Procedure Attack to reverse-engineer the coordinate system and formulas of ECC implementations, given access to an error side-channel.

ZVP-RE

The ZVP notebook uses the Zero-Value Point attack-based technique to reverse-engineer the coordinate system and formulas of ECC implementations, given access to a power side-channel.

Structural

The structural notebook explores the structure of scalar multiplers and addition formulas for reverse-engineering purposes.

License

MIT License

Copyright (c) 2018-2023 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.

Development is supported by the Masaryk University grant MUNI/C/1701/2018, this support is very appreciated.

About

Python Elliptic Curve Side-Channel Analysis toolkit. Notebook repository.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •