Giter Club home page Giter Club logo

key_ranking's Introduction

Key_Ranking

Evaluation Metric. We utilize key rank (a.k.a. guessing entropy ) as the metric to measure the attack performance of side-channel attacks. Specifically, given a power trace ti, classifier F outputs a HW score vector (si[0],...,si[8]), where si[j] is the score for Hamming weight j. Next, an attacker obtains a key score vector (ri[k1*],...,ri[k256*]) by calculating $$r_{i}[k^{*}_{g}] = s_{i}[j], \quad \textnormal{ if } \quad \mathtt{HW}(\varphi(m'_{i}, k^{*}_{g})) == j$$ for 1 ≤ g ≤ 256, where ri[kg*] is the score of possible key kg* according to trace ti and plaintext m′. The aggregated key score vector (r[k1*],...,r[k256*]) over N′ power traces are computed as $$r[k^{*}_{j}] = \sum_{i=1}^{N'} r_{i}[k^{*}_{j}], \textnormal{ \textit{for} $1\leq{j}\leq256$}$$ The aggregated key scores (r[k1*],...,r[k256*]) are further sorted in descending order based on the scores.

Key rank is denoted as w, where w ∈ [0,255], if correct key k′ is ranked as the (w+1)-th key among all the possible keys k1*, ..., k256* based on the aggregated key scores. A key rank of 0 over N′ traces suggests that an attacker can recover key k′ with N′ traces. We use KRC to indicate the number of test traces that an attacker needs for key rank to converge to 0. If key rank converges to 0 with a lower number of traces, it indicates that an attack is more effective.

key_ranking's People

Contributors

mabonmn avatar

Watchers

 avatar

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.