Skip to content

Unifying different ChipWhisperer devices and side-channel simulations to a common and easy-to-use API.

Notifications You must be signed in to change notification settings

hackenbergstefan/cwtoolbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ChipWhisperer Toolbox

Unifying different ChipWhisperer devices and side-channel simulations to a common and easy-to-use API.

Usage

Unix

  1. Install prerequisites:

    • Git
    • Python >=3.8
    • Make
    • arm-none-eabi-gcc, libnewlib-arm-none-eabi (for Arm victims)
    • avr-gcc, avr-libc (for CWLITEXMEGA)
  2. Clone and setup ChipWhisperer:

    git clone https://github.com/newaetech/chipwhisperer.git $HOME/work/chipwhisperer
    export CWFIRMWAREPATH=$HOME/chipwhisperer/hardware/victims/firmware

    Tip: If you are using VSCode you can omit setting the environment variable globally by adding a .env file in you workspace-root with the content CWFIRMWAREPATH=$HOME/chipwhisperer/hardware/victims/firmware.

  3. If necessary: Adjust udev rules as described here: https://chipwhisperer.readthedocs.io/en/latest/linux-install.html#installing-chipwhisperer

  4. Add cwtoolbox as requirement to your project:

    pyproject.toml:

    [tool.poetry.dependencies]
    cwtoolbox = {git = "https://github.com/hackenbergstefan/cwtoolbox.git", tag="v0.3.0"}

    requirements.txt:

    git+https://github.com/hackenbergstefan/[email protected]#egg=cwtoolbox

Windows

  1. Install ChipWhisperer as described here: https://chipwhisperer.readthedocs.io/en/latest/windows-install.html#windows-bundled-installer.

  2. Assuming you installed ChipWhisperer to C:\cw.

    Add the following folders to your PATH:

    C:\cw\cw\usr\bin;C:\cw\cw\home\portable\armgcc\bin;C:\cw\cw\home\portable\avrgcc\bin

    Create the following environment variable:

    CWFIRMWAREPATH=C:\cw\cw\home\portable\chipwhisperer\hardware\victims\firmware

    Tip: If you are using VSCode you can achieve that settings per workspace by adding a .env file with the following content:

    PATH=C:\cw\cw\usr\bin;C:\cw\cw\home\portable\armgcc\bin;C:\cw\cw\home\portable\avrgcc\bin;$env["PATH"]
    CWFIRMWAREPATH=C:\cw\cw\home\portable\chipwhisperer\hardware\victims\firmware
  3. Add cwtoolbox as requirement to your project:

    pyproject.toml:

    [tool.poetry.dependencies]
    cwtoolbox = {git = "https://github.com/hackenbergstefan/cwtoolbox.git", tag="v0.3.0"}

    requirements.txt:

    git+https://github.com/hackenbergstefan/[email protected]#egg=cwtoolbox

About

Unifying different ChipWhisperer devices and side-channel simulations to a common and easy-to-use API.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published