J08nY/pyecsca
GitHub: J08nY/pyecsca
pyecsca是一个Python工具包,用于椭圆曲线密码学的侧信道分析和黑盒实现逆向工程。
Stars: 64 | Forks: 16
# pyecsca
[](https://pyecsca.org/) [](https://github.com/J08nY/pyecsca/blob/master/LICENSE)   [](https://codecov.io/gh/J08nY/pyecsca) [](https://deepsource.io/gh/J08nY/pyecsca/?ref=repository-badge)
**Py**thon **E**lliptic **C**urve cryptography **S**ide-**C**hannel **A**nalysis toolkit.
欲了解更多信息,请参阅[](https://pyecsca.org/)。
## 功能
**pyecsca** 旨在填补椭圆曲线密码学侧信道分析工具的空白,它专注于
ECC 的黑盒实现,并提供了一种通过侧信道提取 ECC 黑盒实现信息的方法。**pyecsca** 的主要目标
是能够逆向工程曲线模型、坐标系、加法公式、标量
乘法器乃至有限域实现细节。
目前提供以下功能:
- 枚举数百万种可能的 ECC 实现配置(参见 [notebook/configuration_space](https://pyecsca.org/notebook/configuration_space.html))
- 密钥生成、ECDH 和 ECDSA 的模拟与执行跟踪(参见 [notebook/simulation](https://pyecsca.org/notebook/simulation.html))
- 给定任意实现配置,为嵌入式设备合成 ECC 的 C 语言实现(参见 [notebook/codegen](https://pyecsca.org/notebook/codegen.html)),
以及实现的 CPU 级模拟(参见 [notebook/simulator](https://pyecsca.org/notebook/simulator.html))
- 使用 PicoScope/ChipWhisperer 示波器采集轨迹(参见 [notebook/measurement](https://pyecsca.org/notebook/measurement.html))
- 轨迹处理能力,例如信号处理、滤波、平均、裁剪、对齐([pyecsca.sca](https://pyecsca.org/api/pyecsca.sca.html))
- 使用 holoviews 和 datashader 进行轨迹可视化(参见 [notebook/visualization](https://pyecsca.org/notebook/visualization.html))
- 通过 PCSC/LEIA 与智能卡目标通信(参见 [notebook/smartcards](https://pyecsca.org/notebook/smartcards.html))
- 通过 RPA-RE 和 ZVP-RE 方法逆向工程黑盒 ECC(参见 [notebook/re/rpa](https://pyecsca.org/notebook/re/rpa.html) 和 [notebook/re/zvp](https://pyecsca.org/notebook/re/zvp.html))
**pyecsca** 由三个包组成:
- 核心包:https://github.com/J08nY/pyecsca
- 代码生成包:https://github.com/J08nY/pyecsca-codegen
- 笔记本包:https://github.com/J08nY/pyecsca-notebook
## 教程
要了解更多关于此工具包的信息,可以查看两个相关教程。
- 一个来自 2024 年在克罗地亚 Vodice 举行的[现实世界密码学与隐私暑期学校](https://github.com/J08nY/pyecsca-tutorial-croatia2024)。
- 一个来自在加拿大 Halifax 举行的 [2024 年密码学硬件与嵌入式系统会议](https://github.com/J08nY/pyecsca-tutorial-ches2024)。
## 许可证
```
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.
```
非常感谢贡献者:Tomas Jusko, Andrej Batora, Vojtech Suchanek 以及
ChipWhisperer/NewAE。
*开发工作得到了马萨里克大学基金 [MUNI/C/1701/2018](https://www.muni.cz/en/research/projects/46834) 的支持。*
*开发工作得到了 AI-SecTools (VJ02010010) 项目的支持。*
标签:ECC攻击, meg, TLS抓取, 云资产清单, 代码生成, 侧信道分析, 侧信道攻击, 信息安全, 加密实现分析, 加密算法, 密码学安全, 密码学实现, 情报收集, 椭圆曲线密码学, 模拟测试, 渗透测试工具, 漏洞分析, 漏洞研究, 硬件安全, 路径探测, 软件安全, 逆向工具, 逆向工程, 配置枚举, 黑盒分析