Git Product home page Git Product logo

chao-pwr's Introduction

Screen-Shot-2019-02-18-at-5-30-59-PM

chao-pwr

NC State's Nonlinear Artificial Intelligence Lab (formerly its Applied Chaos Lab) has constructed circuits which leverage an evolving chaotic dynamical system to implement logic functions.

For reasons elucidated in doc, the lab wondered if these "chaotic logic gates" would be less susceptible than an ordinary computer to side-channel attacks.

Thus, I subjected these gates to Simple Power-Analysis (SPA) attacks, computing various metrics of robustness against them.

Outline

  1. fianle_small.py saves recorded data as dataframe and pickles it
  2. process.py splits data into distinct signatures and saves them 1D Numpy arrays
  3. plot.py generates function table & average power signatures, plots signatures
  4. fun.py performs analysis (signature correlation measurements, etc.)

Correlation Data

  1. corr: correlations calculated between 0 and 1 (treats out-of-phase as uncorrelated)
  2. fullcorr: correlations calculated between -1 and 1 (treats out-of-phase as negatively correlated)
  3. abscorr: correlations calculated between -1 and 1, then abs'd (treats out-of-phase as positively correlated)

Example Output (abscorr)

chao-pwr's People

Contributors

lychrel avatar

Watchers

 avatar  avatar

chao-pwr's Issues

Correlation Changes: Range to (-1,1) (then abs-val it) & Lag Correlation Analysis

Signals that correlate perfectly when phase-shifted some amount should be treated as at least partly similar, because it's not always easy to discern a phase shift during a power analysis attack. Right now, correlation function is blind to this.

Not only should correlations of 1 and -1 be treated as the same in this phase-shift-ignorant context, but correlation plots should be generated as a function of lag. This could be a nice gif: 2D colormap with each axis as the available functions, and lag step as time axis.

Similar graph could show point-by-point correlation over the colormap, iterating through time.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.