traces和trace头为侧通道分析设置了python库。
estraces的Python项目详细描述
estraces-跟踪和跟踪设置用于侧通道攻击的python库
estraces是一个python库,用于操作边通道跟踪集。它旨在提供一个清晰统一的api来处理 跟踪各种持久性和文件格式的示例和元数据。 它使用Numpy来处理数据。
estraces最初是由eshard开发和维护的,在开源中大量使用 侧通道分析框架。
开始
先决条件
您需要python 3.6+来使用和安装estraces。您可以使用pip(或任何基于pip的工具,如pipenv)或conda来安装它。
安装
要安装Estraces,可以使用PIP(或PIPENV或任何其他基于PIP的工具)或Conda:
$ pip install estraces
# or with Conda
$ conda install -c eshard estraces
打开跟踪集
如果跟踪集是二进制文件,则可以使用二进制读取器获取跟踪头集:
# First import the libimportestraces# We suppose the binary files are under traces/ and are named something.binmy_traces=estraces.read_ths_from_bin_filenames_pattern('traces/*.bin',# First indicate the filename pattern for the bin filedtype='uint8',# Indicate the numpy dtype of the datametadatas_parsers={}# This dict allows to associate metadata)
然后您可以阅读您的示例:
# This will return the data for the first 100 tracesmy_traces.samples[:100]# This will return the frame 0 - 1000 of all the traces as a numpy arraymy_traces.samples[:,:1000]# You can iterate on tracesfortraceinmy_traces:# do something
文档
要进一步了解所有关于疏远的信息,请转到the full documentation。
贡献
欢迎从反馈开始的所有贡献。 如果你想为这个项目做贡献,请阅读CONTRIBUTING.md。
许可证
此库是根据lgpl v3许可证授权的。有关详细信息,请参见LICENSE文件。
它主要用于非商业用途,由学术界、学生或专业人士愿意学习的基本边渠道分析。
如果您希望在商业或工业环境中使用此库,eshard将提供收费的商业许可证。联系我们!
作者
请参阅AUTHORS以获取该项目的参与者列表。