TL;DR

Description of a DPA attack on hardware accelerated HMAC SHA1 on a STM32F4 chip. Attack performs OK for the modular addition attacks on the inner SHA1 if we cheat by selecting the leaky points of interest. Outer SHA1 not tried, and the results of the attack on the Ch function output are not great. If you want to run this notebook, you need to download and unpack the trace set in this 3.5Gb zip first. It takes about 15 minutes to run the entire notebook.

Target

We're analyzing measurements taken from a Core417I board (the one like Core 407I but featuring a version of the STM32F4 chip with HW crypto accelerator). The board together with a custom sofware package is available from Riscure as a training target dubbed Piñata. Since vanilla Piñata software didn't do HMAC SHA1, I (@ceesb) cut and paste some of ST's reference code. Then, I added a command on the Piñata that feeds back a SHA1 output into the HMAC SHA1 computation so that Piñata does many HMACs per input sent from the PC:

i = 0
iterations = MSB_UINT32(readfromserial(4))
input = readfromserial(20)
for i < iterations:
   triggerUP()
   output = HMACSHA1(input)
   triggerDOWN()
   input = SHA1(input)
   i++
writetoserial(output)

It can be run from the PC by sending a message with command 0xdf:

=>   df <UINT32 MSB iterations> <20 bytes MSB input>
<=   <20 bytes output of last HMAC SHA1 iteration>

By doing this, we can trigger many HMAC SHA1 operations by just sending a single command to the Piñata. This is important because the overhead of the serial communication is enormous compared to the duration of the HMAC SHA1 (or any symmetric crypto) if you only do 1 crypto operation per sent command! To exploit the reduced communication overhead we use the Picoscope in rapid block mode.

Acquisition

Acquired > 1M traces of 3900 samples at 1Gs/s in less than 15 minutes. 3.5Gb 7-zipped trace set here. You need to download and unpack this zip before you can run the notebook!

Riscure EM probe (LS) over the chip, right in the middle.

Picoscope in rapid block mode, 4096 encryptions per scope fetch. On receiving the 4096 traces on the PC we compute the inputs and store them in a trace set. Since we know the key, we verify that the last HMAC output of the Piñata matches with what we expect, so we know for sure all traces match the inputs. Obviously the acquisition is done with a Julia script, similar to piposcope.jl in Jlsca's example folder, but send me a ping if you want it.

Attack definition

The attack is the same as described in Section 3.4 in this paper by Belaid and others.

We're going to take a look at SHA1 HMAC using the input. The key itself cannot be recovered since there is no differential data being mixed with the key. The two SHA1 states themselves are sufficient to create arbitrary HMACs. One can also attack the outer SHA1 using an output attack, but this is not shown here (although Jlsca implements this attack too). We'll only be looking at the inner SHA1.

To explain this attack, we first define some terms:

  • a0,b0,c0,d0,e0: the 160-bit SHA1 state we are to recover, in 5 32-bit numbers
  • W0 - W3: the attacker controlled and known 32-bit inputs
  • T0-T3: the value of T for rounds 0-3
  • F0-F3: the output value of the F function for rounds 0-3
  • Rot(x,a): rotates x left by a bits
  • Ch(a,b,c) = (a & b) XOR (~a & c)

We then roll out first 4 rounds of the inner SHA1 loop in the terms defined above (constants omitted):

T0 = Rot(a0, 5) + Ch(b0, c0, d0) + e0 + W0
F0 = Ch(b0, c0, d0)

T1 = Rot(T0, 5) + Ch(a0, Rot(b0, 30), c0) + d0 + W1
F1 = Ch(a0, Rot(b0, 30), c0)

T2 = Rot(T1, 5) + Ch(T0, Rot(a0, 30), Rot(b0, 30)) + c0 + W2
F2 = Ch(T0, Rot(a0, 30), Rot(b0, 30))

T3 = Rot(T2, 5) + Ch(T1, Rot(T0, 30), Rot(a0, 30)) + Rot(b0, 30) + W3
F3 = Ch(T1, Rot(T0, 30), Rot(a0, 30))

The SHA1 input attack steps are then:

  1. DPA attack on 32-bit modular addition to guess "Rot(a0, 5) + Ch(b0, c0, d0)" and predict "T0" since we know "W0"
  2. DPA attack on 32-bit modular addition to guess "Ch(a0, Rot(b0, 30), c0) + d0" and predict "T1" since we know "W1" and "Rot(T0, 5)"
  3. DPA attack on Ch function to guess "Rot(a0, 30)" and predict "F3" since we know "T1" and "Rot(T0, 30)"
  4. DPA attack on Ch function to guess "Rot(b0, 30)" and predict "F2" since we know "T0" and "Rot(a0, 30)"
  5. DPA attack on 32-bit modular addition to guess "c0" and predict "T2" since we know "Rot(T1, 5) + Ch(T0, Rot(a0, 30), Rot(b0, 30))" and "W2"

These 5 attacks allow us to recover the secret SHA1 state a0,b0,c0,d0,e0. DPA attacks 1-5 are recovering 32-bit numbers and in order to enumerate the guesses we need to split the attacks up in smaller (typically 8-bits or less) attack so that the key space can be enumerated. How to split up the attacks is described in this paper by Lemke, Schramm and Paar. Note that DPA attack n depends on the output of attack n-1 for n > 1. In Jlsca terms we'd call these attack phases. For DPA 3 and 4 multiple parts of the secret can be recovered simulteaneously since they're independent. Within a phase you can therefore have multiple targets.

In Jlsca, the SHA1 attack is split up in 14 phases and targets as follows:

  • Phase 1, target 1: byte 0 of DPA 1
  • Phase 2, target 1: byte 1 of DPA 1
  • Phase 3, target 1: byte 2 of DPA 1
  • Phase 4, target 1: byte 3 of DPA 1
  • Phase 5, target 1: byte 0 of DPA 2
  • Phase 6, target 1: byte 1 of DPA 2
  • Phase 7, target 1: byte 2 of DPA 2
  • Phase 8, target 1: byte 3 of DPA 2
  • Phase 9, targets 1-4, 4 bytes of DPA 3
  • Phase 10, targets 1-4, 4 bytes of DPA 4
  • Phase 11, target 1: byte 0 of DPA 5
  • Phase 12, target 1: byte 1 of DPA 5
  • Phase 13, target 1: byte 2 of DPA 5
  • Phase 14, target 1: byte 3 of DPA 5

Note also that this attack only uses the first 12 bytes of the input! (W0, W1 and W2)

Note also that for HMAC we need to perform the SHA1 attack two times, but we don't in this notebook.

Notebook performance

This notebook uses threaded correlation, and benefits from using multiple cores. Julia doesn't allow adding cores programmatically, so if you want to add cores, you need to make sure you have something like this in your .profile, and then restart the Jupyter notebook from a shell spawned with this environment variable set.

export JULIA_NUM_THREADS=2

I pick the number to be the number of physical cores in my CPU(s) and that works quite well. The output of the notebook as shown here when you don't rerun it yourself is created using 2 threads on an Intel(R) Core(TM) i7-6600U CPU @ 2.60GHz.


In [1]:
using Jlsca.Trs
using Jlsca.Sca
using Jlsca.Sha
using Jlsca.Align    
using ProgressMeter
using Plots

In [2]:
trs = InspectorTrace("pinatahmacsha1.trs")
# a dirty hack to make Jlsca interpret this data as signed (don't change this to types with different sizes, 
# or bad fail)
trs.sampleType = Int8
inputLength = length(trs[1][1])
len = length(trs)
interval = 50000

plot(getSamples(trs,1))


Opened pinatahmacsha1.trs, #traces 1228800, #samples 3900 (UInt8), #data 20
Out[2]:
0 1000 2000 3000 4000 -50 0 50 100 y1

Alignment

First things first, we need some alignment.


In [3]:
# sets up a static align pass

popSamplePass(trs)

# how much we are willing to move to find an optimum correlation with the reference
maxShift = 100
# where you want the reference to be placed in the result. Setting this to 1 will place it at the beginning.
referenceOffset = 900
# how long the reference is
referenceLength = 600
# the reference data itself. Can come from anywhere, but here we extract it from one of traces
reference = trs[1][2][referenceOffset:referenceOffset+referenceLength-1]
# drop traces that correlate less than this minimum
corvalMin = 0.0
# use the FFTW correlator with the above settings
alignstate = CorrelationAlignFFT(reference, referenceOffset, maxShift)
# caches the shift and correlation values, so that in a given process it's only computed once for each trace
alignpass = AlignPass(alignstate, length(trs), corvalMin)
nothing

In [4]:
empty!(trs.meta.passes)
addSamplePass(trs, alignpass)

We'll plot some trace in the same window to show the effect of the alignment.


In [5]:
# show a few traces in the same window
p = plot()
for i in 1:20
    p = plot!(p,trs[i][2],legend=false)
end
display(p)


0 1000 2000 3000 4000 -100 -50 0 50 100

Finding your inner SHA1

Now we need to find where the inner SHA1 is. We'll use input/output correlation. First we need to define some functions to compute this under a known key. We also define the function that does the correlation (parallel and threaded, just for fun).


In [6]:
# helper functions for the known key analysis

# will contain the secret inner SHA1 state, used for correlating with intermediates under known key scenario
# (i.e. known key analysis)
innerstate = Sha1state()
# the master key used for HMAC SHA1 on the pinata
key = hex2bytes("cafebabedeadbeef0001020304050607cafebabedeadbeef")
# the inner SHA1 key is derived from the master key by a hash
innerkey = Sha.K0(key) .⊻ 0x36
update(innerstate, innerkey)
# the secret state of the inner SHA1, passed as a known key into the attack later
knownkeyinner = reinterpret(UInt8, map(hton, innerstate.H))
# will contain the secret inner SHA1 state, used for known key analysis later
outerstate = Sha1state()
# the outer SHA1 key is derived from the master key by a hash        
outerkey = Sha.K0(key) .⊻ 0x5c
update(outerstate, outerkey)
# the secret state of the outer SHA1
knownkeyouter = reinterpret(UInt8, map(hton, outerstate.H))

# computes the output the inner SHA1, used for finding the relevant sample range
function inneroutput(innerstate::Sha1state, msg::Vector{UInt8})
    state = deepcopy(innerstate)
    update(state, msg)
    return final(state)
end

# given the known inner SHA1 key computes the HD between 0,T0 T0,T1 T1,T2, T2,T3, used for spot finding
function knownintermediate(msg::Vector{UInt8},intermediate::String,range::UnitRange,doxor=false)
    data = zeros(UInt32, length(range))
    cnt = Ref(1)
    innerstate2 = deepcopy(innerstate)
    update(innerstate2, msg[1:inputLength])

    function leakfn(x,y)
        if x == intermediate
            if cnt.x in range
                data[cnt.x-range[1]+1] = y
            end
            cnt.x += 1
        end
    end

    final(innerstate2, leakfn)

    if doxor
        xor = 0x00000000
        for i in 1:length(data)
            tmp = data[i]
            data[i] ⊻= xor
            xor = tmp
        end
    end
    return map(hton, data)
end

function correlateDataSamples(trs::Traces,r=1:length(trs))
    nsamples = nrsamples(trs,true)
    ic = IncrementalCovarianceTiled(nsamples,length(getData(trs,1)))
    
    @showprogress 1 "Correlating data and samples.. " for t in r
        (data, samples) = trs[t]
        if length(data) == 0 || length(samples) == 0
            continue
        end
        add!(ic, samples, data)
    end
            
    return getCorr(ic)
end


Out[6]:
correlateDataSamples (generic function with 2 methods)

We're going to cheat immediately, because we need to select samples where the target leaks in order to prevent correlation peaks from ruining the result since our targets are very linear with respect to the SHA1 input. The next code blocks compute the correlation of samples with the HW of T0-T3, and then with F2-F3. We'll plot those correlations later, and only run the attacks on the sample offsets where we see correlation peaks.

The first correlation we compute with T will be much slower than the next with F. This is because the static align pass is "lazy". Static align is expensive because you need to compute an FFT for every trace. The pass makes sure we do this only once for each trace, i.e. on first fetch of a trace, and record the shift distance with respect to the reference trace for future fetches. Any subsequent time we fetch that same trace, we just shift it to align without computing the FFT again.


In [7]:
empty!(meta(trs).passes)
empty!(meta(trs).dataPasses)

addSamplePass(trs, alignpass)
addDataPass(trs, x -> knownintermediate(x,"T",1:4))
addDataPass(trs, x -> hw.(x))

@time CT = correlateDataSamples(trs) .|> abs
nothing


Correlating data and samples.. 100%|████████████████████| Time: 0:03:21
202.188752 seconds (1.17 G allocations: 262.912 GiB, 6.37% gc time)

In [8]:
empty!(meta(trs).passes)
empty!(meta(trs).dataPasses)

addSamplePass(trs, alignpass)
addDataPass(trs, x -> knownintermediate(x,"F",3:4))
addDataPass(trs, x -> hw.(x))

@time CF = correlateDataSamples(trs) .|> abs
nothing


Correlating data and samples.. 100%|████████████████████| Time: 0:00:26
 26.306781 seconds (49.50 M allocations: 12.556 GiB, 3.87% gc time)

DPA 1: attacking T0

First we plot the points of interest: the correlation between the meassurements and the 32-bit HW of T0.


In [9]:
plot(CT[:,1])


Out[9]:
0 1000 2000 3000 4000 0.000 0.005 0.010 0.015 y1

Then we take sample offsets of the 5 highest peaks, and only use these measuerement points in the DPA attack, see leakyT0samples in the first line of the next cell. We output the rankings every 50K traces so that we can plot the rank evolution. It will provide a lot of text clutter in the output of the next cell, but in the following cell we make a nice plot.


In [10]:
leakyT0samples = sortperm(CT[:,1],rev=true)[1:5]

attack = Sha1InputAttack()
analysis = IncrementalCPA()
params1 = DpaAttack(attack,analysis)
params1.knownKey = knownkeyinner
params1.phases = 1:4
params1.updateInterval = interval
params1.analysis.leakages= vcat([HW()],[Bit(x) for x in 0:7])

empty!(meta(trs).passes)
empty!(meta(trs).dataPasses)
addSamplePass(trs, alignpass)
addSamplePass(trs, x -> x[leakyT0samples])

@time rankdata1 = sca(trs, params1, 1,len)
nothing


Jlsca running in Julia version: 1.3.0, 1 processes/1 workers/2 threads per worker

DPA parameters
attack:       Sha1 input
T xor:        false
analysis:     Incremental CPA
leakages:     HW,bit0,bit1,bit2,bit3,bit4,bit5,bit6,bit7
maximization: abs global max
combination:  +
data at:      1
phases:       [1, 2, 3, 4]
known key:    685d79d6007d6cb9437d9393ce6eacdefbf69a0a

phase: 1 / 14, #targets 1

Attacking columns 1:5 out of 5 columns (run 1 out of 1)
Running "Incremental correlation" on trace range 1:1:50000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 50000 rows, 5 cols (50000 rows consumed)
target: 1, phase: 1, #candidates 256
rank:   1, candidate: 0x81, score: 0.075634 @ 2
rank:   2, candidate: 0x79, score: 0.075249 @ 2
rank:   3, candidate: 0x01, score: 0.074509 @ 3
rank:   4, correct  : 0x47, score: 0.073772 @ 1
rank:   5, candidate: 0xf9, score: 0.072527 @ 2
recovered key material: 81
Running "Incremental correlation" on trace range 50001:1:100000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 100000 rows, 5 cols (100000 rows consumed)
target: 1, phase: 1, #candidates 256
rank:   1, candidate: 0x07, score: 0.060973 @ 2
rank:   2, candidate: 0x71, score: 0.058587 @ 2
rank:   3, correct  : 0x47, score: 0.058551 @ 1
rank:   4, candidate: 0xc7, score: 0.057664 @ 1
rank:   5, candidate: 0x0b, score: 0.057102 @ 4
recovered key material: 07
Running "Incremental correlation" on trace range 100001:1:150000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 150000 rows, 5 cols (150000 rows consumed)
target: 1, phase: 1, #candidates 256
rank:   1, correct  : 0x47, score: 0.060593 @ 3
rank:   2, candidate: 0x07, score: 0.058488 @ 1
rank:   3, candidate: 0xc7, score: 0.058028 @ 3
rank:   4, candidate: 0x87, score: 0.056656 @ 3
rank:   5, candidate: 0x75, score: 0.055392 @ 1
recovered key material: 47
Running "Incremental correlation" on trace range 150001:1:200000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 200000 rows, 5 cols (200000 rows consumed)
target: 1, phase: 1, #candidates 256
rank:   1, correct  : 0x47, score: 0.053338 @ 3
rank:   2, candidate: 0xc7, score: 0.051377 @ 3
rank:   3, candidate: 0x0b, score: 0.050164 @ 4
rank:   4, candidate: 0x07, score: 0.049827 @ 2
rank:   5, candidate: 0x75, score: 0.049355 @ 1
recovered key material: 47
Running "Incremental correlation" on trace range 200001:1:250000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 250000 rows, 5 cols (250000 rows consumed)
target: 1, phase: 1, #candidates 256
rank:   1, correct  : 0x47, score: 0.053083 @ 3
rank:   2, candidate: 0xc7, score: 0.051275 @ 3
rank:   3, candidate: 0x4b, score: 0.047398 @ 3
rank:   4, candidate: 0x3f, score: 0.046978 @ 1
rank:   5, candidate: 0x07, score: 0.046681 @ 5
recovered key material: 47
Running "Incremental correlation" on trace range 250001:1:300000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 300000 rows, 5 cols (300000 rows consumed)
target: 1, phase: 1, #candidates 256
rank:   1, correct  : 0x47, score: 0.048253 @ 3
rank:   2, candidate: 0xc7, score: 0.045647 @ 3
rank:   3, candidate: 0x3f, score: 0.043546 @ 3
rank:   4, candidate: 0x4b, score: 0.042662 @ 3
rank:   5, candidate: 0xbf, score: 0.042064 @ 3
recovered key material: 47
Running "Incremental correlation" on trace range 300001:1:350000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 350000 rows, 5 cols (350000 rows consumed)
target: 1, phase: 1, #candidates 256
rank:   1, correct  : 0x47, score: 0.047028 @ 3
rank:   2, candidate: 0xc7, score: 0.044121 @ 3
rank:   3, candidate: 0x3f, score: 0.043640 @ 3
rank:   4, candidate: 0x4b, score: 0.043604 @ 3
rank:   5, candidate: 0x43, score: 0.043084 @ 5
recovered key material: 47
Running "Incremental correlation" on trace range 350001:1:400000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 400000 rows, 5 cols (400000 rows consumed)
target: 1, phase: 1, #candidates 256
rank:   1, candidate: 0x3f, score: 0.043183 @ 3
rank:   2, correct  : 0x47, score: 0.042602 @ 3
rank:   3, candidate: 0x3b, score: 0.041680 @ 5
rank:   4, candidate: 0xfc, score: 0.041459 @ 3
rank:   5, candidate: 0xbf, score: 0.041330 @ 3
recovered key material: 3f
Running "Incremental correlation" on trace range 400001:1:450000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 450000 rows, 5 cols (450000 rows consumed)
target: 1, phase: 1, #candidates 256
rank:   1, candidate: 0x3f, score: 0.045664 @ 3
rank:   2, candidate: 0xbf, score: 0.043652 @ 3
rank:   3, correct  : 0x47, score: 0.042937 @ 3
rank:   4, candidate: 0x3b, score: 0.042461 @ 5
rank:   5, candidate: 0xbb, score: 0.041076 @ 5
recovered key material: 3f
Running "Incremental correlation" on trace range 450001:1:500000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 500000 rows, 5 cols (500000 rows consumed)
target: 1, phase: 1, #candidates 256
rank:   1, candidate: 0x3f, score: 0.047473 @ 3
rank:   2, candidate: 0xbf, score: 0.045225 @ 3
rank:   3, correct  : 0x47, score: 0.043058 @ 3
rank:   4, candidate: 0x43, score: 0.041750 @ 5
rank:   5, candidate: 0x37, score: 0.041334 @ 3
recovered key material: 3f
Running "Incremental correlation" on trace range 500001:1:550000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 550000 rows, 5 cols (550000 rows consumed)
target: 1, phase: 1, #candidates 256
rank:   1, candidate: 0x3f, score: 0.046419 @ 3
rank:   2, candidate: 0xbf, score: 0.044430 @ 3
rank:   3, correct  : 0x47, score: 0.043335 @ 3
rank:   4, candidate: 0xc7, score: 0.041074 @ 3
rank:   5, candidate: 0x37, score: 0.041029 @ 3
recovered key material: 3f
Running "Incremental correlation" on trace range 550001:1:600000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 600000 rows, 5 cols (600000 rows consumed)
target: 1, phase: 1, #candidates 256
rank:   1, candidate: 0x3f, score: 0.044470 @ 3
rank:   2, candidate: 0xbf, score: 0.042493 @ 3
rank:   3, correct  : 0x47, score: 0.041327 @ 3
rank:   4, candidate: 0x7f, score: 0.039196 @ 3
rank:   5, candidate: 0xc7, score: 0.039104 @ 3
recovered key material: 3f
Running "Incremental correlation" on trace range 600001:1:650000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 650000 rows, 5 cols (650000 rows consumed)
target: 1, phase: 1, #candidates 256
rank:   1, candidate: 0x3f, score: 0.043221 @ 3
rank:   2, candidate: 0xbf, score: 0.041440 @ 3
rank:   3, correct  : 0x47, score: 0.040205 @ 3
rank:   4, candidate: 0xc7, score: 0.038235 @ 3
rank:   5, candidate: 0x37, score: 0.037886 @ 3
recovered key material: 3f
Running "Incremental correlation" on trace range 650001:1:700000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 700000 rows, 5 cols (700000 rows consumed)
target: 1, phase: 1, #candidates 256
rank:   1, candidate: 0x3f, score: 0.042367 @ 3
rank:   2, candidate: 0xbf, score: 0.040801 @ 3
rank:   3, correct  : 0x47, score: 0.038954 @ 3
rank:   4, candidate: 0xc7, score: 0.037182 @ 3
rank:   5, candidate: 0x7f, score: 0.037091 @ 1
recovered key material: 3f
Running "Incremental correlation" on trace range 700001:1:750000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 750000 rows, 5 cols (750000 rows consumed)
target: 1, phase: 1, #candidates 256
rank:   1, candidate: 0x3f, score: 0.042501 @ 3
rank:   2, candidate: 0xbf, score: 0.041016 @ 3
rank:   3, correct  : 0x47, score: 0.039164 @ 3
rank:   4, candidate: 0xff, score: 0.037614 @ 4
rank:   5, candidate: 0xc7, score: 0.037581 @ 3
recovered key material: 3f
Running "Incremental correlation" on trace range 750001:1:800000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 800000 rows, 5 cols (800000 rows consumed)
target: 1, phase: 1, #candidates 256
rank:   1, candidate: 0x3f, score: 0.044534 @ 3
rank:   2, candidate: 0xbf, score: 0.042579 @ 3
rank:   3, correct  : 0x47, score: 0.039294 @ 3
rank:   4, candidate: 0x7f, score: 0.039008 @ 1
rank:   5, candidate: 0xff, score: 0.038991 @ 4
recovered key material: 3f
Running "Incremental correlation" on trace range 800001:1:850000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 850000 rows, 5 cols (850000 rows consumed)
target: 1, phase: 1, #candidates 256
rank:   1, candidate: 0x3f, score: 0.043088 @ 3
rank:   2, candidate: 0xbf, score: 0.040887 @ 3
rank:   3, correct  : 0x47, score: 0.038542 @ 3
rank:   4, candidate: 0x40, score: 0.038353 @ 1
rank:   5, candidate: 0x7f, score: 0.037946 @ 3
recovered key material: 3f
Running "Incremental correlation" on trace range 850001:1:900000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 900000 rows, 5 cols (900000 rows consumed)
target: 1, phase: 1, #candidates 256
rank:   1, candidate: 0x3f, score: 0.041447 @ 3
rank:   2, candidate: 0xbf, score: 0.039359 @ 3
rank:   3, correct  : 0x47, score: 0.037988 @ 3
rank:   4, candidate: 0x40, score: 0.036431 @ 1
rank:   5, candidate: 0x7f, score: 0.036390 @ 3
recovered key material: 3f
Running "Incremental correlation" on trace range 900001:1:950000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 950000 rows, 5 cols (950000 rows consumed)
target: 1, phase: 1, #candidates 256
rank:   1, candidate: 0x3f, score: 0.041121 @ 3
rank:   2, candidate: 0xbf, score: 0.039113 @ 3
rank:   3, correct  : 0x47, score: 0.037356 @ 3
rank:   4, candidate: 0x7f, score: 0.036356 @ 3
rank:   5, candidate: 0x40, score: 0.036073 @ 1
recovered key material: 3f
Running "Incremental correlation" on trace range 950001:1:1000000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 1000000 rows, 5 cols (1000000 rows consumed)
target: 1, phase: 1, #candidates 256
rank:   1, candidate: 0x3f, score: 0.040883 @ 3
rank:   2, candidate: 0xbf, score: 0.038596 @ 3
rank:   3, correct  : 0x47, score: 0.037894 @ 3
rank:   4, candidate: 0x40, score: 0.036267 @ 1
rank:   5, candidate: 0x43, score: 0.035737 @ 5
recovered key material: 3f
Running "Incremental correlation" on trace range 1000001:1:1050000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 1050000 rows, 5 cols (1050000 rows consumed)
target: 1, phase: 1, #candidates 256
rank:   1, candidate: 0x3f, score: 0.039164 @ 3
rank:   2, correct  : 0x47, score: 0.037774 @ 3
rank:   3, candidate: 0xbf, score: 0.037042 @ 5
rank:   4, candidate: 0x40, score: 0.035491 @ 1
rank:   5, candidate: 0xc7, score: 0.035427 @ 3
recovered key material: 3f
Running "Incremental correlation" on trace range 1050001:1:1100000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 1100000 rows, 5 cols (1100000 rows consumed)
target: 1, phase: 1, #candidates 256
rank:   1, candidate: 0x3f, score: 0.039492 @ 3
rank:   2, correct  : 0x47, score: 0.037615 @ 3
rank:   3, candidate: 0xbf, score: 0.037134 @ 5
rank:   4, candidate: 0x00, score: 0.035872 @ 3
rank:   5, candidate: 0x40, score: 0.035816 @ 1
recovered key material: 3f
Running "Incremental correlation" on trace range 1100001:1:1150000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 1150000 rows, 5 cols (1150000 rows consumed)
target: 1, phase: 1, #candidates 256
rank:   1, candidate: 0x3f, score: 0.038804 @ 3
rank:   2, correct  : 0x47, score: 0.037292 @ 3
rank:   3, candidate: 0xbf, score: 0.036646 @ 5
rank:   4, candidate: 0x00, score: 0.036236 @ 3
rank:   5, candidate: 0x40, score: 0.035927 @ 1
recovered key material: 3f
Running "Incremental correlation" on trace range 1150001:1:1200000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 1200000 rows, 5 cols (1200000 rows consumed)
target: 1, phase: 1, #candidates 256
rank:   1, candidate: 0x3f, score: 0.038563 @ 3
rank:   2, correct  : 0x47, score: 0.037266 @ 3
rank:   3, candidate: 0xbf, score: 0.036526 @ 5
rank:   4, candidate: 0x43, score: 0.035054 @ 5
rank:   5, candidate: 0x00, score: 0.034923 @ 3
recovered key material: 3f
Running "Incremental correlation" on trace range 1200001:1:1228800, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 1228800 rows, 5 cols (1228800 rows consumed)
target: 1, phase: 1, #candidates 256
rank:   1, candidate: 0x3f, score: 0.038409 @ 3
rank:   2, correct  : 0x47, score: 0.036506 @ 3
rank:   3, candidate: 0xbf, score: 0.036440 @ 5
rank:   4, candidate: 0x00, score: 0.034952 @ 3
rank:   5, candidate: 0x40, score: 0.034853 @ 1
recovered key material: 3f

phase: 2 / 14, #targets 1
phase input: 47

Attacking columns 1:5 out of 5 columns (run 1 out of 1)
Running "Incremental correlation" on trace range 1:1:50000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 50000 rows, 5 cols (50000 rows consumed)
target: 1, phase: 2, #candidates 256
rank:   1, candidate: 0x00, score: 0.114783 @ 5
rank:   2, candidate: 0x10, score: 0.110621 @ 5
rank:   3, candidate: 0x41, score: 0.110262 @ 2
rank:   4, candidate: 0x80, score: 0.109474 @ 5
rank: 231, correct  : 0xcf, score: 0.074051 @ 1
recovered key material: 00
Running "Incremental correlation" on trace range 50001:1:100000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 100000 rows, 5 cols (100000 rows consumed)
target: 1, phase: 2, #candidates 256
rank:   1, candidate: 0x00, score: 0.088960 @ 5
rank:   2, candidate: 0x80, score: 0.085043 @ 5
rank:   3, candidate: 0x51, score: 0.084065 @ 3
rank:   4, candidate: 0xc0, score: 0.083641 @ 3
rank:  79, correct  : 0xcf, score: 0.068754 @ 1
recovered key material: 00
Running "Incremental correlation" on trace range 100001:1:150000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 150000 rows, 5 cols (150000 rows consumed)
target: 1, phase: 2, #candidates 256
rank:   1, candidate: 0x00, score: 0.081944 @ 5
rank:   2, candidate: 0x80, score: 0.079564 @ 5
rank:   3, candidate: 0x41, score: 0.078160 @ 2
rank:   4, candidate: 0xc1, score: 0.077129 @ 2
rank:  23, correct  : 0xcf, score: 0.069382 @ 2
recovered key material: 00
Running "Incremental correlation" on trace range 150001:1:200000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 200000 rows, 5 cols (200000 rows consumed)
target: 1, phase: 2, #candidates 256
rank:   1, candidate: 0x00, score: 0.079881 @ 5
rank:   2, candidate: 0x51, score: 0.077219 @ 1
rank:   3, candidate: 0x80, score: 0.077182 @ 5
rank:   4, candidate: 0x41, score: 0.077069 @ 2
rank:  14, correct  : 0xcf, score: 0.072780 @ 1
recovered key material: 00
Running "Incremental correlation" on trace range 200001:1:250000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 250000 rows, 5 cols (250000 rows consumed)
target: 1, phase: 2, #candidates 256
rank:   1, candidate: 0x51, score: 0.076307 @ 3
rank:   2, candidate: 0xd1, score: 0.074265 @ 1
rank:   3, candidate: 0x41, score: 0.072614 @ 2
rank:   4, candidate: 0x4f, score: 0.071415 @ 1
rank:   8, correct  : 0xcf, score: 0.069087 @ 1
recovered key material: 51
Running "Incremental correlation" on trace range 250001:1:300000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 300000 rows, 5 cols (300000 rows consumed)
target: 1, phase: 2, #candidates 256
rank:   1, candidate: 0x51, score: 0.078724 @ 1
rank:   2, candidate: 0x00, score: 0.076359 @ 5
rank:   3, candidate: 0xd1, score: 0.075719 @ 1
rank:   4, candidate: 0x41, score: 0.073993 @ 2
rank:  12, correct  : 0xcf, score: 0.070505 @ 1
recovered key material: 51
Running "Incremental correlation" on trace range 300001:1:350000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 350000 rows, 5 cols (350000 rows consumed)
target: 1, phase: 2, #candidates 256
rank:   1, candidate: 0x51, score: 0.075505 @ 1
rank:   2, candidate: 0x00, score: 0.075346 @ 5
rank:   3, candidate: 0x80, score: 0.072566 @ 5
rank:   4, candidate: 0xd1, score: 0.072510 @ 1
rank:   9, correct  : 0xcf, score: 0.068843 @ 1
recovered key material: 51
Running "Incremental correlation" on trace range 350001:1:400000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 400000 rows, 5 cols (400000 rows consumed)
target: 1, phase: 2, #candidates 256
rank:   1, candidate: 0x51, score: 0.076795 @ 1
rank:   2, candidate: 0x00, score: 0.074957 @ 5
rank:   3, candidate: 0xd1, score: 0.074073 @ 1
rank:   4, candidate: 0x4f, score: 0.072421 @ 1
rank:   7, correct  : 0xcf, score: 0.069650 @ 1
recovered key material: 51
Running "Incremental correlation" on trace range 400001:1:450000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 450000 rows, 5 cols (450000 rows consumed)
target: 1, phase: 2, #candidates 256
rank:   1, candidate: 0x51, score: 0.074411 @ 1
rank:   2, candidate: 0x00, score: 0.073776 @ 5
rank:   3, candidate: 0xd1, score: 0.071492 @ 1
rank:   4, candidate: 0x80, score: 0.070252 @ 5
rank:   8, correct  : 0xcf, score: 0.066888 @ 1
recovered key material: 51
Running "Incremental correlation" on trace range 450001:1:500000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 500000 rows, 5 cols (500000 rows consumed)
target: 1, phase: 2, #candidates 256
rank:   1, candidate: 0x00, score: 0.073361 @ 5
rank:   2, candidate: 0x51, score: 0.072070 @ 1
rank:   3, candidate: 0x80, score: 0.069568 @ 5
rank:   4, candidate: 0x4f, score: 0.069182 @ 1
rank:   7, correct  : 0xcf, score: 0.066309 @ 1
recovered key material: 00
Running "Incremental correlation" on trace range 500001:1:550000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 550000 rows, 5 cols (550000 rows consumed)
target: 1, phase: 2, #candidates 256
rank:   1, candidate: 0x00, score: 0.074306 @ 5
rank:   2, candidate: 0x51, score: 0.073833 @ 1
rank:   3, candidate: 0x4f, score: 0.071493 @ 1
rank:   4, candidate: 0x80, score: 0.070573 @ 5
rank:   7, correct  : 0xcf, score: 0.068182 @ 1
recovered key material: 00
Running "Incremental correlation" on trace range 550001:1:600000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 600000 rows, 5 cols (600000 rows consumed)
target: 1, phase: 2, #candidates 256
rank:   1, candidate: 0x51, score: 0.073789 @ 1
rank:   2, candidate: 0x4f, score: 0.072609 @ 1
rank:   3, candidate: 0x00, score: 0.072385 @ 5
rank:   4, candidate: 0xd1, score: 0.070555 @ 1
rank:   5, correct  : 0xcf, score: 0.069369 @ 1
recovered key material: 51
Running "Incremental correlation" on trace range 600001:1:650000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 650000 rows, 5 cols (650000 rows consumed)
target: 1, phase: 2, #candidates 256
rank:   1, candidate: 0x00, score: 0.073225 @ 5
rank:   2, candidate: 0x4f, score: 0.072794 @ 1
rank:   3, candidate: 0x51, score: 0.072276 @ 1
rank:   4, candidate: 0x80, score: 0.069683 @ 5
rank:   5, correct  : 0xcf, score: 0.069359 @ 1
recovered key material: 00
Running "Incremental correlation" on trace range 650001:1:700000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 700000 rows, 5 cols (700000 rows consumed)
target: 1, phase: 2, #candidates 256
rank:   1, candidate: 0x00, score: 0.073022 @ 5
rank:   2, candidate: 0x4f, score: 0.072831 @ 1
rank:   3, candidate: 0x51, score: 0.071040 @ 1
rank:   4, correct  : 0xcf, score: 0.069711 @ 1
rank:   5, candidate: 0x80, score: 0.069446 @ 5
recovered key material: 00
Running "Incremental correlation" on trace range 700001:1:750000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 750000 rows, 5 cols (750000 rows consumed)
target: 1, phase: 2, #candidates 256
rank:   1, candidate: 0x4f, score: 0.072936 @ 1
rank:   2, candidate: 0x51, score: 0.071722 @ 1
rank:   3, candidate: 0x00, score: 0.070965 @ 5
rank:   4, correct  : 0xcf, score: 0.069760 @ 1
rank:   5, candidate: 0xd1, score: 0.068567 @ 1
recovered key material: 4f
Running "Incremental correlation" on trace range 750001:1:800000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 800000 rows, 5 cols (800000 rows consumed)
target: 1, phase: 2, #candidates 256
rank:   1, candidate: 0x4f, score: 0.072743 @ 1
rank:   2, candidate: 0x00, score: 0.072219 @ 5
rank:   3, candidate: 0x51, score: 0.071906 @ 1
rank:   4, correct  : 0xcf, score: 0.069697 @ 1
rank:   5, candidate: 0x80, score: 0.068917 @ 5
recovered key material: 4f
Running "Incremental correlation" on trace range 800001:1:850000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 850000 rows, 5 cols (850000 rows consumed)
target: 1, phase: 2, #candidates 256
rank:   1, candidate: 0x4f, score: 0.073915 @ 1
rank:   2, candidate: 0x00, score: 0.072549 @ 5
rank:   3, candidate: 0x51, score: 0.072081 @ 1
rank:   4, correct  : 0xcf, score: 0.070921 @ 1
rank:   5, candidate: 0x80, score: 0.069351 @ 5
recovered key material: 4f
Running "Incremental correlation" on trace range 850001:1:900000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 900000 rows, 5 cols (900000 rows consumed)
target: 1, phase: 2, #candidates 256
rank:   1, candidate: 0x4f, score: 0.073464 @ 1
rank:   2, candidate: 0x00, score: 0.073192 @ 5
rank:   3, correct  : 0xcf, score: 0.070815 @ 1
rank:   4, candidate: 0x80, score: 0.070209 @ 5
rank:   5, candidate: 0x51, score: 0.069903 @ 1
recovered key material: 4f
Running "Incremental correlation" on trace range 900001:1:950000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 950000 rows, 5 cols (950000 rows consumed)
target: 1, phase: 2, #candidates 256
rank:   1, candidate: 0x00, score: 0.074317 @ 5
rank:   2, candidate: 0x4f, score: 0.071628 @ 1
rank:   3, candidate: 0x80, score: 0.071030 @ 5
rank:   4, correct  : 0xcf, score: 0.069094 @ 1
rank:   5, candidate: 0x51, score: 0.068536 @ 1
recovered key material: 00
Running "Incremental correlation" on trace range 950001:1:1000000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 1000000 rows, 5 cols (1000000 rows consumed)
target: 1, phase: 2, #candidates 256
rank:   1, candidate: 0x00, score: 0.073480 @ 5
rank:   2, candidate: 0x80, score: 0.070297 @ 5
rank:   3, candidate: 0x4f, score: 0.069952 @ 1
rank:   4, candidate: 0x51, score: 0.067482 @ 1
rank:   5, correct  : 0xcf, score: 0.067391 @ 1
recovered key material: 00
Running "Incremental correlation" on trace range 1000001:1:1050000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 1050000 rows, 5 cols (1050000 rows consumed)
target: 1, phase: 2, #candidates 256
rank:   1, candidate: 0x00, score: 0.073936 @ 5
rank:   2, candidate: 0x80, score: 0.070740 @ 5
rank:   3, candidate: 0x4f, score: 0.069762 @ 1
rank:   4, candidate: 0x51, score: 0.067736 @ 1
rank:   5, correct  : 0xcf, score: 0.067335 @ 1
recovered key material: 00
Running "Incremental correlation" on trace range 1050001:1:1100000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 1100000 rows, 5 cols (1100000 rows consumed)
target: 1, phase: 2, #candidates 256
rank:   1, candidate: 0x00, score: 0.074141 @ 5
rank:   2, candidate: 0x80, score: 0.070871 @ 5
rank:   3, candidate: 0x4f, score: 0.068916 @ 1
rank:   4, candidate: 0x51, score: 0.066921 @ 1
rank:   5, correct  : 0xcf, score: 0.066479 @ 1
recovered key material: 00
Running "Incremental correlation" on trace range 1100001:1:1150000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 1150000 rows, 5 cols (1150000 rows consumed)
target: 1, phase: 2, #candidates 256
rank:   1, candidate: 0x00, score: 0.073003 @ 5
rank:   2, candidate: 0x80, score: 0.069648 @ 5
rank:   3, candidate: 0x4f, score: 0.068898 @ 1
rank:   4, candidate: 0x51, score: 0.066813 @ 1
rank:   5, correct  : 0xcf, score: 0.066466 @ 1
recovered key material: 00
Running "Incremental correlation" on trace range 1150001:1:1200000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 1200000 rows, 5 cols (1200000 rows consumed)
target: 1, phase: 2, #candidates 256
rank:   1, candidate: 0x00, score: 0.073234 @ 5
rank:   2, candidate: 0x80, score: 0.069776 @ 5
rank:   3, candidate: 0x4f, score: 0.069607 @ 1
rank:   4, correct  : 0xcf, score: 0.067123 @ 1
rank:   5, candidate: 0x51, score: 0.066754 @ 1
recovered key material: 00
Running "Incremental correlation" on trace range 1200001:1:1228800, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 1228800 rows, 5 cols (1228800 rows consumed)
target: 1, phase: 2, #candidates 256
rank:   1, candidate: 0x00, score: 0.073372 @ 5
rank:   2, candidate: 0x80, score: 0.069889 @ 5
rank:   3, candidate: 0x4f, score: 0.069393 @ 1
rank:   4, correct  : 0xcf, score: 0.067036 @ 1
rank:   5, candidate: 0x51, score: 0.066367 @ 1
recovered key material: 00

phase: 3 / 14, #targets 1
phase input: 47cf

Attacking columns 1:5 out of 5 columns (run 1 out of 1)
Running "Incremental correlation" on trace range 1:1:50000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 50000 rows, 5 cols (50000 rows consumed)
target: 1, phase: 3, #candidates 256
rank:   1, candidate: 0xff, score: 0.110020 @ 5
rank:   2, candidate: 0x00, score: 0.109920 @ 5
rank:   3, candidate: 0xde, score: 0.108310 @ 2
rank:   4, candidate: 0xfe, score: 0.108224 @ 3
rank:  37, correct  : 0xa7, score: 0.094088 @ 1
recovered key material: ff
Running "Incremental correlation" on trace range 50001:1:100000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 100000 rows, 5 cols (100000 rows consumed)
target: 1, phase: 3, #candidates 256
rank:   1, candidate: 0xff, score: 0.098938 @ 5
rank:   2, candidate: 0x7f, score: 0.095109 @ 5
rank:   3, candidate: 0x00, score: 0.094067 @ 5
rank:   4, candidate: 0x80, score: 0.090137 @ 5
rank:  11, correct  : 0xa7, score: 0.082606 @ 1
recovered key material: ff
Running "Incremental correlation" on trace range 100001:1:150000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 150000 rows, 5 cols (150000 rows consumed)
target: 1, phase: 3, #candidates 256
rank:   1, candidate: 0x27, score: 0.081368 @ 1
rank:   2, candidate: 0xff, score: 0.080779 @ 5
rank:   3, candidate: 0x7f, score: 0.077429 @ 5
rank:   4, correct  : 0xa7, score: 0.077302 @ 1
rank:   5, candidate: 0x00, score: 0.076259 @ 5
recovered key material: 27
Running "Incremental correlation" on trace range 150001:1:200000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 200000 rows, 5 cols (200000 rows consumed)
target: 1, phase: 3, #candidates 256
rank:   1, candidate: 0x27, score: 0.078020 @ 1
rank:   2, candidate: 0xff, score: 0.075223 @ 5
rank:   3, correct  : 0xa7, score: 0.074205 @ 1
rank:   4, candidate: 0x28, score: 0.073287 @ 1
rank:   5, candidate: 0x7f, score: 0.072438 @ 5
recovered key material: 27
Running "Incremental correlation" on trace range 200001:1:250000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 250000 rows, 5 cols (250000 rows consumed)
target: 1, phase: 3, #candidates 256
rank:   1, candidate: 0xff, score: 0.080373 @ 5
rank:   2, candidate: 0x27, score: 0.077764 @ 1
rank:   3, candidate: 0x7f, score: 0.075116 @ 5
rank:   4, correct  : 0xa7, score: 0.074804 @ 1
rank:   5, candidate: 0x00, score: 0.074261 @ 5
recovered key material: ff
Running "Incremental correlation" on trace range 250001:1:300000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 300000 rows, 5 cols (300000 rows consumed)
target: 1, phase: 3, #candidates 256
rank:   1, candidate: 0xff, score: 0.079045 @ 5
rank:   2, candidate: 0x27, score: 0.076721 @ 1
rank:   3, candidate: 0x00, score: 0.075059 @ 5
rank:   4, correct  : 0xa7, score: 0.074314 @ 1
rank:   5, candidate: 0x7f, score: 0.073272 @ 5
recovered key material: ff
Running "Incremental correlation" on trace range 300001:1:350000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 350000 rows, 5 cols (350000 rows consumed)
target: 1, phase: 3, #candidates 256
rank:   1, candidate: 0xff, score: 0.083011 @ 5
rank:   2, candidate: 0x27, score: 0.076877 @ 1
rank:   3, candidate: 0x7f, score: 0.076834 @ 5
rank:   4, candidate: 0x00, score: 0.075480 @ 5
rank:   5, correct  : 0xa7, score: 0.074479 @ 1
recovered key material: ff
Running "Incremental correlation" on trace range 350001:1:400000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 400000 rows, 5 cols (400000 rows consumed)
target: 1, phase: 3, #candidates 256
rank:   1, candidate: 0xff, score: 0.083412 @ 5
rank:   2, candidate: 0x7f, score: 0.077572 @ 5
rank:   3, candidate: 0x00, score: 0.076120 @ 5
rank:   4, candidate: 0x27, score: 0.074760 @ 1
rank:   6, correct  : 0xa7, score: 0.072529 @ 1
recovered key material: ff
Running "Incremental correlation" on trace range 400001:1:450000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 450000 rows, 5 cols (450000 rows consumed)
target: 1, phase: 3, #candidates 256
rank:   1, candidate: 0xff, score: 0.082120 @ 5
rank:   2, candidate: 0x7f, score: 0.075975 @ 5
rank:   3, candidate: 0x00, score: 0.075115 @ 5
rank:   4, candidate: 0x27, score: 0.073281 @ 1
rank:   6, correct  : 0xa7, score: 0.071314 @ 1
recovered key material: ff
Running "Incremental correlation" on trace range 450001:1:500000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 500000 rows, 5 cols (500000 rows consumed)
target: 1, phase: 3, #candidates 256
rank:   1, candidate: 0xff, score: 0.081480 @ 5
rank:   2, candidate: 0x7f, score: 0.075310 @ 5
rank:   3, candidate: 0x27, score: 0.072998 @ 1
rank:   4, candidate: 0x00, score: 0.072661 @ 5
rank:   6, correct  : 0xa7, score: 0.071046 @ 1
recovered key material: ff
Running "Incremental correlation" on trace range 500001:1:550000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 550000 rows, 5 cols (550000 rows consumed)
target: 1, phase: 3, #candidates 256
rank:   1, candidate: 0xff, score: 0.078104 @ 5
rank:   2, candidate: 0x27, score: 0.072856 @ 1
rank:   3, candidate: 0x7f, score: 0.072611 @ 3
rank:   4, correct  : 0xa7, score: 0.071037 @ 1
rank:   5, candidate: 0xdf, score: 0.069196 @ 5
recovered key material: ff
Running "Incremental correlation" on trace range 550001:1:600000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 600000 rows, 5 cols (600000 rows consumed)
target: 1, phase: 3, #candidates 256
rank:   1, candidate: 0xff, score: 0.078861 @ 5
rank:   2, candidate: 0x27, score: 0.074303 @ 1
rank:   3, candidate: 0x7f, score: 0.073432 @ 5
rank:   4, correct  : 0xa7, score: 0.072846 @ 1
rank:   5, candidate: 0xdf, score: 0.070092 @ 5
recovered key material: ff
Running "Incremental correlation" on trace range 600001:1:650000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 650000 rows, 5 cols (650000 rows consumed)
target: 1, phase: 3, #candidates 256
rank:   1, candidate: 0xff, score: 0.078472 @ 5
rank:   2, candidate: 0x27, score: 0.074323 @ 1
rank:   3, candidate: 0x7f, score: 0.073274 @ 3
rank:   4, correct  : 0xa7, score: 0.073015 @ 1
rank:   5, candidate: 0xdf, score: 0.071752 @ 5
recovered key material: ff
Running "Incremental correlation" on trace range 650001:1:700000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 700000 rows, 5 cols (700000 rows consumed)
target: 1, phase: 3, #candidates 256
rank:   1, candidate: 0xff, score: 0.079695 @ 5
rank:   2, candidate: 0x7f, score: 0.074588 @ 3
rank:   3, candidate: 0x27, score: 0.073811 @ 1
rank:   4, candidate: 0xdf, score: 0.073075 @ 5
rank:   5, correct  : 0xa7, score: 0.072537 @ 1
recovered key material: ff
Running "Incremental correlation" on trace range 700001:1:750000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 750000 rows, 5 cols (750000 rows consumed)
target: 1, phase: 3, #candidates 256
rank:   1, candidate: 0xff, score: 0.077981 @ 5
rank:   2, candidate: 0x27, score: 0.074011 @ 1
rank:   3, candidate: 0xdf, score: 0.073363 @ 5
rank:   4, candidate: 0x7f, score: 0.072773 @ 3
rank:   5, correct  : 0xa7, score: 0.072689 @ 1
recovered key material: ff
Running "Incremental correlation" on trace range 750001:1:800000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 800000 rows, 5 cols (800000 rows consumed)
target: 1, phase: 3, #candidates 256
rank:   1, candidate: 0xff, score: 0.076005 @ 5
rank:   2, candidate: 0x27, score: 0.072749 @ 1
rank:   3, correct  : 0xa7, score: 0.071512 @ 1
rank:   4, candidate: 0xdf, score: 0.071449 @ 5
rank:   5, candidate: 0x7f, score: 0.070823 @ 3
recovered key material: ff
Running "Incremental correlation" on trace range 800001:1:850000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 850000 rows, 5 cols (850000 rows consumed)
target: 1, phase: 3, #candidates 256
rank:   1, candidate: 0xff, score: 0.077585 @ 5
rank:   2, candidate: 0x27, score: 0.073769 @ 1
rank:   3, candidate: 0xdf, score: 0.072690 @ 5
rank:   4, correct  : 0xa7, score: 0.072575 @ 1
rank:   5, candidate: 0x7f, score: 0.072484 @ 3
recovered key material: ff
Running "Incremental correlation" on trace range 850001:1:900000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 900000 rows, 5 cols (900000 rows consumed)
target: 1, phase: 3, #candidates 256
rank:   1, candidate: 0xff, score: 0.079266 @ 5
rank:   2, candidate: 0x7f, score: 0.073778 @ 3
rank:   3, candidate: 0x27, score: 0.073687 @ 1
rank:   4, candidate: 0xdf, score: 0.073292 @ 5
rank:   5, correct  : 0xa7, score: 0.072706 @ 1
recovered key material: ff
Running "Incremental correlation" on trace range 900001:1:950000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 950000 rows, 5 cols (950000 rows consumed)
target: 1, phase: 3, #candidates 256
rank:   1, candidate: 0xff, score: 0.078757 @ 5
rank:   2, candidate: 0x7f, score: 0.073133 @ 3
rank:   3, candidate: 0x27, score: 0.072493 @ 1
rank:   4, candidate: 0xdf, score: 0.072358 @ 5
rank:   5, correct  : 0xa7, score: 0.071452 @ 1
recovered key material: ff
Running "Incremental correlation" on trace range 950001:1:1000000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 1000000 rows, 5 cols (1000000 rows consumed)
target: 1, phase: 3, #candidates 256
rank:   1, candidate: 0xff, score: 0.079720 @ 5
rank:   2, candidate: 0x7f, score: 0.074003 @ 3
rank:   3, candidate: 0x27, score: 0.073525 @ 1
rank:   4, correct  : 0xa7, score: 0.072472 @ 1
rank:   5, candidate: 0xdf, score: 0.071818 @ 5
recovered key material: ff
Running "Incremental correlation" on trace range 1000001:1:1050000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 1050000 rows, 5 cols (1050000 rows consumed)
target: 1, phase: 3, #candidates 256
rank:   1, candidate: 0xff, score: 0.079886 @ 5
rank:   2, candidate: 0x27, score: 0.074662 @ 1
rank:   3, candidate: 0x7f, score: 0.074207 @ 3
rank:   4, correct  : 0xa7, score: 0.073627 @ 1
rank:   5, candidate: 0xdf, score: 0.071406 @ 5
recovered key material: ff
Running "Incremental correlation" on trace range 1050001:1:1100000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 1100000 rows, 5 cols (1100000 rows consumed)
target: 1, phase: 3, #candidates 256
rank:   1, candidate: 0xff, score: 0.080312 @ 5
rank:   2, candidate: 0x7f, score: 0.074668 @ 3
rank:   3, candidate: 0x27, score: 0.074504 @ 1
rank:   4, correct  : 0xa7, score: 0.073419 @ 1
rank:   5, candidate: 0xdf, score: 0.071848 @ 5
recovered key material: ff
Running "Incremental correlation" on trace range 1100001:1:1150000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 1150000 rows, 5 cols (1150000 rows consumed)
target: 1, phase: 3, #candidates 256
rank:   1, candidate: 0xff, score: 0.079704 @ 5
rank:   2, candidate: 0x27, score: 0.076523 @ 1
rank:   3, correct  : 0xa7, score: 0.075244 @ 1
rank:   4, candidate: 0x7f, score: 0.074228 @ 3
rank:   5, candidate: 0xdf, score: 0.072117 @ 5
recovered key material: ff
Running "Incremental correlation" on trace range 1150001:1:1200000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 1200000 rows, 5 cols (1200000 rows consumed)
target: 1, phase: 3, #candidates 256
rank:   1, candidate: 0xff, score: 0.079599 @ 5
rank:   2, candidate: 0x27, score: 0.077212 @ 1
rank:   3, correct  : 0xa7, score: 0.075727 @ 1
rank:   4, candidate: 0x7f, score: 0.073670 @ 3
rank:   5, candidate: 0xdf, score: 0.072258 @ 5
recovered key material: ff
Running "Incremental correlation" on trace range 1200001:1:1228800, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 1228800 rows, 5 cols (1228800 rows consumed)
target: 1, phase: 3, #candidates 256
rank:   1, candidate: 0xff, score: 0.079330 @ 5
rank:   2, candidate: 0x27, score: 0.077450 @ 1
rank:   3, correct  : 0xa7, score: 0.075989 @ 1
rank:   4, candidate: 0x7f, score: 0.073401 @ 3
rank:   5, candidate: 0xdf, score: 0.072375 @ 5
recovered key material: ff

phase: 4 / 14, #targets 1
phase input: 47cfa7

Attacking columns 1:5 out of 5 columns (run 1 out of 1)
Running "Incremental correlation" on trace range 1:1:50000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 50000 rows, 5 cols (50000 rows consumed)
target: 1, phase: 4, #candidates 256
rank:   1, candidate: 0xff, score: 0.100261 @ 5
rank:   2, candidate: 0x00, score: 0.098742 @ 5
rank:   3, candidate: 0x01, score: 0.094166 @ 5
rank:   4, candidate: 0x03, score: 0.092805 @ 5
rank: 121, correct  : 0x30, score: 0.072181 @ 4
recovered key material: ff
Running "Incremental correlation" on trace range 50001:1:100000, 1 data passes, 2 sample passes
Processing traces 50001:100000 ..100%|██████████████████| Time: 0:00:01
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 100000 rows, 5 cols (100000 rows consumed)
target: 1, phase: 4, #candidates 256
rank:   1, candidate: 0x00, score: 0.079893 @ 5
rank:   2, candidate: 0xff, score: 0.077002 @ 5
rank:   3, candidate: 0x01, score: 0.076181 @ 5
rank:   4, candidate: 0x02, score: 0.075668 @ 5
rank:  85, correct  : 0x30, score: 0.058987 @ 4
recovered key material: 00
Running "Incremental correlation" on trace range 100001:1:150000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 150000 rows, 5 cols (150000 rows consumed)
target: 1, phase: 4, #candidates 256
rank:   1, candidate: 0x00, score: 0.078704 @ 5
rank:   2, candidate: 0x02, score: 0.074517 @ 5
rank:   3, candidate: 0x01, score: 0.074176 @ 5
rank:   4, candidate: 0x08, score: 0.071642 @ 3
rank:  72, correct  : 0x30, score: 0.057201 @ 3
recovered key material: 00
Running "Incremental correlation" on trace range 150001:1:200000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 200000 rows, 5 cols (200000 rows consumed)
target: 1, phase: 4, #candidates 256
rank:   1, candidate: 0x00, score: 0.078496 @ 5
rank:   2, candidate: 0x08, score: 0.072376 @ 3
rank:   3, candidate: 0x01, score: 0.072186 @ 5
rank:   4, candidate: 0x10, score: 0.071069 @ 3
rank:  32, correct  : 0x30, score: 0.060212 @ 3
recovered key material: 00
Running "Incremental correlation" on trace range 200001:1:250000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 250000 rows, 5 cols (250000 rows consumed)
target: 1, phase: 4, #candidates 256
rank:   1, candidate: 0x00, score: 0.077627 @ 5
rank:   2, candidate: 0x01, score: 0.071831 @ 5
rank:   3, candidate: 0xf0, score: 0.070058 @ 3
rank:   4, candidate: 0x02, score: 0.068321 @ 5
rank:  37, correct  : 0x30, score: 0.058255 @ 4
recovered key material: 00
Running "Incremental correlation" on trace range 250001:1:300000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 300000 rows, 5 cols (300000 rows consumed)
target: 1, phase: 4, #candidates 256
rank:   1, candidate: 0x00, score: 0.070842 @ 5
rank:   2, candidate: 0x08, score: 0.066584 @ 3
rank:   3, candidate: 0xf8, score: 0.064845 @ 3
rank:   4, candidate: 0x01, score: 0.063938 @ 5
rank:  23, correct  : 0x30, score: 0.056078 @ 4
recovered key material: 00
Running "Incremental correlation" on trace range 300001:1:350000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 350000 rows, 5 cols (350000 rows consumed)
target: 1, phase: 4, #candidates 256
rank:   1, candidate: 0x00, score: 0.070278 @ 5
rank:   2, candidate: 0x01, score: 0.065399 @ 5
rank:   3, candidate: 0x08, score: 0.062826 @ 3
rank:   4, candidate: 0xfc, score: 0.062435 @ 5
rank:  35, correct  : 0x30, score: 0.052637 @ 4
recovered key material: 00
Running "Incremental correlation" on trace range 350001:1:400000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 400000 rows, 5 cols (400000 rows consumed)
target: 1, phase: 4, #candidates 256
rank:   1, candidate: 0x00, score: 0.067278 @ 5
rank:   2, candidate: 0xfc, score: 0.062384 @ 5
rank:   3, candidate: 0x08, score: 0.061577 @ 3
rank:   4, candidate: 0x01, score: 0.061094 @ 5
rank:  31, correct  : 0x30, score: 0.052463 @ 4
recovered key material: 00
Running "Incremental correlation" on trace range 400001:1:450000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 450000 rows, 5 cols (450000 rows consumed)
target: 1, phase: 4, #candidates 256
rank:   1, candidate: 0x00, score: 0.066880 @ 5
rank:   2, candidate: 0xfc, score: 0.062421 @ 5
rank:   3, candidate: 0x01, score: 0.061624 @ 5
rank:   4, candidate: 0x08, score: 0.060334 @ 3
rank:  38, correct  : 0x30, score: 0.050999 @ 4
recovered key material: 00
Running "Incremental correlation" on trace range 450001:1:500000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 500000 rows, 5 cols (500000 rows consumed)
target: 1, phase: 4, #candidates 256
rank:   1, candidate: 0x00, score: 0.064012 @ 5
rank:   2, candidate: 0xfc, score: 0.059878 @ 5
rank:   3, candidate: 0x01, score: 0.058420 @ 5
rank:   4, candidate: 0x08, score: 0.057500 @ 3
rank:  36, correct  : 0x30, score: 0.048701 @ 4
recovered key material: 00
Running "Incremental correlation" on trace range 500001:1:550000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 550000 rows, 5 cols (550000 rows consumed)
target: 1, phase: 4, #candidates 256
rank:   1, candidate: 0x00, score: 0.062458 @ 5
rank:   2, candidate: 0xfc, score: 0.058680 @ 5
rank:   3, candidate: 0x01, score: 0.057134 @ 5
rank:   4, candidate: 0x08, score: 0.055839 @ 3
rank:  44, correct  : 0x30, score: 0.046755 @ 4
recovered key material: 00
Running "Incremental correlation" on trace range 550001:1:600000, 1 data passes, 2 sample passes
Processing traces 550001:600000 ..100%|█████████████████| Time: 0:00:01
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 600000 rows, 5 cols (600000 rows consumed)
target: 1, phase: 4, #candidates 256
rank:   1, candidate: 0x00, score: 0.060360 @ 5
rank:   2, candidate: 0xfc, score: 0.056694 @ 5
rank:   3, candidate: 0x01, score: 0.055237 @ 5
rank:   4, candidate: 0xff, score: 0.055031 @ 5
rank:  39, correct  : 0x30, score: 0.046331 @ 4
recovered key material: 00
Running "Incremental correlation" on trace range 600001:1:650000, 1 data passes, 2 sample passes
Processing traces 600001:650000 ..100%|█████████████████| Time: 0:00:01
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 650000 rows, 5 cols (650000 rows consumed)
target: 1, phase: 4, #candidates 256
rank:   1, candidate: 0x00, score: 0.057895 @ 5
rank:   2, candidate: 0xfc, score: 0.054108 @ 5
rank:   3, candidate: 0xff, score: 0.053949 @ 5
rank:   4, candidate: 0x01, score: 0.053286 @ 5
rank:  37, correct  : 0x30, score: 0.045046 @ 4
recovered key material: 00
Running "Incremental correlation" on trace range 650001:1:700000, 1 data passes, 2 sample passes
Processing traces 650001:700000 ..100%|█████████████████| Time: 0:00:01
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 700000 rows, 5 cols (700000 rows consumed)
target: 1, phase: 4, #candidates 256
rank:   1, candidate: 0x00, score: 0.056289 @ 5
rank:   2, candidate: 0xfc, score: 0.053140 @ 5
rank:   3, candidate: 0xff, score: 0.051976 @ 5
rank:   4, candidate: 0xfe, score: 0.051055 @ 5
rank:  29, correct  : 0x30, score: 0.044803 @ 4
recovered key material: 00
Running "Incremental correlation" on trace range 700001:1:750000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 750000 rows, 5 cols (750000 rows consumed)
target: 1, phase: 4, #candidates 256
rank:   1, candidate: 0x00, score: 0.057568 @ 5
rank:   2, candidate: 0xff, score: 0.052933 @ 5
rank:   3, candidate: 0xfc, score: 0.052894 @ 5
rank:   4, candidate: 0x08, score: 0.052404 @ 3
rank:  28, correct  : 0x30, score: 0.046023 @ 4
recovered key material: 00
Running "Incremental correlation" on trace range 750001:1:800000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 800000 rows, 5 cols (800000 rows consumed)
target: 1, phase: 4, #candidates 256
rank:   1, candidate: 0x00, score: 0.055983 @ 5
rank:   2, candidate: 0x08, score: 0.051987 @ 3
rank:   3, candidate: 0xff, score: 0.051972 @ 5
rank:   4, candidate: 0x01, score: 0.051491 @ 5
rank:  32, correct  : 0x30, score: 0.045268 @ 4
recovered key material: 00
Running "Incremental correlation" on trace range 800001:1:850000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 850000 rows, 5 cols (850000 rows consumed)
target: 1, phase: 4, #candidates 256
rank:   1, candidate: 0x00, score: 0.054529 @ 5
rank:   2, candidate: 0xff, score: 0.051518 @ 5
rank:   3, candidate: 0x01, score: 0.050693 @ 5
rank:   4, candidate: 0xfc, score: 0.050407 @ 5
rank:  30, correct  : 0x30, score: 0.044956 @ 4
recovered key material: 00
Running "Incremental correlation" on trace range 850001:1:900000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 900000 rows, 5 cols (900000 rows consumed)
target: 1, phase: 4, #candidates 256
rank:   1, candidate: 0x00, score: 0.054453 @ 5
rank:   2, candidate: 0xff, score: 0.051994 @ 5
rank:   3, candidate: 0x01, score: 0.051077 @ 5
rank:   4, candidate: 0xb1, score: 0.050985 @ 3
rank:  25, correct  : 0x30, score: 0.045793 @ 4
recovered key material: 00
Running "Incremental correlation" on trace range 900001:1:950000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 950000 rows, 5 cols (950000 rows consumed)
target: 1, phase: 4, #candidates 256
rank:   1, candidate: 0x00, score: 0.055283 @ 5
rank:   2, candidate: 0xff, score: 0.052631 @ 5
rank:   3, candidate: 0xf8, score: 0.051634 @ 3
rank:   4, candidate: 0x08, score: 0.051524 @ 3
rank:  31, correct  : 0x30, score: 0.044840 @ 4
recovered key material: 00
Running "Incremental correlation" on trace range 950001:1:1000000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 1000000 rows, 5 cols (1000000 rows consumed)
target: 1, phase: 4, #candidates 256
rank:   1, candidate: 0x00, score: 0.056131 @ 5
rank:   2, candidate: 0xff, score: 0.053346 @ 5
rank:   3, candidate: 0x01, score: 0.051393 @ 5
rank:   4, candidate: 0xf8, score: 0.051384 @ 3
rank:  28, correct  : 0x30, score: 0.045064 @ 4
recovered key material: 00
Running "Incremental correlation" on trace range 1000001:1:1050000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 1050000 rows, 5 cols (1050000 rows consumed)
target: 1, phase: 4, #candidates 256
rank:   1, candidate: 0x00, score: 0.055268 @ 5
rank:   2, candidate: 0xff, score: 0.052597 @ 5
rank:   3, candidate: 0x01, score: 0.050699 @ 5
rank:   4, candidate: 0x08, score: 0.049998 @ 3
rank:  28, correct  : 0x30, score: 0.044497 @ 4
recovered key material: 00
Running "Incremental correlation" on trace range 1050001:1:1100000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 1100000 rows, 5 cols (1100000 rows consumed)
target: 1, phase: 4, #candidates 256
rank:   1, candidate: 0x00, score: 0.053840 @ 5
rank:   2, candidate: 0xff, score: 0.051513 @ 5
rank:   3, candidate: 0x01, score: 0.049596 @ 5
rank:   4, candidate: 0x08, score: 0.048491 @ 3
rank:  28, correct  : 0x30, score: 0.043348 @ 4
recovered key material: 00
Running "Incremental correlation" on trace range 1100001:1:1150000, 1 data passes, 2 sample passes
Processing traces 1100001:1150000 ..100%|███████████████| Time: 0:00:01
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 1150000 rows, 5 cols (1150000 rows consumed)
target: 1, phase: 4, #candidates 256
rank:   1, candidate: 0x00, score: 0.053375 @ 5
rank:   2, candidate: 0xff, score: 0.050533 @ 5
rank:   3, candidate: 0x08, score: 0.049190 @ 3
rank:   4, candidate: 0x01, score: 0.049115 @ 5
rank:  26, correct  : 0x30, score: 0.043368 @ 4
recovered key material: 00
Running "Incremental correlation" on trace range 1150001:1:1200000, 1 data passes, 2 sample passes
Processing traces 1150001:1200000 ..100%|███████████████| Time: 0:00:01
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 1200000 rows, 5 cols (1200000 rows consumed)
target: 1, phase: 4, #candidates 256
rank:   1, candidate: 0x00, score: 0.053202 @ 5
rank:   2, candidate: 0xff, score: 0.050260 @ 5
rank:   3, candidate: 0x08, score: 0.048812 @ 3
rank:   4, candidate: 0x01, score: 0.048563 @ 5
rank:  24, correct  : 0x30, score: 0.043511 @ 4
recovered key material: 00
Running "Incremental correlation" on trace range 1200001:1:1228800, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 1228800 rows, 5 cols (1228800 rows consumed)
target: 1, phase: 4, #candidates 256
rank:   1, candidate: 0x00, score: 0.053337 @ 5
rank:   2, candidate: 0xff, score: 0.050656 @ 5
rank:   3, candidate: 0x08, score: 0.048751 @ 3
rank:   4, candidate: 0x01, score: 0.048343 @ 5
rank:  22, correct  : 0x30, score: 0.043426 @ 4
recovered key material: 00
 87.662354 seconds (138.15 M allocations: 41.378 GiB, 3.65% gc time)

And this is what the rank evolution looks like. Quite good. Not all the targets go to rank 1, but it's not bad at all given the difficulty of attacking linear operations.


In [11]:
plot(PlotRanksEvolution(),rankdata1,params1,legend=true)


Out[11]:
2.50×10 5 5.00×10 5 7.50×10 5 1.00×10 6 1.25×10 6 0 50 100 150 200 rank evolution #traces rank phase / target / final rank 1 / 1 / 2 2 / 1 / 4 3 / 1 / 3 4 / 1 / 22

DPA 2: attacking T1

Again, we start cheating immediately by plotting the correlation of the measurements with the 32-bit HW of T1 to see where it leaks.


In [12]:
plot(CT[:,2])


Out[12]:
0 1000 2000 3000 4000 0.0000 0.0025 0.0050 0.0075 0.0100 y1

We take the 5 most leaky sample offsets, and only use these points of the measurements in the DPA attack.


In [13]:
leakyT1samples = sortperm(CT[:,2],rev=true)[1:5]

attack = Sha1InputAttack()
analysis = IncrementalCPA()
params2 = DpaAttack(attack,analysis)
params2.knownKey = knownkeyinner
params2.phases = 5:8
params2.updateInterval = interval
params2.analysis.leakages= vcat([HW()],[Bit(x) for x in 0:7])

empty!(meta(trs).passes)
empty!(meta(trs).dataPasses)
addSamplePass(trs, alignpass)
addSamplePass(trs, x -> x[leakyT1samples])

@time rankdata2 = sca(trs, params2, 1,len)
nothing


Jlsca running in Julia version: 1.3.0, 1 processes/1 workers/2 threads per worker

DPA parameters
attack:       Sha1 input
T xor:        false
analysis:     Incremental CPA
leakages:     HW,bit0,bit1,bit2,bit3,bit4,bit5,bit6,bit7
maximization: abs global max
combination:  +
data at:      1
phases:       [5, 6, 7, 8]
known key:    685d79d6007d6cb9437d9393ce6eacdefbf69a0a

phase: 5 / 14, #targets 1
phase input: 47cfa730

Attacking columns 1:5 out of 5 columns (run 1 out of 1)
Running "Incremental correlation" on trace range 1:1:50000, 1 data passes, 2 sample passes
Processing traces 1:50000 ..100%|███████████████████████| Time: 0:00:01
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 50000 rows, 5 cols (50000 rows consumed)
target: 1, phase: 5, #candidates 256
rank:   1, candidate: 0xb4, score: 0.083986 @ 1
rank:   2, candidate: 0x8a, score: 0.083666 @ 2
rank:   3, candidate: 0x8e, score: 0.081869 @ 4
rank:   4, candidate: 0x34, score: 0.081027 @ 1
rank:  35, correct  : 0x7e, score: 0.070051 @ 4
recovered key material: b4
Running "Incremental correlation" on trace range 50001:1:100000, 1 data passes, 2 sample passes
Processing traces 50001:100000 ..100%|██████████████████| Time: 0:00:01
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 100000 rows, 5 cols (100000 rows consumed)
target: 1, phase: 5, #candidates 256
rank:   1, candidate: 0x7f, score: 0.050525 @ 4
rank:   2, candidate: 0x34, score: 0.049945 @ 2
rank:   3, candidate: 0xb4, score: 0.048672 @ 1
rank:   4, candidate: 0x8d, score: 0.048447 @ 2
rank:   8, correct  : 0x7e, score: 0.047324 @ 4
recovered key material: 7f
Running "Incremental correlation" on trace range 100001:1:150000, 1 data passes, 2 sample passes
Processing traces 100001:150000 ..100%|█████████████████| Time: 0:00:01
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 150000 rows, 5 cols (150000 rows consumed)
target: 1, phase: 5, #candidates 256
rank:   1, candidate: 0x4c, score: 0.039390 @ 4
rank:   2, candidate: 0xcc, score: 0.039138 @ 4
rank:   3, candidate: 0xaf, score: 0.038854 @ 1
rank:   4, candidate: 0x0c, score: 0.038750 @ 2
rank:  28, correct  : 0x7e, score: 0.034665 @ 4
recovered key material: 4c
Running "Incremental correlation" on trace range 150001:1:200000, 1 data passes, 2 sample passes
Processing traces 150001:200000 ..100%|█████████████████| Time: 0:00:01
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 200000 rows, 5 cols (200000 rows consumed)
target: 1, phase: 5, #candidates 256
rank:   1, candidate: 0x0c, score: 0.032564 @ 2
rank:   2, candidate: 0x8c, score: 0.031148 @ 2
rank:   3, candidate: 0x2c, score: 0.030827 @ 4
rank:   4, candidate: 0x7f, score: 0.030660 @ 4
rank:  19, correct  : 0x7e, score: 0.028160 @ 4
recovered key material: 0c
Running "Incremental correlation" on trace range 200001:1:250000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 250000 rows, 5 cols (250000 rows consumed)
target: 1, phase: 5, #candidates 256
rank:   1, candidate: 0x7f, score: 0.028486 @ 4
rank:   2, candidate: 0x0c, score: 0.027302 @ 4
rank:   3, candidate: 0xaf, score: 0.027166 @ 1
rank:   4, candidate: 0x2f, score: 0.026641 @ 1
rank:   5, correct  : 0x7e, score: 0.026497 @ 4
recovered key material: 7f
Running "Incremental correlation" on trace range 250001:1:300000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 300000 rows, 5 cols (300000 rows consumed)
target: 1, phase: 5, #candidates 256
rank:   1, candidate: 0xaf, score: 0.027741 @ 1
rank:   2, candidate: 0x7f, score: 0.027496 @ 4
rank:   3, candidate: 0xcc, score: 0.027260 @ 4
rank:   4, candidate: 0x2f, score: 0.026815 @ 1
rank:  18, correct  : 0x7e, score: 0.025348 @ 4
recovered key material: af
Running "Incremental correlation" on trace range 300001:1:350000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 350000 rows, 5 cols (350000 rows consumed)
target: 1, phase: 5, #candidates 256
rank:   1, correct  : 0x7e, score: 0.025823 @ 4
rank:   2, candidate: 0x7f, score: 0.025079 @ 4
rank:   3, candidate: 0xaf, score: 0.024102 @ 1
rank:   4, candidate: 0xfe, score: 0.024023 @ 4
rank:   5, candidate: 0x3e, score: 0.023530 @ 2
recovered key material: 7e
Running "Incremental correlation" on trace range 350001:1:400000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 400000 rows, 5 cols (400000 rows consumed)
target: 1, phase: 5, #candidates 256
rank:   1, candidate: 0xef, score: 0.024461 @ 1
rank:   2, correct  : 0x7e, score: 0.024219 @ 4
rank:   3, candidate: 0xaf, score: 0.024192 @ 1
rank:   4, candidate: 0x2f, score: 0.023079 @ 1
rank:   5, candidate: 0x6f, score: 0.022997 @ 1
recovered key material: ef
Running "Incremental correlation" on trace range 400001:1:450000, 1 data passes, 2 sample passes
Processing traces 400001:450000 ..100%|█████████████████| Time: 0:00:01
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 450000 rows, 5 cols (450000 rows consumed)
target: 1, phase: 5, #candidates 256
rank:   1, correct  : 0x7e, score: 0.023438 @ 4
rank:   2, candidate: 0x9e, score: 0.023098 @ 4
rank:   3, candidate: 0x1e, score: 0.022465 @ 2
rank:   4, candidate: 0xfe, score: 0.022132 @ 2
rank:   5, candidate: 0x8f, score: 0.021315 @ 3
recovered key material: 7e
Running "Incremental correlation" on trace range 450001:1:500000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 500000 rows, 5 cols (500000 rows consumed)
target: 1, phase: 5, #candidates 256
rank:   1, correct  : 0x7e, score: 0.023580 @ 4
rank:   2, candidate: 0x9e, score: 0.022747 @ 4
rank:   3, candidate: 0xfe, score: 0.022530 @ 4
rank:   4, candidate: 0x5e, score: 0.021623 @ 4
rank:   5, candidate: 0x1e, score: 0.021587 @ 2
recovered key material: 7e
Running "Incremental correlation" on trace range 500001:1:550000, 1 data passes, 2 sample passes
Processing traces 500001:550000 ..100%|█████████████████| Time: 0:00:01
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 550000 rows, 5 cols (550000 rows consumed)
target: 1, phase: 5, #candidates 256
rank:   1, correct  : 0x7e, score: 0.022647 @ 4
rank:   2, candidate: 0x9e, score: 0.021898 @ 4
rank:   3, candidate: 0xfe, score: 0.021606 @ 4
rank:   4, candidate: 0x5e, score: 0.021131 @ 4
rank:   5, candidate: 0xbe, score: 0.020941 @ 4
recovered key material: 7e
Running "Incremental correlation" on trace range 550001:1:600000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 600000 rows, 5 cols (600000 rows consumed)
target: 1, phase: 5, #candidates 256
rank:   1, correct  : 0x7e, score: 0.021499 @ 4
rank:   2, candidate: 0x9e, score: 0.021325 @ 4
rank:   3, candidate: 0x5e, score: 0.020999 @ 4
rank:   4, candidate: 0xfe, score: 0.020425 @ 4
rank:   5, candidate: 0x1e, score: 0.020274 @ 2
recovered key material: 7e
Running "Incremental correlation" on trace range 600001:1:650000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 650000 rows, 5 cols (650000 rows consumed)
target: 1, phase: 5, #candidates 256
rank:   1, correct  : 0x7e, score: 0.021524 @ 4
rank:   2, candidate: 0x9e, score: 0.021075 @ 4
rank:   3, candidate: 0xfe, score: 0.020430 @ 4
rank:   4, candidate: 0x5e, score: 0.019999 @ 4
rank:   5, candidate: 0x8e, score: 0.019827 @ 4
recovered key material: 7e
Running "Incremental correlation" on trace range 650001:1:700000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 700000 rows, 5 cols (700000 rows consumed)
target: 1, phase: 5, #candidates 256
rank:   1, correct  : 0x7e, score: 0.021261 @ 4
rank:   2, candidate: 0x9e, score: 0.021046 @ 4
rank:   3, candidate: 0xfe, score: 0.020153 @ 4
rank:   4, candidate: 0x8e, score: 0.020145 @ 4
rank:   5, candidate: 0x5e, score: 0.019919 @ 4
recovered key material: 7e
Running "Incremental correlation" on trace range 700001:1:750000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 750000 rows, 5 cols (750000 rows consumed)
target: 1, phase: 5, #candidates 256
rank:   1, candidate: 0x9e, score: 0.019861 @ 4
rank:   2, correct  : 0x7e, score: 0.019295 @ 4
rank:   3, candidate: 0x5e, score: 0.018749 @ 4
rank:   4, candidate: 0x1e, score: 0.018588 @ 2
rank:   5, candidate: 0xfe, score: 0.018509 @ 2
recovered key material: 9e
Running "Incremental correlation" on trace range 750001:1:800000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 800000 rows, 5 cols (800000 rows consumed)
target: 1, phase: 5, #candidates 256
rank:   1, candidate: 0x9e, score: 0.019967 @ 4
rank:   2, correct  : 0x7e, score: 0.019699 @ 4
rank:   3, candidate: 0x5e, score: 0.019412 @ 4
rank:   4, candidate: 0xfe, score: 0.019321 @ 2
rank:   5, candidate: 0x1e, score: 0.018869 @ 2
recovered key material: 9e
Running "Incremental correlation" on trace range 800001:1:850000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 850000 rows, 5 cols (850000 rows consumed)
target: 1, phase: 5, #candidates 256
rank:   1, correct  : 0x7e, score: 0.020207 @ 4
rank:   2, candidate: 0xfe, score: 0.019700 @ 2
rank:   3, candidate: 0x9e, score: 0.018834 @ 4
rank:   4, candidate: 0x5e, score: 0.018607 @ 4
rank:   5, candidate: 0x3e, score: 0.018386 @ 4
recovered key material: 7e
Running "Incremental correlation" on trace range 850001:1:900000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 900000 rows, 5 cols (900000 rows consumed)
target: 1, phase: 5, #candidates 256
rank:   1, correct  : 0x7e, score: 0.018900 @ 4
rank:   2, candidate: 0xfe, score: 0.018718 @ 2
rank:   3, candidate: 0xee, score: 0.017281 @ 2
rank:   4, candidate: 0x3e, score: 0.017148 @ 4
rank:   5, candidate: 0x9e, score: 0.017125 @ 4
recovered key material: 7e
Running "Incremental correlation" on trace range 900001:1:950000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 950000 rows, 5 cols (950000 rows consumed)
target: 1, phase: 5, #candidates 256
rank:   1, correct  : 0x7e, score: 0.017815 @ 4
rank:   2, candidate: 0xfe, score: 0.017809 @ 2
rank:   3, candidate: 0x9e, score: 0.016045 @ 4
rank:   4, candidate: 0x1e, score: 0.015807 @ 2
rank:   5, candidate: 0x7d, score: 0.015679 @ 4
recovered key material: 7e
Running "Incremental correlation" on trace range 950001:1:1000000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 1000000 rows, 5 cols (1000000 rows consumed)
target: 1, phase: 5, #candidates 256
rank:   1, correct  : 0x7e, score: 0.016907 @ 4
rank:   2, candidate: 0xfe, score: 0.016737 @ 2
rank:   3, candidate: 0x9e, score: 0.015565 @ 4
rank:   4, candidate: 0x1e, score: 0.015195 @ 2
rank:   5, candidate: 0x7f, score: 0.014774 @ 4
recovered key material: 7e
Running "Incremental correlation" on trace range 1000001:1:1050000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 1050000 rows, 5 cols (1050000 rows consumed)
target: 1, phase: 5, #candidates 256
rank:   1, candidate: 0xfe, score: 0.017062 @ 2
rank:   2, correct  : 0x7e, score: 0.017041 @ 4
rank:   3, candidate: 0x9e, score: 0.015440 @ 4
rank:   4, candidate: 0x7d, score: 0.015392 @ 4
rank:   5, candidate: 0x1e, score: 0.015343 @ 2
recovered key material: fe
Running "Incremental correlation" on trace range 1050001:1:1100000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 1100000 rows, 5 cols (1100000 rows consumed)
target: 1, phase: 5, #candidates 256
rank:   1, correct  : 0x7e, score: 0.016008 @ 4
rank:   2, candidate: 0xfe, score: 0.015941 @ 2
rank:   3, candidate: 0x9e, score: 0.014707 @ 4
rank:   4, candidate: 0x7c, score: 0.014563 @ 4
rank:   5, candidate: 0x1e, score: 0.014554 @ 2
recovered key material: 7e
Running "Incremental correlation" on trace range 1100001:1:1150000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 1150000 rows, 5 cols (1150000 rows consumed)
target: 1, phase: 5, #candidates 256
rank:   1, correct  : 0x7e, score: 0.016579 @ 4
rank:   2, candidate: 0xfe, score: 0.016573 @ 2
rank:   3, candidate: 0x9e, score: 0.015386 @ 4
rank:   4, candidate: 0x7f, score: 0.015255 @ 4
rank:   5, candidate: 0x1e, score: 0.015230 @ 2
recovered key material: 7e
Running "Incremental correlation" on trace range 1150001:1:1200000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 1200000 rows, 5 cols (1200000 rows consumed)
target: 1, phase: 5, #candidates 256
rank:   1, candidate: 0xfe, score: 0.016676 @ 2
rank:   2, correct  : 0x7e, score: 0.016583 @ 4
rank:   3, candidate: 0x7f, score: 0.015678 @ 4
rank:   4, candidate: 0x9e, score: 0.015060 @ 4
rank:   5, candidate: 0x1e, score: 0.014783 @ 2
recovered key material: fe
Running "Incremental correlation" on trace range 1200001:1:1228800, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 1228800 rows, 5 cols (1228800 rows consumed)
target: 1, phase: 5, #candidates 256
rank:   1, candidate: 0xfe, score: 0.016203 @ 2
rank:   2, correct  : 0x7e, score: 0.016146 @ 4
rank:   3, candidate: 0x7f, score: 0.015220 @ 4
rank:   4, candidate: 0x9e, score: 0.014478 @ 4
rank:   5, candidate: 0x3e, score: 0.014332 @ 2
recovered key material: fe

phase: 6 / 14, #targets 1
phase input: 47cfa7307e

Attacking columns 1:5 out of 5 columns (run 1 out of 1)
Running "Incremental correlation" on trace range 1:1:50000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 50000 rows, 5 cols (50000 rows consumed)
target: 1, phase: 6, #candidates 256
rank:   1, candidate: 0xb6, score: 0.071201 @ 1
rank:   2, candidate: 0x46, score: 0.067821 @ 3
rank:   3, candidate: 0xc6, score: 0.067721 @ 2
rank:   4, candidate: 0x96, score: 0.066624 @ 3
rank: 230, correct  : 0x01, score: 0.044416 @ 1
recovered key material: b6
Running "Incremental correlation" on trace range 50001:1:100000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 100000 rows, 5 cols (100000 rows consumed)
target: 1, phase: 6, #candidates 256
rank:   1, candidate: 0xb6, score: 0.055904 @ 1
rank:   2, candidate: 0x76, score: 0.055221 @ 1
rank:   3, candidate: 0x96, score: 0.054054 @ 2
rank:   4, candidate: 0x66, score: 0.053803 @ 2
rank:  86, correct  : 0x01, score: 0.045635 @ 1
recovered key material: b6
Running "Incremental correlation" on trace range 100001:1:150000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 150000 rows, 5 cols (150000 rows consumed)
target: 1, phase: 6, #candidates 256
rank:   1, candidate: 0x45, score: 0.051806 @ 3
rank:   2, candidate: 0x85, score: 0.050631 @ 5
rank:   3, candidate: 0x05, score: 0.050272 @ 5
rank:   4, candidate: 0x83, score: 0.049719 @ 4
rank:  34, correct  : 0x01, score: 0.043348 @ 1
recovered key material: 45
Running "Incremental correlation" on trace range 150001:1:200000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 200000 rows, 5 cols (200000 rows consumed)
target: 1, phase: 6, #candidates 256
rank:   1, candidate: 0x45, score: 0.044967 @ 5
rank:   2, candidate: 0x83, score: 0.044239 @ 4
rank:   3, candidate: 0x05, score: 0.044082 @ 5
rank:   4, candidate: 0x85, score: 0.043630 @ 5
rank:  12, correct  : 0x01, score: 0.039751 @ 5
recovered key material: 45
Running "Incremental correlation" on trace range 200001:1:250000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 250000 rows, 5 cols (250000 rows consumed)
target: 1, phase: 6, #candidates 256
rank:   1, candidate: 0x45, score: 0.044258 @ 3
rank:   2, candidate: 0x05, score: 0.043044 @ 5
rank:   3, candidate: 0x85, score: 0.042549 @ 5
rank:   4, candidate: 0xc5, score: 0.042498 @ 3
rank:  12, correct  : 0x01, score: 0.038788 @ 2
recovered key material: 45
Running "Incremental correlation" on trace range 250001:1:300000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 300000 rows, 5 cols (300000 rows consumed)
target: 1, phase: 6, #candidates 256
rank:   1, candidate: 0x03, score: 0.038602 @ 4
rank:   2, candidate: 0x83, score: 0.037578 @ 4
rank:   3, correct  : 0x01, score: 0.036133 @ 4
rank:   4, candidate: 0x56, score: 0.035567 @ 2
rank:   5, candidate: 0x05, score: 0.035450 @ 5
recovered key material: 03
Running "Incremental correlation" on trace range 300001:1:350000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 350000 rows, 5 cols (350000 rows consumed)
target: 1, phase: 6, #candidates 256
rank:   1, candidate: 0x03, score: 0.034606 @ 4
rank:   2, candidate: 0x83, score: 0.033587 @ 4
rank:   3, correct  : 0x01, score: 0.033465 @ 2
rank:   4, candidate: 0x05, score: 0.033297 @ 4
rank:   5, candidate: 0x56, score: 0.032573 @ 2
recovered key material: 03
Running "Incremental correlation" on trace range 350001:1:400000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 400000 rows, 5 cols (400000 rows consumed)
target: 1, phase: 6, #candidates 256
rank:   1, candidate: 0x03, score: 0.032444 @ 4
rank:   2, candidate: 0x56, score: 0.032224 @ 2
rank:   3, candidate: 0x83, score: 0.031682 @ 4
rank:   4, correct  : 0x01, score: 0.031362 @ 2
rank:   5, candidate: 0x4e, score: 0.031315 @ 4
recovered key material: 03
Running "Incremental correlation" on trace range 400001:1:450000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 450000 rows, 5 cols (450000 rows consumed)
target: 1, phase: 6, #candidates 256
rank:   1, candidate: 0x03, score: 0.030073 @ 4
rank:   2, candidate: 0x56, score: 0.029104 @ 2
rank:   3, candidate: 0x4e, score: 0.029053 @ 4
rank:   4, candidate: 0x83, score: 0.029022 @ 4
rank:   7, correct  : 0x01, score: 0.028355 @ 2
recovered key material: 03
Running "Incremental correlation" on trace range 450001:1:500000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 500000 rows, 5 cols (500000 rows consumed)
target: 1, phase: 6, #candidates 256
rank:   1, candidate: 0x03, score: 0.031998 @ 4
rank:   2, candidate: 0x83, score: 0.031736 @ 4
rank:   3, candidate: 0xc3, score: 0.029398 @ 2
rank:   4, candidate: 0x81, score: 0.029320 @ 3
rank:   5, correct  : 0x01, score: 0.029140 @ 5
recovered key material: 03
Running "Incremental correlation" on trace range 500001:1:550000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 550000 rows, 5 cols (550000 rows consumed)
target: 1, phase: 6, #candidates 256
rank:   1, candidate: 0x03, score: 0.029298 @ 4
rank:   2, candidate: 0x81, score: 0.028920 @ 3
rank:   3, correct  : 0x01, score: 0.028789 @ 5
rank:   4, candidate: 0x83, score: 0.028674 @ 4
rank:   5, candidate: 0x41, score: 0.027218 @ 3
recovered key material: 03
Running "Incremental correlation" on trace range 550001:1:600000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 600000 rows, 5 cols (600000 rows consumed)
target: 1, phase: 6, #candidates 256
rank:   1, candidate: 0x81, score: 0.026802 @ 3
rank:   2, correct  : 0x01, score: 0.026311 @ 5
rank:   3, candidate: 0x03, score: 0.026126 @ 4
rank:   4, candidate: 0x83, score: 0.025549 @ 4
rank:   5, candidate: 0x04, score: 0.025472 @ 4
recovered key material: 81
Running "Incremental correlation" on trace range 600001:1:650000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 650000 rows, 5 cols (650000 rows consumed)
target: 1, phase: 6, #candidates 256
rank:   1, candidate: 0x03, score: 0.027403 @ 4
rank:   2, candidate: 0x81, score: 0.027138 @ 3
rank:   3, candidate: 0x83, score: 0.026977 @ 4
rank:   4, correct  : 0x01, score: 0.026382 @ 5
rank:   5, candidate: 0x04, score: 0.026200 @ 4
recovered key material: 03
Running "Incremental correlation" on trace range 650001:1:700000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 700000 rows, 5 cols (700000 rows consumed)
target: 1, phase: 6, #candidates 256
rank:   1, candidate: 0x81, score: 0.027025 @ 3
rank:   2, candidate: 0x03, score: 0.026746 @ 4
rank:   3, candidate: 0x83, score: 0.026236 @ 4
rank:   4, correct  : 0x01, score: 0.026202 @ 1
rank:   5, candidate: 0x04, score: 0.025482 @ 4
recovered key material: 81
Running "Incremental correlation" on trace range 700001:1:750000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 750000 rows, 5 cols (750000 rows consumed)
target: 1, phase: 6, #candidates 256
rank:   1, candidate: 0x03, score: 0.025842 @ 4
rank:   2, candidate: 0x81, score: 0.025800 @ 3
rank:   3, candidate: 0x83, score: 0.025640 @ 4
rank:   4, correct  : 0x01, score: 0.025059 @ 5
rank:   5, candidate: 0x04, score: 0.024359 @ 4
recovered key material: 03
Running "Incremental correlation" on trace range 750001:1:800000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 800000 rows, 5 cols (800000 rows consumed)
target: 1, phase: 6, #candidates 256
rank:   1, candidate: 0x81, score: 0.025070 @ 3
rank:   2, correct  : 0x01, score: 0.024345 @ 1
rank:   3, candidate: 0x03, score: 0.023801 @ 4
rank:   4, candidate: 0x83, score: 0.023651 @ 4
rank:   5, candidate: 0x41, score: 0.022991 @ 3
recovered key material: 81
Running "Incremental correlation" on trace range 800001:1:850000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 850000 rows, 5 cols (850000 rows consumed)
target: 1, phase: 6, #candidates 256
rank:   1, candidate: 0x03, score: 0.025875 @ 4
rank:   2, candidate: 0x83, score: 0.025782 @ 4
rank:   3, candidate: 0x81, score: 0.025357 @ 3
rank:   4, correct  : 0x01, score: 0.024624 @ 5
rank:   5, candidate: 0xc3, score: 0.023629 @ 4
recovered key material: 03
Running "Incremental correlation" on trace range 850001:1:900000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 900000 rows, 5 cols (900000 rows consumed)
target: 1, phase: 6, #candidates 256
rank:   1, candidate: 0x03, score: 0.026048 @ 4
rank:   2, candidate: 0x81, score: 0.026006 @ 3
rank:   3, candidate: 0x83, score: 0.025942 @ 4
rank:   4, correct  : 0x01, score: 0.025228 @ 1
rank:   5, candidate: 0xc3, score: 0.024175 @ 4
recovered key material: 03
Running "Incremental correlation" on trace range 900001:1:950000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 950000 rows, 5 cols (950000 rows consumed)
target: 1, phase: 6, #candidates 256
rank:   1, candidate: 0x03, score: 0.025289 @ 4
rank:   2, candidate: 0x83, score: 0.025028 @ 4
rank:   3, candidate: 0x81, score: 0.024981 @ 3
rank:   4, correct  : 0x01, score: 0.024188 @ 5
rank:   5, candidate: 0x04, score: 0.023249 @ 4
recovered key material: 03
Running "Incremental correlation" on trace range 950001:1:1000000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 1000000 rows, 5 cols (1000000 rows consumed)
target: 1, phase: 6, #candidates 256
rank:   1, candidate: 0x03, score: 0.024411 @ 4
rank:   2, candidate: 0x83, score: 0.024307 @ 4
rank:   3, candidate: 0x04, score: 0.024036 @ 4
rank:   4, candidate: 0x84, score: 0.023787 @ 4
rank:   7, correct  : 0x01, score: 0.022290 @ 5
recovered key material: 03
Running "Incremental correlation" on trace range 1000001:1:1050000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 1050000 rows, 5 cols (1050000 rows consumed)
target: 1, phase: 6, #candidates 256
rank:   1, candidate: 0x03, score: 0.024180 @ 4
rank:   2, candidate: 0x81, score: 0.024109 @ 3
rank:   3, candidate: 0x83, score: 0.024040 @ 4
rank:   4, candidate: 0x04, score: 0.023145 @ 4
rank:   5, correct  : 0x01, score: 0.022950 @ 1
recovered key material: 03
Running "Incremental correlation" on trace range 1050001:1:1100000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 1100000 rows, 5 cols (1100000 rows consumed)
target: 1, phase: 6, #candidates 256
rank:   1, candidate: 0x81, score: 0.025138 @ 3
rank:   2, candidate: 0x03, score: 0.024833 @ 4
rank:   3, candidate: 0x83, score: 0.024475 @ 4
rank:   4, correct  : 0x01, score: 0.023928 @ 5
rank:   5, candidate: 0x41, score: 0.023688 @ 3
recovered key material: 81
Running "Incremental correlation" on trace range 1100001:1:1150000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 1150000 rows, 5 cols (1150000 rows consumed)
target: 1, phase: 6, #candidates 256
rank:   1, candidate: 0x81, score: 0.024462 @ 3
rank:   2, candidate: 0x03, score: 0.024206 @ 4
rank:   3, candidate: 0x83, score: 0.023993 @ 4
rank:   4, correct  : 0x01, score: 0.023333 @ 1
rank:   5, candidate: 0x41, score: 0.023256 @ 3
recovered key material: 81
Running "Incremental correlation" on trace range 1150001:1:1200000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 1200000 rows, 5 cols (1200000 rows consumed)
target: 1, phase: 6, #candidates 256
rank:   1, candidate: 0x81, score: 0.024116 @ 3
rank:   2, candidate: 0x03, score: 0.023365 @ 4
rank:   3, candidate: 0x83, score: 0.023059 @ 4
rank:   4, candidate: 0x41, score: 0.023021 @ 3
rank:   5, correct  : 0x01, score: 0.022970 @ 1
recovered key material: 81
Running "Incremental correlation" on trace range 1200001:1:1228800, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 1228800 rows, 5 cols (1228800 rows consumed)
target: 1, phase: 6, #candidates 256
rank:   1, candidate: 0x81, score: 0.024209 @ 3
rank:   2, candidate: 0x03, score: 0.023300 @ 4
rank:   3, candidate: 0x41, score: 0.023162 @ 3
rank:   4, correct  : 0x01, score: 0.023070 @ 1
rank:   5, candidate: 0x83, score: 0.023007 @ 4
recovered key material: 81

phase: 7 / 14, #targets 1
phase input: 47cfa7307e01

Attacking columns 1:5 out of 5 columns (run 1 out of 1)
Running "Incremental correlation" on trace range 1:1:50000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 50000 rows, 5 cols (50000 rows consumed)
target: 1, phase: 7, #candidates 256
rank:   1, correct  : 0x2f, score: 0.084547 @ 3
rank:   2, candidate: 0x33, score: 0.080934 @ 1
rank:   3, candidate: 0xaf, score: 0.080192 @ 4
rank:   4, candidate: 0xed, score: 0.077571 @ 5
rank:   5, candidate: 0x6d, score: 0.077256 @ 5
recovered key material: 2f
Running "Incremental correlation" on trace range 50001:1:100000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 100000 rows, 5 cols (100000 rows consumed)
target: 1, phase: 7, #candidates 256
rank:   1, correct  : 0x2f, score: 0.076894 @ 4
rank:   2, candidate: 0xaf, score: 0.074782 @ 4
rank:   3, candidate: 0xef, score: 0.073319 @ 4
rank:   4, candidate: 0x6f, score: 0.071223 @ 4
rank:   5, candidate: 0x0f, score: 0.069684 @ 4
recovered key material: 2f
Running "Incremental correlation" on trace range 100001:1:150000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 150000 rows, 5 cols (150000 rows consumed)
target: 1, phase: 7, #candidates 256
rank:   1, correct  : 0x2f, score: 0.057915 @ 4
rank:   2, candidate: 0xaf, score: 0.057796 @ 4
rank:   3, candidate: 0x6f, score: 0.055771 @ 4
rank:   4, candidate: 0x33, score: 0.055206 @ 1
rank:   5, candidate: 0xef, score: 0.054893 @ 4
recovered key material: 2f
Running "Incremental correlation" on trace range 150001:1:200000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 200000 rows, 5 cols (200000 rows consumed)
target: 1, phase: 7, #candidates 256
rank:   1, correct  : 0x2f, score: 0.049563 @ 4
rank:   2, candidate: 0xec, score: 0.049501 @ 2
rank:   3, candidate: 0xaf, score: 0.049345 @ 4
rank:   4, candidate: 0x4f, score: 0.048099 @ 4
rank:   5, candidate: 0x6c, score: 0.047812 @ 4
recovered key material: 2f
Running "Incremental correlation" on trace range 200001:1:250000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 250000 rows, 5 cols (250000 rows consumed)
target: 1, phase: 7, #candidates 256
rank:   1, candidate: 0x33, score: 0.046833 @ 5
rank:   2, candidate: 0xb3, score: 0.046089 @ 5
rank:   3, candidate: 0xaf, score: 0.044760 @ 4
rank:   4, correct  : 0x2f, score: 0.044698 @ 3
rank:   5, candidate: 0x43, score: 0.043401 @ 5
recovered key material: 33
Running "Incremental correlation" on trace range 250001:1:300000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 300000 rows, 5 cols (300000 rows consumed)
target: 1, phase: 7, #candidates 256
rank:   1, candidate: 0xb3, score: 0.048264 @ 5
rank:   2, candidate: 0xaf, score: 0.048200 @ 4
rank:   3, candidate: 0x33, score: 0.047217 @ 5
rank:   4, correct  : 0x2f, score: 0.047039 @ 1
rank:   5, candidate: 0x73, score: 0.043925 @ 5
recovered key material: b3
Running "Incremental correlation" on trace range 300001:1:350000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 350000 rows, 5 cols (350000 rows consumed)
target: 1, phase: 7, #candidates 256
rank:   1, candidate: 0xaf, score: 0.045581 @ 4
rank:   2, correct  : 0x2f, score: 0.044881 @ 4
rank:   3, candidate: 0xb3, score: 0.044231 @ 5
rank:   4, candidate: 0x33, score: 0.043498 @ 5
rank:   5, candidate: 0x73, score: 0.040646 @ 5
recovered key material: af
Running "Incremental correlation" on trace range 350001:1:400000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 400000 rows, 5 cols (400000 rows consumed)
target: 1, phase: 7, #candidates 256
rank:   1, candidate: 0xaf, score: 0.042092 @ 4
rank:   2, correct  : 0x2f, score: 0.041758 @ 4
rank:   3, candidate: 0xef, score: 0.038304 @ 1
rank:   4, candidate: 0x6f, score: 0.038210 @ 1
rank:   5, candidate: 0xb3, score: 0.037925 @ 5
recovered key material: af
Running "Incremental correlation" on trace range 400001:1:450000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 450000 rows, 5 cols (450000 rows consumed)
target: 1, phase: 7, #candidates 256
rank:   1, candidate: 0xaf, score: 0.037724 @ 4
rank:   2, correct  : 0x2f, score: 0.037720 @ 1
rank:   3, candidate: 0xb3, score: 0.034932 @ 5
rank:   4, candidate: 0x6f, score: 0.034529 @ 1
rank:   5, candidate: 0xef, score: 0.034470 @ 1
recovered key material: af
Running "Incremental correlation" on trace range 450001:1:500000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 500000 rows, 5 cols (500000 rows consumed)
target: 1, phase: 7, #candidates 256
rank:   1, correct  : 0x2f, score: 0.038329 @ 3
rank:   2, candidate: 0xaf, score: 0.038079 @ 1
rank:   3, candidate: 0x6f, score: 0.035652 @ 3
rank:   4, candidate: 0xef, score: 0.035173 @ 1
rank:   5, candidate: 0xb3, score: 0.034372 @ 5
recovered key material: 2f
Running "Incremental correlation" on trace range 500001:1:550000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 550000 rows, 5 cols (550000 rows consumed)
target: 1, phase: 7, #candidates 256
rank:   1, candidate: 0xaf, score: 0.035682 @ 1
rank:   2, correct  : 0x2f, score: 0.035632 @ 3
rank:   3, candidate: 0x6f, score: 0.033302 @ 2
rank:   4, candidate: 0x27, score: 0.032902 @ 1
rank:   5, candidate: 0xa7, score: 0.032877 @ 1
recovered key material: af
Running "Incremental correlation" on trace range 550001:1:600000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 600000 rows, 5 cols (600000 rows consumed)
target: 1, phase: 7, #candidates 256
rank:   1, candidate: 0xaf, score: 0.036874 @ 1
rank:   2, correct  : 0x2f, score: 0.036599 @ 1
rank:   3, candidate: 0x6f, score: 0.034217 @ 2
rank:   4, candidate: 0xef, score: 0.033581 @ 3
rank:   5, candidate: 0xa7, score: 0.033362 @ 1
recovered key material: af
Running "Incremental correlation" on trace range 600001:1:650000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 650000 rows, 5 cols (650000 rows consumed)
target: 1, phase: 7, #candidates 256
rank:   1, candidate: 0xaf, score: 0.036277 @ 1
rank:   2, correct  : 0x2f, score: 0.036062 @ 3
rank:   3, candidate: 0xb3, score: 0.033862 @ 5
rank:   4, candidate: 0x6f, score: 0.033737 @ 2
rank:   5, candidate: 0x33, score: 0.033250 @ 5
recovered key material: af
Running "Incremental correlation" on trace range 650001:1:700000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 700000 rows, 5 cols (700000 rows consumed)
target: 1, phase: 7, #candidates 256
rank:   1, candidate: 0xaf, score: 0.035508 @ 1
rank:   2, correct  : 0x2f, score: 0.035105 @ 1
rank:   3, candidate: 0xb3, score: 0.033469 @ 5
rank:   4, candidate: 0x6f, score: 0.033071 @ 2
rank:   5, candidate: 0x33, score: 0.032958 @ 5
recovered key material: af
Running "Incremental correlation" on trace range 700001:1:750000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 750000 rows, 5 cols (750000 rows consumed)
target: 1, phase: 7, #candidates 256
rank:   1, candidate: 0xaf, score: 0.035498 @ 1
rank:   2, correct  : 0x2f, score: 0.035050 @ 1
rank:   3, candidate: 0xb3, score: 0.032774 @ 5
rank:   4, candidate: 0x33, score: 0.032137 @ 5
rank:   5, candidate: 0xa7, score: 0.032072 @ 1
recovered key material: af
Running "Incremental correlation" on trace range 750001:1:800000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 800000 rows, 5 cols (800000 rows consumed)
target: 1, phase: 7, #candidates 256
rank:   1, candidate: 0xaf, score: 0.036331 @ 1
rank:   2, correct  : 0x2f, score: 0.035723 @ 1
rank:   3, candidate: 0xb3, score: 0.033483 @ 5
rank:   4, candidate: 0x33, score: 0.032664 @ 5
rank:   5, candidate: 0x6f, score: 0.032637 @ 2
recovered key material: af
Running "Incremental correlation" on trace range 800001:1:850000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 850000 rows, 5 cols (850000 rows consumed)
target: 1, phase: 7, #candidates 256
rank:   1, candidate: 0xaf, score: 0.037465 @ 1
rank:   2, correct  : 0x2f, score: 0.036796 @ 1
rank:   3, candidate: 0x6f, score: 0.034134 @ 2
rank:   4, candidate: 0xef, score: 0.033975 @ 1
rank:   5, candidate: 0xb3, score: 0.033645 @ 5
recovered key material: af
Running "Incremental correlation" on trace range 850001:1:900000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 900000 rows, 5 cols (900000 rows consumed)
target: 1, phase: 7, #candidates 256
rank:   1, candidate: 0xaf, score: 0.035234 @ 1
rank:   2, correct  : 0x2f, score: 0.034769 @ 1
rank:   3, candidate: 0x6f, score: 0.032567 @ 2
rank:   4, candidate: 0xef, score: 0.032081 @ 1
rank:   5, candidate: 0xb3, score: 0.031950 @ 4
recovered key material: af
Running "Incremental correlation" on trace range 900001:1:950000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 950000 rows, 5 cols (950000 rows consumed)
target: 1, phase: 7, #candidates 256
rank:   1, candidate: 0xaf, score: 0.035334 @ 1
rank:   2, correct  : 0x2f, score: 0.035066 @ 1
rank:   3, candidate: 0x6f, score: 0.033220 @ 1
rank:   4, candidate: 0xef, score: 0.032807 @ 1
rank:   5, candidate: 0xb3, score: 0.032496 @ 4
recovered key material: af
Running "Incremental correlation" on trace range 950001:1:1000000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 1000000 rows, 5 cols (1000000 rows consumed)
target: 1, phase: 7, #candidates 256
rank:   1, candidate: 0xaf, score: 0.035130 @ 1
rank:   2, correct  : 0x2f, score: 0.034841 @ 1
rank:   3, candidate: 0x6f, score: 0.033063 @ 1
rank:   4, candidate: 0xb3, score: 0.032584 @ 4
rank:   5, candidate: 0xef, score: 0.032506 @ 1
recovered key material: af
Running "Incremental correlation" on trace range 1000001:1:1050000, 1 data passes, 2 sample passes
Processing traces 1000001:1050000 ..100%|███████████████| Time: 0:00:01
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 1050000 rows, 5 cols (1050000 rows consumed)
target: 1, phase: 7, #candidates 256
rank:   1, candidate: 0xaf, score: 0.035653 @ 1
rank:   2, correct  : 0x2f, score: 0.035140 @ 1
rank:   3, candidate: 0x6f, score: 0.033273 @ 1
rank:   4, candidate: 0xef, score: 0.032725 @ 1
rank:   5, candidate: 0xb3, score: 0.031524 @ 5
recovered key material: af
Running "Incremental correlation" on trace range 1050001:1:1100000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 1100000 rows, 5 cols (1100000 rows consumed)
target: 1, phase: 7, #candidates 256
rank:   1, candidate: 0xaf, score: 0.037372 @ 1
rank:   2, correct  : 0x2f, score: 0.036837 @ 1
rank:   3, candidate: 0x6f, score: 0.034360 @ 1
rank:   4, candidate: 0xef, score: 0.033995 @ 1
rank:   5, candidate: 0xb3, score: 0.032821 @ 5
recovered key material: af
Running "Incremental correlation" on trace range 1100001:1:1150000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 1150000 rows, 5 cols (1150000 rows consumed)
target: 1, phase: 7, #candidates 256
rank:   1, candidate: 0xaf, score: 0.037810 @ 1
rank:   2, correct  : 0x2f, score: 0.037379 @ 1
rank:   3, candidate: 0x6f, score: 0.034666 @ 1
rank:   4, candidate: 0xef, score: 0.034347 @ 1
rank:   5, candidate: 0xb3, score: 0.032596 @ 1
recovered key material: af
Running "Incremental correlation" on trace range 1150001:1:1200000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 1200000 rows, 5 cols (1200000 rows consumed)
target: 1, phase: 7, #candidates 256
rank:   1, candidate: 0xaf, score: 0.037461 @ 1
rank:   2, correct  : 0x2f, score: 0.036948 @ 1
rank:   3, candidate: 0x6f, score: 0.034274 @ 1
rank:   4, candidate: 0xef, score: 0.033891 @ 1
rank:   5, candidate: 0xb3, score: 0.032386 @ 4
recovered key material: af
Running "Incremental correlation" on trace range 1200001:1:1228800, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 1228800 rows, 5 cols (1228800 rows consumed)
target: 1, phase: 7, #candidates 256
rank:   1, candidate: 0xaf, score: 0.037598 @ 1
rank:   2, correct  : 0x2f, score: 0.036992 @ 1
rank:   3, candidate: 0x6f, score: 0.034097 @ 1
rank:   4, candidate: 0xef, score: 0.033691 @ 1
rank:   5, candidate: 0xb3, score: 0.032291 @ 4
recovered key material: af

phase: 8 / 14, #targets 1
phase input: 47cfa7307e012f

Attacking columns 1:5 out of 5 columns (run 1 out of 1)
Running "Incremental correlation" on trace range 1:1:50000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 50000 rows, 5 cols (50000 rows consumed)
target: 1, phase: 8, #candidates 256
rank:   1, candidate: 0x26, score: 0.075633 @ 4
rank:   2, candidate: 0x36, score: 0.075377 @ 4
rank:   3, candidate: 0xb6, score: 0.074840 @ 2
rank:   4, candidate: 0x66, score: 0.074616 @ 4
rank:  62, correct  : 0x6c, score: 0.065944 @ 5
recovered key material: 26
Running "Incremental correlation" on trace range 50001:1:100000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 100000 rows, 5 cols (100000 rows consumed)
target: 1, phase: 8, #candidates 256
rank:   1, candidate: 0xd4, score: 0.051421 @ 4
rank:   2, candidate: 0xb4, score: 0.050989 @ 4
rank:   3, candidate: 0x34, score: 0.049011 @ 3
rank:   4, candidate: 0x94, score: 0.048616 @ 5
rank:  27, correct  : 0x6c, score: 0.043438 @ 1
recovered key material: d4
Running "Incremental correlation" on trace range 100001:1:150000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 150000 rows, 5 cols (150000 rows consumed)
target: 1, phase: 8, #candidates 256
rank:   1, correct  : 0x6c, score: 0.039574 @ 1
rank:   2, candidate: 0xec, score: 0.038066 @ 1
rank:   3, candidate: 0x6e, score: 0.037978 @ 3
rank:   4, candidate: 0x70, score: 0.037916 @ 3
rank:   5, candidate: 0xac, score: 0.037538 @ 1
recovered key material: 6c
Running "Incremental correlation" on trace range 150001:1:200000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 200000 rows, 5 cols (200000 rows consumed)
target: 1, phase: 8, #candidates 256
rank:   1, candidate: 0x35, score: 0.037236 @ 3
rank:   2, correct  : 0x6c, score: 0.037231 @ 3
rank:   3, candidate: 0xb5, score: 0.036751 @ 3
rank:   4, candidate: 0xec, score: 0.036125 @ 1
rank:   5, candidate: 0xd5, score: 0.035312 @ 3
recovered key material: 35
Running "Incremental correlation" on trace range 200001:1:250000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 250000 rows, 5 cols (250000 rows consumed)
target: 1, phase: 8, #candidates 256
rank:   1, correct  : 0x6c, score: 0.037144 @ 3
rank:   2, candidate: 0xec, score: 0.036061 @ 1
rank:   3, candidate: 0x6d, score: 0.034140 @ 3
rank:   4, candidate: 0x6e, score: 0.034078 @ 3
rank:   5, candidate: 0xac, score: 0.033601 @ 1
recovered key material: 6c
Running "Incremental correlation" on trace range 250001:1:300000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 300000 rows, 5 cols (300000 rows consumed)
target: 1, phase: 8, #candidates 256
rank:   1, correct  : 0x6c, score: 0.035164 @ 1
rank:   2, candidate: 0xec, score: 0.034353 @ 1
rank:   3, candidate: 0x6e, score: 0.031660 @ 3
rank:   4, candidate: 0xd5, score: 0.031493 @ 3
rank:   5, candidate: 0x0c, score: 0.031470 @ 3
recovered key material: 6c
Running "Incremental correlation" on trace range 300001:1:350000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 350000 rows, 5 cols (350000 rows consumed)
target: 1, phase: 8, #candidates 256
rank:   1, correct  : 0x6c, score: 0.035838 @ 1
rank:   2, candidate: 0xec, score: 0.035364 @ 1
rank:   3, candidate: 0x6e, score: 0.032028 @ 2
rank:   4, candidate: 0xac, score: 0.032006 @ 1
rank:   5, candidate: 0x2c, score: 0.031842 @ 3
recovered key material: 6c
Running "Incremental correlation" on trace range 350001:1:400000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 400000 rows, 5 cols (400000 rows consumed)
target: 1, phase: 8, #candidates 256
rank:   1, correct  : 0x6c, score: 0.030931 @ 1
rank:   2, candidate: 0xec, score: 0.030458 @ 1
rank:   3, candidate: 0x6d, score: 0.029603 @ 1
rank:   4, candidate: 0x6e, score: 0.029477 @ 1
rank:   5, candidate: 0xed, score: 0.029381 @ 1
recovered key material: 6c
Running "Incremental correlation" on trace range 400001:1:450000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 450000 rows, 5 cols (450000 rows consumed)
target: 1, phase: 8, #candidates 256
rank:   1, correct  : 0x6c, score: 0.029479 @ 1
rank:   2, candidate: 0xec, score: 0.028602 @ 1
rank:   3, candidate: 0x6d, score: 0.028567 @ 1
rank:   4, candidate: 0x6e, score: 0.027999 @ 1
rank:   5, candidate: 0xed, score: 0.027967 @ 1
recovered key material: 6c
Running "Incremental correlation" on trace range 450001:1:500000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 500000 rows, 5 cols (500000 rows consumed)
target: 1, phase: 8, #candidates 256
rank:   1, correct  : 0x6c, score: 0.029284 @ 1
rank:   2, candidate: 0x6d, score: 0.028810 @ 1
rank:   3, candidate: 0xec, score: 0.028552 @ 1
rank:   4, candidate: 0xed, score: 0.028295 @ 1
rank:   5, candidate: 0x6e, score: 0.027029 @ 1
recovered key material: 6c
Running "Incremental correlation" on trace range 500001:1:550000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 550000 rows, 5 cols (550000 rows consumed)
target: 1, phase: 8, #candidates 256
rank:   1, correct  : 0x6c, score: 0.030344 @ 1
rank:   2, candidate: 0xec, score: 0.029835 @ 1
rank:   3, candidate: 0x6d, score: 0.028422 @ 1
rank:   4, candidate: 0xed, score: 0.028099 @ 1
rank:   5, candidate: 0x2c, score: 0.027710 @ 1
recovered key material: 6c
Running "Incremental correlation" on trace range 550001:1:600000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 600000 rows, 5 cols (600000 rows consumed)
target: 1, phase: 8, #candidates 256
rank:   1, correct  : 0x6c, score: 0.029914 @ 1
rank:   2, candidate: 0xec, score: 0.029680 @ 1
rank:   3, candidate: 0x0c, score: 0.027751 @ 1
rank:   4, candidate: 0x2c, score: 0.027557 @ 1
rank:   5, candidate: 0x4c, score: 0.027443 @ 2
recovered key material: 6c
Running "Incremental correlation" on trace range 600001:1:650000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 650000 rows, 5 cols (650000 rows consumed)
target: 1, phase: 8, #candidates 256
rank:   1, correct  : 0x6c, score: 0.029506 @ 1
rank:   2, candidate: 0xec, score: 0.029011 @ 1
rank:   3, candidate: 0x6e, score: 0.027320 @ 5
rank:   4, candidate: 0xee, score: 0.026729 @ 1
rank:   5, candidate: 0x4c, score: 0.026644 @ 2
recovered key material: 6c
Running "Incremental correlation" on trace range 650001:1:700000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 700000 rows, 5 cols (700000 rows consumed)
target: 1, phase: 8, #candidates 256
rank:   1, correct  : 0x6c, score: 0.029570 @ 1
rank:   2, candidate: 0xec, score: 0.029038 @ 1
rank:   3, candidate: 0x6e, score: 0.027340 @ 1
rank:   4, candidate: 0xee, score: 0.026885 @ 1
rank:   5, candidate: 0x4c, score: 0.026614 @ 2
recovered key material: 6c
Running "Incremental correlation" on trace range 700001:1:750000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 750000 rows, 5 cols (750000 rows consumed)
target: 1, phase: 8, #candidates 256
rank:   1, correct  : 0x6c, score: 0.030028 @ 1
rank:   2, candidate: 0xec, score: 0.029440 @ 1
rank:   3, candidate: 0x6e, score: 0.027373 @ 1
rank:   4, candidate: 0x2c, score: 0.027056 @ 1
rank:   5, candidate: 0x4c, score: 0.026957 @ 2
recovered key material: 6c
Running "Incremental correlation" on trace range 750001:1:800000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 800000 rows, 5 cols (800000 rows consumed)
target: 1, phase: 8, #candidates 256
rank:   1, correct  : 0x6c, score: 0.031413 @ 1
rank:   2, candidate: 0xec, score: 0.030464 @ 1
rank:   3, candidate: 0x4c, score: 0.029773 @ 2
rank:   4, candidate: 0x6e, score: 0.028526 @ 1
rank:   5, candidate: 0x5c, score: 0.028410 @ 1
recovered key material: 6c
Running "Incremental correlation" on trace range 800001:1:850000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 850000 rows, 5 cols (850000 rows consumed)
target: 1, phase: 8, #candidates 256
rank:   1, correct  : 0x6c, score: 0.029557 @ 1
rank:   2, candidate: 0x4c, score: 0.028477 @ 2
rank:   3, candidate: 0xec, score: 0.028406 @ 1
rank:   4, candidate: 0x5c, score: 0.027288 @ 1
rank:   5, candidate: 0xcc, score: 0.026870 @ 4
recovered key material: 6c
Running "Incremental correlation" on trace range 850001:1:900000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 900000 rows, 5 cols (900000 rows consumed)
target: 1, phase: 8, #candidates 256
rank:   1, correct  : 0x6c, score: 0.029282 @ 1
rank:   2, candidate: 0x4c, score: 0.028755 @ 2
rank:   3, candidate: 0xec, score: 0.028188 @ 2
rank:   4, candidate: 0x5c, score: 0.027519 @ 1
rank:   5, candidate: 0xcc, score: 0.027085 @ 4
recovered key material: 6c
Running "Incremental correlation" on trace range 900001:1:950000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 950000 rows, 5 cols (950000 rows consumed)
target: 1, phase: 8, #candidates 256
rank:   1, correct  : 0x6c, score: 0.029546 @ 5
rank:   2, candidate: 0xec, score: 0.028867 @ 4
rank:   3, candidate: 0x4c, score: 0.028186 @ 2
rank:   4, candidate: 0x5c, score: 0.027499 @ 1
rank:   5, candidate: 0xcc, score: 0.027230 @ 4
recovered key material: 6c
Running "Incremental correlation" on trace range 950001:1:1000000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 1000000 rows, 5 cols (1000000 rows consumed)
target: 1, phase: 8, #candidates 256
rank:   1, correct  : 0x6c, score: 0.027670 @ 5
rank:   2, candidate: 0xec, score: 0.027156 @ 4
rank:   3, candidate: 0x4c, score: 0.025315 @ 2
rank:   4, candidate: 0x2c, score: 0.025152 @ 1
rank:   5, candidate: 0x6e, score: 0.025112 @ 5
recovered key material: 6c
Running "Incremental correlation" on trace range 1000001:1:1050000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 1050000 rows, 5 cols (1050000 rows consumed)
target: 1, phase: 8, #candidates 256
rank:   1, correct  : 0x6c, score: 0.027977 @ 5
rank:   2, candidate: 0xec, score: 0.027472 @ 4
rank:   3, candidate: 0x6d, score: 0.025660 @ 2
rank:   4, candidate: 0x2c, score: 0.025416 @ 1
rank:   5, candidate: 0xac, score: 0.025382 @ 4
recovered key material: 6c
Running "Incremental correlation" on trace range 1050001:1:1100000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 1100000 rows, 5 cols (1100000 rows consumed)
target: 1, phase: 8, #candidates 256
rank:   1, correct  : 0x6c, score: 0.026559 @ 5
rank:   2, candidate: 0xec, score: 0.026254 @ 4
rank:   3, candidate: 0x6d, score: 0.025328 @ 2
rank:   4, candidate: 0xed, score: 0.025153 @ 4
rank:   5, candidate: 0x6e, score: 0.024788 @ 5
recovered key material: 6c
Running "Incremental correlation" on trace range 1100001:1:1150000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 1150000 rows, 5 cols (1150000 rows consumed)
target: 1, phase: 8, #candidates 256
rank:   1, correct  : 0x6c, score: 0.026355 @ 5
rank:   2, candidate: 0xec, score: 0.026308 @ 4
rank:   3, candidate: 0xed, score: 0.024914 @ 4
rank:   4, candidate: 0x6d, score: 0.024903 @ 2
rank:   5, candidate: 0x6e, score: 0.024411 @ 5
recovered key material: 6c
Running "Incremental correlation" on trace range 1150001:1:1200000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 1200000 rows, 5 cols (1200000 rows consumed)
target: 1, phase: 8, #candidates 256
rank:   1, correct  : 0x6c, score: 0.026631 @ 5
rank:   2, candidate: 0xec, score: 0.026135 @ 4
rank:   3, candidate: 0x6e, score: 0.025076 @ 5
rank:   4, candidate: 0x6d, score: 0.024993 @ 2
rank:   5, candidate: 0xed, score: 0.024851 @ 4
recovered key material: 6c
Running "Incremental correlation" on trace range 1200001:1:1228800, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 1228800 rows, 5 cols (1228800 rows consumed)
target: 1, phase: 8, #candidates 256
rank:   1, correct  : 0x6c, score: 0.026674 @ 5
rank:   2, candidate: 0xec, score: 0.026118 @ 4
rank:   3, candidate: 0x6e, score: 0.024654 @ 5
rank:   4, candidate: 0x6d, score: 0.024536 @ 2
rank:   5, candidate: 0xed, score: 0.024358 @ 4
recovered key material: 6c
 83.026822 seconds (135.01 M allocations: 41.413 GiB, 3.51% gc time)

The rank evolution shows we're doing quite well here.


In [14]:
plot(PlotRanksEvolution(),rankdata2,params2,legend=true)


Out[14]:
2.50×10 5 5.00×10 5 7.50×10 5 1.00×10 6 1.25×10 6 0 50 100 150 200 rank evolution #traces rank phase / target / final rank 5 / 1 / 2 6 / 1 / 4 7 / 1 / 2 8 / 1 / 1

DPA 3: attacking F3

Correlating measurements with the 32-bit HW of F3 should some nice peaks, but the DPA doesn't perform that well for all targets, as we'll see.


In [15]:
plot(CF[:,2])


Out[15]:
0 1000 2000 3000 4000 0.000 0.002 0.004 0.006 0.008 0.010 0.012 y1

In [16]:
leakyF3samples = sortperm(CF[:,2],rev=true)[1:5]

attack = Sha1InputAttack()
analysis = IncrementalCPA()
params3 = DpaAttack(attack,analysis)
params3.knownKey = knownkeyinner
params3.phases = 9:9
params3.updateInterval = interval
params3.analysis.leakages= vcat([HW()],[Bit(x) for x in 0:7])

empty!(meta(trs).passes)
empty!(meta(trs).dataPasses)
addSamplePass(trs, alignpass)
addSamplePass(trs, x -> x[leakyT0samples])

@time rankdata3 = sca(trs, params3, 1,len)
nothing


Jlsca running in Julia version: 1.3.0, 1 processes/1 workers/2 threads per worker

DPA parameters
attack:       Sha1 input
T xor:        false
analysis:     Incremental CPA
leakages:     HW,bit0,bit1,bit2,bit3,bit4,bit5,bit6,bit7
maximization: abs global max
combination:  +
data at:      1
phases:       [9]
known key:    685d79d6007d6cb9437d9393ce6eacdefbf69a0a

phase: 9 / 14, #targets 4
phase input: 47cfa7307e012f6c

Attacking columns 1:5 out of 5 columns (run 1 out of 1)
Running "Incremental correlation" on trace range 1:1:50000, 1 data passes, 2 sample passes
Processing traces 1:50000 ..100%|███████████████████████| Time: 0:00:02
Incremental CPA on range 1:5 produced (5, 9216) correlation matrix
Results @ 50000 rows, 5 cols (50000 rows consumed)
target: 1, phase: 9, #candidates 256
rank:   1, candidate: 0xc0, score: 0.095581 @ 1
rank:   2, candidate: 0xd0, score: 0.095301 @ 1
rank:   3, candidate: 0x40, score: 0.095177 @ 1
rank:   4, candidate: 0x50, score: 0.094882 @ 1
rank:  76, correct  : 0x75, score: 0.081418 @ 2
Results @ 50000 rows, 5 cols (50000 rows consumed)
target: 2, phase: 9, #candidates 256
rank:   1, candidate: 0xdc, score: 0.074208 @ 1
rank:   2, candidate: 0xfc, score: 0.073823 @ 1
rank:   3, candidate: 0xde, score: 0.073679 @ 1
rank:   4, candidate: 0xfe, score: 0.073548 @ 2
rank:   7, correct  : 0x5e, score: 0.072859 @ 1
Results @ 50000 rows, 5 cols (50000 rows consumed)
target: 3, phase: 9, #candidates 256
rank:   1, candidate: 0x47, score: 0.095217 @ 2
rank:   2, candidate: 0x67, score: 0.094851 @ 2
rank:   3, candidate: 0x4f, score: 0.094795 @ 2
rank:   4, candidate: 0x43, score: 0.094543 @ 2
rank:  81, correct  : 0x17, score: 0.088039 @ 2
Results @ 50000 rows, 5 cols (50000 rows consumed)
target: 4, phase: 9, #candidates 256
rank:   1, candidate: 0x50, score: 0.081259 @ 4
rank:   2, candidate: 0xd0, score: 0.080533 @ 4
rank:   3, candidate: 0x51, score: 0.080158 @ 4
rank:   4, candidate: 0x40, score: 0.079957 @ 4
rank: 129, correct  : 0x9a, score: 0.070444 @ 5
recovered key material: c0dc4750
Running "Incremental correlation" on trace range 50001:1:100000, 1 data passes, 2 sample passes
Processing traces 50001:100000 ..100%|██████████████████| Time: 0:00:02
Incremental CPA on range 1:5 produced (5, 9216) correlation matrix
Results @ 100000 rows, 5 cols (100000 rows consumed)
target: 1, phase: 9, #candidates 256
rank:   1, candidate: 0xa0, score: 0.062415 @ 3
rank:   2, candidate: 0x20, score: 0.061930 @ 3
rank:   3, candidate: 0xa4, score: 0.061217 @ 3
rank:   4, candidate: 0x24, score: 0.060742 @ 3
rank: 223, correct  : 0x75, score: 0.045847 @ 1
Results @ 100000 rows, 5 cols (100000 rows consumed)
target: 2, phase: 9, #candidates 256
rank:   1, correct  : 0x5e, score: 0.068985 @ 1
rank:   2, candidate: 0x5f, score: 0.067521 @ 1
rank:   3, candidate: 0x5a, score: 0.067122 @ 1
rank:   4, candidate: 0x7e, score: 0.066752 @ 1
rank:   5, candidate: 0xde, score: 0.065996 @ 1
Results @ 100000 rows, 5 cols (100000 rows consumed)
target: 3, phase: 9, #candidates 256
rank:   1, candidate: 0x03, score: 0.074768 @ 5
rank:   2, candidate: 0x1f, score: 0.074251 @ 2
rank:   3, candidate: 0x0f, score: 0.074047 @ 2
rank:   4, candidate: 0x0b, score: 0.074018 @ 1
rank:   6, correct  : 0x17, score: 0.073889 @ 2
Results @ 100000 rows, 5 cols (100000 rows consumed)
target: 4, phase: 9, #candidates 256
rank:   1, candidate: 0x41, score: 0.071338 @ 4
rank:   2, candidate: 0x43, score: 0.070290 @ 4
rank:   3, candidate: 0x40, score: 0.068849 @ 4
rank:   4, candidate: 0x42, score: 0.067803 @ 4
rank: 201, correct  : 0x9a, score: 0.051594 @ 3
recovered key material: a05e0341
Running "Incremental correlation" on trace range 100001:1:150000, 1 data passes, 2 sample passes
Processing traces 100001:150000 ..100%|█████████████████| Time: 0:00:02
Incremental CPA on range 1:5 produced (5, 9216) correlation matrix
Results @ 150000 rows, 5 cols (150000 rows consumed)
target: 1, phase: 9, #candidates 256
rank:   1, candidate: 0x24, score: 0.060760 @ 3
rank:   2, candidate: 0xa4, score: 0.060309 @ 3
rank:   3, candidate: 0x20, score: 0.060132 @ 3
rank:   4, candidate: 0x26, score: 0.059931 @ 3
rank: 207, correct  : 0x75, score: 0.041641 @ 1
Results @ 150000 rows, 5 cols (150000 rows consumed)
target: 2, phase: 9, #candidates 256
rank:   1, correct  : 0x5e, score: 0.060514 @ 2
rank:   2, candidate: 0x7e, score: 0.060229 @ 2
rank:   3, candidate: 0x56, score: 0.060178 @ 2
rank:   4, candidate: 0x76, score: 0.059898 @ 2
rank:   5, candidate: 0x5a, score: 0.059825 @ 2
Results @ 150000 rows, 5 cols (150000 rows consumed)
target: 3, phase: 9, #candidates 256
rank:   1, candidate: 0x57, score: 0.076489 @ 2
rank:   2, correct  : 0x17, score: 0.076313 @ 2
rank:   3, candidate: 0xd7, score: 0.076009 @ 2
rank:   4, candidate: 0x97, score: 0.075830 @ 2
rank:   5, candidate: 0x5f, score: 0.074393 @ 2
Results @ 150000 rows, 5 cols (150000 rows consumed)
target: 4, phase: 9, #candidates 256
rank:   1, candidate: 0x41, score: 0.060543 @ 4
rank:   2, candidate: 0x40, score: 0.058951 @ 4
rank:   3, candidate: 0x61, score: 0.058424 @ 4
rank:   4, candidate: 0x01, score: 0.058379 @ 2
rank: 231, correct  : 0x9a, score: 0.042032 @ 2
recovered key material: 245e5741
Running "Incremental correlation" on trace range 150001:1:200000, 1 data passes, 2 sample passes
Processing traces 150001:200000 ..100%|█████████████████| Time: 0:00:02
Incremental CPA on range 1:5 produced (5, 9216) correlation matrix
Results @ 200000 rows, 5 cols (200000 rows consumed)
target: 1, phase: 9, #candidates 256
rank:   1, candidate: 0x04, score: 0.052954 @ 1
rank:   2, candidate: 0x06, score: 0.052650 @ 1
rank:   3, candidate: 0x00, score: 0.052503 @ 1
rank:   4, candidate: 0x02, score: 0.052205 @ 1
rank: 228, correct  : 0x75, score: 0.034185 @ 5
Results @ 200000 rows, 5 cols (200000 rows consumed)
target: 2, phase: 9, #candidates 256
rank:   1, candidate: 0x58, score: 0.062292 @ 2
rank:   2, candidate: 0xd8, score: 0.062053 @ 2
rank:   3, candidate: 0x5a, score: 0.062030 @ 1
rank:   4, candidate: 0x5c, score: 0.061972 @ 2
rank:   6, correct  : 0x5e, score: 0.061649 @ 1
Results @ 200000 rows, 5 cols (200000 rows consumed)
target: 3, phase: 9, #candidates 256
rank:   1, candidate: 0x5f, score: 0.074667 @ 2
rank:   2, candidate: 0x57, score: 0.074452 @ 2
rank:   3, candidate: 0xdf, score: 0.074382 @ 2
rank:   4, candidate: 0xd7, score: 0.074169 @ 2
rank:   7, correct  : 0x17, score: 0.073454 @ 2
Results @ 200000 rows, 5 cols (200000 rows consumed)
target: 4, phase: 9, #candidates 256
rank:   1, candidate: 0x01, score: 0.050031 @ 2
rank:   2, candidate: 0x41, score: 0.049782 @ 4
rank:   3, candidate: 0x03, score: 0.048783 @ 4
rank:   4, candidate: 0x21, score: 0.048713 @ 2
rank: 231, correct  : 0x9a, score: 0.036898 @ 3
recovered key material: 04585f01
Running "Incremental correlation" on trace range 200001:1:250000, 1 data passes, 2 sample passes
Processing traces 200001:250000 ..100%|█████████████████| Time: 0:00:02
Incremental CPA on range 1:5 produced (5, 9216) correlation matrix
Results @ 250000 rows, 5 cols (250000 rows consumed)
target: 1, phase: 9, #candidates 256
rank:   1, candidate: 0x00, score: 0.051122 @ 1
rank:   2, candidate: 0x02, score: 0.050852 @ 1
rank:   3, candidate: 0x04, score: 0.050659 @ 1
rank:   4, candidate: 0x06, score: 0.050385 @ 1
rank: 243, correct  : 0x75, score: 0.032869 @ 5
Results @ 250000 rows, 5 cols (250000 rows consumed)
target: 2, phase: 9, #candidates 256
rank:   1, candidate: 0xd8, score: 0.062832 @ 2
rank:   2, candidate: 0xf8, score: 0.062634 @ 1
rank:   3, candidate: 0xda, score: 0.062538 @ 1
rank:   4, candidate: 0xdc, score: 0.062500 @ 2
rank:  15, correct  : 0x5e, score: 0.061845 @ 1
Results @ 250000 rows, 5 cols (250000 rows consumed)
target: 3, phase: 9, #candidates 256
rank:   1, correct  : 0x17, score: 0.075078 @ 2
rank:   2, candidate: 0x1f, score: 0.074912 @ 1
rank:   3, candidate: 0x97, score: 0.074744 @ 2
rank:   4, candidate: 0x57, score: 0.074582 @ 2
rank:   5, candidate: 0x9f, score: 0.074568 @ 1
Results @ 250000 rows, 5 cols (250000 rows consumed)
target: 4, phase: 9, #candidates 256
rank:   1, candidate: 0x01, score: 0.044719 @ 4
rank:   2, candidate: 0x41, score: 0.044609 @ 4
rank:   3, candidate: 0x00, score: 0.044146 @ 4
rank:   4, candidate: 0x40, score: 0.044032 @ 4
rank: 210, correct  : 0x9a, score: 0.035347 @ 5
recovered key material: 00d81701
Running "Incremental correlation" on trace range 250001:1:300000, 1 data passes, 2 sample passes
Processing traces 250001:300000 ..100%|█████████████████| Time: 0:00:02
Incremental CPA on range 1:5 produced (5, 9216) correlation matrix
Results @ 300000 rows, 5 cols (300000 rows consumed)
target: 1, phase: 9, #candidates 256
rank:   1, candidate: 0x08, score: 0.050247 @ 1
rank:   2, candidate: 0x00, score: 0.050232 @ 1
rank:   3, candidate: 0x0c, score: 0.049692 @ 1
rank:   4, candidate: 0x04, score: 0.049687 @ 1
rank: 247, correct  : 0x75, score: 0.031582 @ 5
Results @ 300000 rows, 5 cols (300000 rows consumed)
target: 2, phase: 9, #candidates 256
rank:   1, candidate: 0xfe, score: 0.061634 @ 1
rank:   2, candidate: 0xfa, score: 0.061551 @ 1
rank:   3, candidate: 0x7e, score: 0.061374 @ 1
rank:   4, candidate: 0x7a, score: 0.061290 @ 1
rank:  10, correct  : 0x5e, score: 0.060328 @ 1
Results @ 300000 rows, 5 cols (300000 rows consumed)
target: 3, phase: 9, #candidates 256
rank:   1, candidate: 0x57, score: 0.072764 @ 2
rank:   2, candidate: 0x5f, score: 0.072319 @ 2
rank:   3, correct  : 0x17, score: 0.072023 @ 2
rank:   4, candidate: 0x77, score: 0.071831 @ 2
rank:   5, candidate: 0x1f, score: 0.071574 @ 2
Results @ 300000 rows, 5 cols (300000 rows consumed)
target: 4, phase: 9, #candidates 256
rank:   1, candidate: 0x60, score: 0.044495 @ 4
rank:   2, candidate: 0x61, score: 0.044474 @ 4
rank:   3, candidate: 0x69, score: 0.044456 @ 5
rank:   4, candidate: 0x40, score: 0.044214 @ 4
rank: 241, correct  : 0x9a, score: 0.033209 @ 5
recovered key material: 08fe5760
Running "Incremental correlation" on trace range 300001:1:350000, 1 data passes, 2 sample passes
Processing traces 300001:350000 ..100%|█████████████████| Time: 0:00:02
Incremental CPA on range 1:5 produced (5, 9216) correlation matrix
Results @ 350000 rows, 5 cols (350000 rows consumed)
target: 1, phase: 9, #candidates 256
rank:   1, candidate: 0x04, score: 0.048252 @ 3
rank:   2, candidate: 0x00, score: 0.047923 @ 3
rank:   3, candidate: 0x0c, score: 0.047296 @ 1
rank:   4, candidate: 0x08, score: 0.047199 @ 1
rank: 224, correct  : 0x75, score: 0.031532 @ 5
Results @ 350000 rows, 5 cols (350000 rows consumed)
target: 2, phase: 9, #candidates 256
rank:   1, candidate: 0x7a, score: 0.058211 @ 1
rank:   2, candidate: 0x5a, score: 0.058183 @ 1
rank:   3, candidate: 0x7e, score: 0.057917 @ 1
rank:   4, correct  : 0x5e, score: 0.057890 @ 1
rank:   5, candidate: 0x78, score: 0.057009 @ 1
Results @ 350000 rows, 5 cols (350000 rows consumed)
target: 3, phase: 9, #candidates 256
rank:   1, candidate: 0x47, score: 0.070184 @ 2
rank:   2, candidate: 0x57, score: 0.069822 @ 2
rank:   3, candidate: 0x07, score: 0.069495 @ 1
rank:   4, candidate: 0xc7, score: 0.069489 @ 2
rank:  10, correct  : 0x17, score: 0.068804 @ 2
Results @ 350000 rows, 5 cols (350000 rows consumed)
target: 4, phase: 9, #candidates 256
rank:   1, candidate: 0x20, score: 0.044335 @ 1
rank:   2, candidate: 0x24, score: 0.043924 @ 1
rank:   3, candidate: 0x21, score: 0.043817 @ 2
rank:   4, candidate: 0x25, score: 0.043548 @ 2
rank: 241, correct  : 0x9a, score: 0.031581 @ 5
recovered key material: 047a4720
Running "Incremental correlation" on trace range 350001:1:400000, 1 data passes, 2 sample passes
Processing traces 350001:400000 ..100%|█████████████████| Time: 0:00:02
Incremental CPA on range 1:5 produced (5, 9216) correlation matrix
Results @ 400000 rows, 5 cols (400000 rows consumed)
target: 1, phase: 9, #candidates 256
rank:   1, candidate: 0x04, score: 0.048184 @ 3
rank:   2, candidate: 0x00, score: 0.047821 @ 3
rank:   3, candidate: 0x84, score: 0.047513 @ 3
rank:   4, candidate: 0x0c, score: 0.047414 @ 1
rank: 232, correct  : 0x75, score: 0.029525 @ 3
Results @ 400000 rows, 5 cols (400000 rows consumed)
target: 2, phase: 9, #candidates 256
rank:   1, candidate: 0x5a, score: 0.056609 @ 1
rank:   2, candidate: 0x7a, score: 0.056607 @ 1
rank:   3, candidate: 0x5b, score: 0.056372 @ 1
rank:   4, candidate: 0x7b, score: 0.056369 @ 1
rank:   9, correct  : 0x5e, score: 0.055869 @ 1
Results @ 400000 rows, 5 cols (400000 rows consumed)
target: 3, phase: 9, #candidates 256
rank:   1, candidate: 0x57, score: 0.068498 @ 2
rank:   2, candidate: 0x47, score: 0.068209 @ 2
rank:   3, candidate: 0x5f, score: 0.067964 @ 2
rank:   4, candidate: 0x4f, score: 0.067671 @ 2
rank:   5, correct  : 0x17, score: 0.067654 @ 2
Results @ 400000 rows, 5 cols (400000 rows consumed)
target: 4, phase: 9, #candidates 256
rank:   1, candidate: 0x20, score: 0.042272 @ 1
rank:   2, candidate: 0x21, score: 0.042184 @ 1
rank:   3, candidate: 0x25, score: 0.041517 @ 2
rank:   4, candidate: 0x24, score: 0.041505 @ 1
rank: 236, correct  : 0x9a, score: 0.028482 @ 5
recovered key material: 045a5720
Running "Incremental correlation" on trace range 400001:1:450000, 1 data passes, 2 sample passes
Processing traces 400001:450000 ..100%|█████████████████| Time: 0:00:02
Incremental CPA on range 1:5 produced (5, 9216) correlation matrix
Results @ 450000 rows, 5 cols (450000 rows consumed)
target: 1, phase: 9, #candidates 256
rank:   1, candidate: 0x04, score: 0.045965 @ 3
rank:   2, candidate: 0x0c, score: 0.045909 @ 1
rank:   3, candidate: 0x00, score: 0.045521 @ 3
rank:   4, candidate: 0x08, score: 0.045379 @ 1
rank: 241, correct  : 0x75, score: 0.025958 @ 5
Results @ 450000 rows, 5 cols (450000 rows consumed)
target: 2, phase: 9, #candidates 256
rank:   1, correct  : 0x5e, score: 0.056067 @ 1
rank:   2, candidate: 0x5a, score: 0.056009 @ 1
rank:   3, candidate: 0x5f, score: 0.055399 @ 1
rank:   4, candidate: 0xde, score: 0.055377 @ 1
rank:   5, candidate: 0x5b, score: 0.055340 @ 1
Results @ 450000 rows, 5 cols (450000 rows consumed)
target: 3, phase: 9, #candidates 256
rank:   1, correct  : 0x17, score: 0.068646 @ 2
rank:   2, candidate: 0x57, score: 0.068234 @ 2
rank:   3, candidate: 0x07, score: 0.068214 @ 2
rank:   4, candidate: 0x1f, score: 0.068034 @ 2
rank:   5, candidate: 0x47, score: 0.067798 @ 2
Results @ 450000 rows, 5 cols (450000 rows consumed)
target: 4, phase: 9, #candidates 256
rank:   1, candidate: 0x00, score: 0.044521 @ 1
rank:   2, candidate: 0x20, score: 0.044497 @ 1
rank:   3, candidate: 0x04, score: 0.043784 @ 1
rank:   4, candidate: 0x24, score: 0.043760 @ 1
rank: 239, correct  : 0x9a, score: 0.030066 @ 5
recovered key material: 045e1700
Running "Incremental correlation" on trace range 450001:1:500000, 1 data passes, 2 sample passes
Processing traces 450001:500000 ..100%|█████████████████| Time: 0:00:02
Incremental CPA on range 1:5 produced (5, 9216) correlation matrix
Results @ 500000 rows, 5 cols (500000 rows consumed)
target: 1, phase: 9, #candidates 256
rank:   1, candidate: 0x04, score: 0.048583 @ 3
rank:   2, candidate: 0x00, score: 0.048519 @ 3
rank:   3, candidate: 0x84, score: 0.047624 @ 3
rank:   4, candidate: 0x80, score: 0.047562 @ 3
rank: 231, correct  : 0x75, score: 0.027204 @ 3
Results @ 500000 rows, 5 cols (500000 rows consumed)
target: 2, phase: 9, #candidates 256
rank:   1, correct  : 0x5e, score: 0.056632 @ 1
rank:   2, candidate: 0x5a, score: 0.056313 @ 1
rank:   3, candidate: 0x5f, score: 0.055294 @ 1
rank:   4, candidate: 0xde, score: 0.055273 @ 1
rank:   5, candidate: 0x7e, score: 0.055251 @ 1
Results @ 500000 rows, 5 cols (500000 rows consumed)
target: 3, phase: 9, #candidates 256
rank:   1, correct  : 0x17, score: 0.065544 @ 2
rank:   2, candidate: 0x37, score: 0.065179 @ 2
rank:   3, candidate: 0x57, score: 0.065066 @ 2
rank:   4, candidate: 0x07, score: 0.064764 @ 1
rank:   5, candidate: 0x77, score: 0.064700 @ 2
Results @ 500000 rows, 5 cols (500000 rows consumed)
target: 4, phase: 9, #candidates 256
rank:   1, candidate: 0x20, score: 0.042930 @ 1
rank:   2, candidate: 0x00, score: 0.042527 @ 1
rank:   3, candidate: 0x21, score: 0.042377 @ 1
rank:   4, candidate: 0x60, score: 0.042203 @ 1
rank: 246, correct  : 0x9a, score: 0.027689 @ 5
recovered key material: 045e1720
Running "Incremental correlation" on trace range 500001:1:550000, 1 data passes, 2 sample passes
Processing traces 500001:550000 ..100%|█████████████████| Time: 0:00:02
Incremental CPA on range 1:5 produced (5, 9216) correlation matrix
Results @ 550000 rows, 5 cols (550000 rows consumed)
target: 1, phase: 9, #candidates 256
rank:   1, candidate: 0x00, score: 0.047173 @ 3
rank:   2, candidate: 0x80, score: 0.046740 @ 3
rank:   3, candidate: 0x04, score: 0.046679 @ 3
rank:   4, candidate: 0x84, score: 0.046243 @ 3
rank: 239, correct  : 0x75, score: 0.024928 @ 3
Results @ 550000 rows, 5 cols (550000 rows consumed)
target: 2, phase: 9, #candidates 256
rank:   1, correct  : 0x5e, score: 0.059622 @ 1
rank:   2, candidate: 0x5a, score: 0.058588 @ 1
rank:   3, candidate: 0x7e, score: 0.058402 @ 1
rank:   4, candidate: 0xde, score: 0.058384 @ 1
rank:   5, candidate: 0x5f, score: 0.057850 @ 1
Results @ 550000 rows, 5 cols (550000 rows consumed)
target: 3, phase: 9, #candidates 256
rank:   1, correct  : 0x17, score: 0.065228 @ 1
rank:   2, candidate: 0x07, score: 0.064876 @ 1
rank:   3, candidate: 0x37, score: 0.064866 @ 1
rank:   4, candidate: 0x57, score: 0.064839 @ 1
rank:   5, candidate: 0x27, score: 0.064514 @ 1
Results @ 550000 rows, 5 cols (550000 rows consumed)
target: 4, phase: 9, #candidates 256
rank:   1, candidate: 0x20, score: 0.042823 @ 1
rank:   2, candidate: 0x60, score: 0.042530 @ 1
rank:   3, candidate: 0x00, score: 0.042503 @ 1
rank:   4, candidate: 0x24, score: 0.042405 @ 1
rank: 249, correct  : 0x9a, score: 0.026663 @ 3
recovered key material: 005e1720
Running "Incremental correlation" on trace range 550001:1:600000, 1 data passes, 2 sample passes
Processing traces 550001:600000 ..100%|█████████████████| Time: 0:00:02
Incremental CPA on range 1:5 produced (5, 9216) correlation matrix
Results @ 600000 rows, 5 cols (600000 rows consumed)
target: 1, phase: 9, #candidates 256
rank:   1, candidate: 0x00, score: 0.044594 @ 3
rank:   2, candidate: 0x80, score: 0.043959 @ 3
rank:   3, candidate: 0x04, score: 0.043888 @ 3
rank:   4, candidate: 0x02, score: 0.043873 @ 3
rank: 242, correct  : 0x75, score: 0.022782 @ 3
Results @ 600000 rows, 5 cols (600000 rows consumed)
target: 2, phase: 9, #candidates 256
rank:   1, correct  : 0x5e, score: 0.060578 @ 1
rank:   2, candidate: 0x5a, score: 0.060237 @ 1
rank:   3, candidate: 0x7e, score: 0.059311 @ 1
rank:   4, candidate: 0xde, score: 0.059137 @ 1
rank:   5, candidate: 0x7a, score: 0.058970 @ 1
Results @ 600000 rows, 5 cols (600000 rows consumed)
target: 3, phase: 9, #candidates 256
rank:   1, correct  : 0x17, score: 0.064323 @ 1
rank:   2, candidate: 0x57, score: 0.064279 @ 1
rank:   3, candidate: 0x07, score: 0.064089 @ 1
rank:   4, candidate: 0x47, score: 0.064041 @ 1
rank:   5, candidate: 0x37, score: 0.063857 @ 1
Results @ 600000 rows, 5 cols (600000 rows consumed)
target: 4, phase: 9, #candidates 256
rank:   1, candidate: 0x20, score: 0.039965 @ 1
rank:   2, candidate: 0x60, score: 0.039831 @ 1
rank:   3, candidate: 0x21, score: 0.039753 @ 2
rank:   4, candidate: 0x24, score: 0.039665 @ 2
rank: 251, correct  : 0x9a, score: 0.024803 @ 4
recovered key material: 005e1720
Running "Incremental correlation" on trace range 600001:1:650000, 1 data passes, 2 sample passes
Processing traces 600001:650000 ..100%|█████████████████| Time: 0:00:02
Incremental CPA on range 1:5 produced (5, 9216) correlation matrix
Results @ 650000 rows, 5 cols (650000 rows consumed)
target: 1, phase: 9, #candidates 256
rank:   1, candidate: 0x00, score: 0.043416 @ 3
rank:   2, candidate: 0x80, score: 0.043232 @ 3
rank:   3, candidate: 0x04, score: 0.042602 @ 3
rank:   4, candidate: 0x84, score: 0.042415 @ 3
rank: 244, correct  : 0x75, score: 0.022854 @ 5
Results @ 650000 rows, 5 cols (650000 rows consumed)
target: 2, phase: 9, #candidates 256
rank:   1, correct  : 0x5e, score: 0.061053 @ 1
rank:   2, candidate: 0x5a, score: 0.060441 @ 1
rank:   3, candidate: 0x5c, score: 0.059748 @ 1
rank:   4, candidate: 0xde, score: 0.059654 @ 1
rank:   5, candidate: 0x7e, score: 0.059653 @ 1
Results @ 650000 rows, 5 cols (650000 rows consumed)
target: 3, phase: 9, #candidates 256
rank:   1, candidate: 0x47, score: 0.064308 @ 1
rank:   2, candidate: 0x07, score: 0.064082 @ 1
rank:   3, candidate: 0x57, score: 0.063676 @ 1
rank:   4, candidate: 0x4f, score: 0.063585 @ 1
rank:   6, correct  : 0x17, score: 0.063447 @ 1
Results @ 650000 rows, 5 cols (650000 rows consumed)
target: 4, phase: 9, #candidates 256
rank:   1, candidate: 0x60, score: 0.039926 @ 1
rank:   2, candidate: 0x64, score: 0.039820 @ 1
rank:   3, candidate: 0x20, score: 0.039801 @ 1
rank:   4, candidate: 0x24, score: 0.039694 @ 1
rank: 252, correct  : 0x9a, score: 0.024468 @ 5
recovered key material: 005e4760
Running "Incremental correlation" on trace range 650001:1:700000, 1 data passes, 2 sample passes
Processing traces 650001:700000 ..100%|█████████████████| Time: 0:00:02
Incremental CPA on range 1:5 produced (5, 9216) correlation matrix
Results @ 700000 rows, 5 cols (700000 rows consumed)
target: 1, phase: 9, #candidates 256
rank:   1, candidate: 0x04, score: 0.040888 @ 3
rank:   2, candidate: 0x84, score: 0.040847 @ 3
rank:   3, candidate: 0x00, score: 0.040821 @ 3
rank:   4, candidate: 0x80, score: 0.040782 @ 3
rank: 247, correct  : 0x75, score: 0.022128 @ 3
Results @ 700000 rows, 5 cols (700000 rows consumed)
target: 2, phase: 9, #candidates 256
rank:   1, correct  : 0x5e, score: 0.061965 @ 1
rank:   2, candidate: 0x5a, score: 0.060998 @ 1
rank:   3, candidate: 0xde, score: 0.060980 @ 1
rank:   4, candidate: 0x5c, score: 0.060649 @ 1
rank:   5, candidate: 0x7e, score: 0.060302 @ 1
Results @ 700000 rows, 5 cols (700000 rows consumed)
target: 3, phase: 9, #candidates 256
rank:   1, candidate: 0x47, score: 0.064961 @ 1
rank:   2, candidate: 0x07, score: 0.064752 @ 1
rank:   3, candidate: 0xc7, score: 0.064586 @ 1
rank:   4, candidate: 0x67, score: 0.064583 @ 1
rank:  11, correct  : 0x17, score: 0.063332 @ 1
Results @ 700000 rows, 5 cols (700000 rows consumed)
target: 4, phase: 9, #candidates 256
rank:   1, candidate: 0x20, score: 0.039761 @ 1
rank:   2, candidate: 0x60, score: 0.039694 @ 1
rank:   3, candidate: 0x21, score: 0.039049 @ 1
rank:   4, candidate: 0x61, score: 0.038983 @ 1
rank: 248, correct  : 0x9a, score: 0.024451 @ 5
recovered key material: 045e4720
Running "Incremental correlation" on trace range 700001:1:750000, 1 data passes, 2 sample passes
Processing traces 700001:750000 ..100%|█████████████████| Time: 0:00:02
Incremental CPA on range 1:5 produced (5, 9216) correlation matrix
Results @ 750000 rows, 5 cols (750000 rows consumed)
target: 1, phase: 9, #candidates 256
rank:   1, candidate: 0x04, score: 0.042843 @ 3
rank:   2, candidate: 0x00, score: 0.042517 @ 3
rank:   3, candidate: 0x84, score: 0.042460 @ 3
rank:   4, candidate: 0x80, score: 0.042135 @ 3
rank: 243, correct  : 0x75, score: 0.022571 @ 3
Results @ 750000 rows, 5 cols (750000 rows consumed)
target: 2, phase: 9, #candidates 256
rank:   1, correct  : 0x5e, score: 0.061302 @ 1
rank:   2, candidate: 0x5a, score: 0.061046 @ 1
rank:   3, candidate: 0x7e, score: 0.059820 @ 1
rank:   4, candidate: 0x5c, score: 0.059759 @ 1
rank:   5, candidate: 0xde, score: 0.059625 @ 1
Results @ 750000 rows, 5 cols (750000 rows consumed)
target: 3, phase: 9, #candidates 256
rank:   1, candidate: 0x47, score: 0.064633 @ 1
rank:   2, candidate: 0x67, score: 0.064557 @ 1
rank:   3, candidate: 0x07, score: 0.064372 @ 1
rank:   4, candidate: 0x27, score: 0.064297 @ 1
rank:  11, correct  : 0x17, score: 0.062809 @ 1
Results @ 750000 rows, 5 cols (750000 rows consumed)
target: 4, phase: 9, #candidates 256
rank:   1, candidate: 0x21, score: 0.039696 @ 1
rank:   2, candidate: 0x20, score: 0.039495 @ 1
rank:   3, candidate: 0x25, score: 0.039427 @ 1
rank:   4, candidate: 0x24, score: 0.039226 @ 1
rank: 251, correct  : 0x9a, score: 0.024160 @ 5
recovered key material: 045e4721
Running "Incremental correlation" on trace range 750001:1:800000, 1 data passes, 2 sample passes
Processing traces 750001:800000 ..100%|█████████████████| Time: 0:00:02
Incremental CPA on range 1:5 produced (5, 9216) correlation matrix
Results @ 800000 rows, 5 cols (800000 rows consumed)
target: 1, phase: 9, #candidates 256
rank:   1, candidate: 0x04, score: 0.042265 @ 3
rank:   2, candidate: 0x00, score: 0.042240 @ 3
rank:   3, candidate: 0x84, score: 0.041964 @ 3
rank:   4, candidate: 0x80, score: 0.041940 @ 3
rank: 239, correct  : 0x75, score: 0.022975 @ 3
Results @ 800000 rows, 5 cols (800000 rows consumed)
target: 2, phase: 9, #candidates 256
rank:   1, correct  : 0x5e, score: 0.060726 @ 1
rank:   2, candidate: 0x5a, score: 0.060354 @ 1
rank:   3, candidate: 0x7e, score: 0.059595 @ 1
rank:   4, candidate: 0x5c, score: 0.059437 @ 1
rank:   5, candidate: 0x7a, score: 0.059223 @ 1
Results @ 800000 rows, 5 cols (800000 rows consumed)
target: 3, phase: 9, #candidates 256
rank:   1, candidate: 0x67, score: 0.064425 @ 1
rank:   2, candidate: 0x47, score: 0.064391 @ 1
rank:   3, candidate: 0x27, score: 0.064343 @ 1
rank:   4, candidate: 0x07, score: 0.064309 @ 1
rank:  12, correct  : 0x17, score: 0.062746 @ 1
Results @ 800000 rows, 5 cols (800000 rows consumed)
target: 4, phase: 9, #candidates 256
rank:   1, candidate: 0x20, score: 0.040087 @ 1
rank:   2, candidate: 0x21, score: 0.039671 @ 1
rank:   3, candidate: 0x24, score: 0.039333 @ 1
rank:   4, candidate: 0x22, score: 0.039176 @ 1
rank: 245, correct  : 0x9a, score: 0.026073 @ 5
recovered key material: 045e6720
Running "Incremental correlation" on trace range 800001:1:850000, 1 data passes, 2 sample passes
Processing traces 800001:850000 ..100%|█████████████████| Time: 0:00:02
Incremental CPA on range 1:5 produced (5, 9216) correlation matrix
Results @ 850000 rows, 5 cols (850000 rows consumed)
target: 1, phase: 9, #candidates 256
rank:   1, candidate: 0x04, score: 0.043411 @ 3
rank:   2, candidate: 0x00, score: 0.043328 @ 3
rank:   3, candidate: 0x84, score: 0.043012 @ 1
rank:   4, candidate: 0x80, score: 0.042809 @ 3
rank: 237, correct  : 0x75, score: 0.024124 @ 3
Results @ 850000 rows, 5 cols (850000 rows consumed)
target: 2, phase: 9, #candidates 256
rank:   1, correct  : 0x5e, score: 0.060138 @ 1
rank:   2, candidate: 0x5a, score: 0.059916 @ 1
rank:   3, candidate: 0x7e, score: 0.059258 @ 1
rank:   4, candidate: 0x7a, score: 0.059034 @ 1
rank:   5, candidate: 0x5f, score: 0.058672 @ 1
Results @ 850000 rows, 5 cols (850000 rows consumed)
target: 3, phase: 9, #candidates 256
rank:   1, candidate: 0x07, score: 0.064537 @ 1
rank:   2, candidate: 0x47, score: 0.064504 @ 1
rank:   3, candidate: 0x27, score: 0.064412 @ 1
rank:   4, candidate: 0x67, score: 0.064378 @ 1
rank:   9, correct  : 0x17, score: 0.063202 @ 1
Results @ 850000 rows, 5 cols (850000 rows consumed)
target: 4, phase: 9, #candidates 256
rank:   1, candidate: 0x24, score: 0.040251 @ 2
rank:   2, candidate: 0x20, score: 0.040219 @ 1
rank:   3, candidate: 0x25, score: 0.039655 @ 2
rank:   4, candidate: 0x21, score: 0.039581 @ 2
rank: 246, correct  : 0x9a, score: 0.025363 @ 4
recovered key material: 045e0724
Running "Incremental correlation" on trace range 850001:1:900000, 1 data passes, 2 sample passes
Processing traces 850001:900000 ..100%|█████████████████| Time: 0:00:02
Incremental CPA on range 1:5 produced (5, 9216) correlation matrix
Results @ 900000 rows, 5 cols (900000 rows consumed)
target: 1, phase: 9, #candidates 256
rank:   1, candidate: 0x04, score: 0.041882 @ 3
rank:   2, candidate: 0x84, score: 0.041690 @ 1
rank:   3, candidate: 0x00, score: 0.041563 @ 3
rank:   4, candidate: 0x80, score: 0.041252 @ 3
rank: 237, correct  : 0x75, score: 0.023161 @ 3
Results @ 900000 rows, 5 cols (900000 rows consumed)
target: 2, phase: 9, #candidates 256
rank:   1, correct  : 0x5e, score: 0.060241 @ 1
rank:   2, candidate: 0x5a, score: 0.059815 @ 1
rank:   3, candidate: 0x7e, score: 0.059802 @ 1
rank:   4, candidate: 0x7a, score: 0.059374 @ 1
rank:   5, candidate: 0xde, score: 0.058944 @ 1
Results @ 900000 rows, 5 cols (900000 rows consumed)
target: 3, phase: 9, #candidates 256
rank:   1, candidate: 0x07, score: 0.063287 @ 1
rank:   2, candidate: 0x47, score: 0.063214 @ 1
rank:   3, candidate: 0x87, score: 0.063103 @ 1
rank:   4, candidate: 0x27, score: 0.063082 @ 1
rank:   9, correct  : 0x17, score: 0.062777 @ 1
Results @ 900000 rows, 5 cols (900000 rows consumed)
target: 4, phase: 9, #candidates 256
rank:   1, candidate: 0x20, score: 0.040725 @ 2
rank:   2, candidate: 0x24, score: 0.040492 @ 2
rank:   3, candidate: 0x21, score: 0.039917 @ 2
rank:   4, candidate: 0x25, score: 0.039683 @ 2
rank: 246, correct  : 0x9a, score: 0.025697 @ 4
recovered key material: 045e0720
Running "Incremental correlation" on trace range 900001:1:950000, 1 data passes, 2 sample passes
Processing traces 900001:950000 ..100%|█████████████████| Time: 0:00:02
Incremental CPA on range 1:5 produced (5, 9216) correlation matrix
Results @ 950000 rows, 5 cols (950000 rows consumed)
target: 1, phase: 9, #candidates 256
rank:   1, candidate: 0x04, score: 0.041865 @ 3
rank:   2, candidate: 0x84, score: 0.041775 @ 1
rank:   3, candidate: 0x00, score: 0.041426 @ 3
rank:   4, candidate: 0x80, score: 0.041119 @ 1
rank: 237, correct  : 0x75, score: 0.024158 @ 3
Results @ 950000 rows, 5 cols (950000 rows consumed)
target: 2, phase: 9, #candidates 256
rank:   1, candidate: 0x7e, score: 0.057428 @ 1
rank:   2, correct  : 0x5e, score: 0.057362 @ 1
rank:   3, candidate: 0x7a, score: 0.056780 @ 1
rank:   4, candidate: 0x5a, score: 0.056717 @ 1
rank:   5, candidate: 0xfe, score: 0.056550 @ 1
Results @ 950000 rows, 5 cols (950000 rows consumed)
target: 3, phase: 9, #candidates 256
rank:   1, candidate: 0xc7, score: 0.062225 @ 1
rank:   2, candidate: 0x87, score: 0.062210 @ 1
rank:   3, candidate: 0x47, score: 0.062141 @ 1
rank:   4, candidate: 0x07, score: 0.062124 @ 1
rank:  12, correct  : 0x17, score: 0.061257 @ 1
Results @ 950000 rows, 5 cols (950000 rows consumed)
target: 4, phase: 9, #candidates 256
rank:   1, candidate: 0x20, score: 0.039840 @ 1
rank:   2, candidate: 0x21, score: 0.039387 @ 1
rank:   3, candidate: 0x24, score: 0.039094 @ 1
rank:   4, candidate: 0x25, score: 0.038640 @ 1
rank: 246, correct  : 0x9a, score: 0.024174 @ 5
recovered key material: 047ec720
Running "Incremental correlation" on trace range 950001:1:1000000, 1 data passes, 2 sample passes
Processing traces 950001:1000000 ..100%|████████████████| Time: 0:00:02
Incremental CPA on range 1:5 produced (5, 9216) correlation matrix
Results @ 1000000 rows, 5 cols (1000000 rows consumed)
target: 1, phase: 9, #candidates 256
rank:   1, candidate: 0x04, score: 0.041021 @ 3
rank:   2, candidate: 0x84, score: 0.040996 @ 1
rank:   3, candidate: 0x06, score: 0.040576 @ 3
rank:   4, candidate: 0x00, score: 0.040456 @ 3
rank: 241, correct  : 0x75, score: 0.022816 @ 3
Results @ 1000000 rows, 5 cols (1000000 rows consumed)
target: 2, phase: 9, #candidates 256
rank:   1, correct  : 0x5e, score: 0.057448 @ 2
rank:   2, candidate: 0x7e, score: 0.057200 @ 1
rank:   3, candidate: 0xde, score: 0.056939 @ 2
rank:   4, candidate: 0x5a, score: 0.056805 @ 1
rank:   5, candidate: 0x7a, score: 0.056673 @ 1
Results @ 1000000 rows, 5 cols (1000000 rows consumed)
target: 3, phase: 9, #candidates 256
rank:   1, candidate: 0x67, score: 0.062563 @ 1
rank:   2, candidate: 0x27, score: 0.062559 @ 1
rank:   3, candidate: 0x47, score: 0.062522 @ 1
rank:   4, candidate: 0x07, score: 0.062517 @ 1
rank:  12, correct  : 0x17, score: 0.061663 @ 1
Results @ 1000000 rows, 5 cols (1000000 rows consumed)
target: 4, phase: 9, #candidates 256
rank:   1, candidate: 0x20, score: 0.040545 @ 1
rank:   2, candidate: 0x21, score: 0.040021 @ 1
rank:   3, candidate: 0x24, score: 0.039441 @ 1
rank:   4, candidate: 0x25, score: 0.038916 @ 1
rank: 247, correct  : 0x9a, score: 0.023711 @ 3
recovered key material: 045e6720
Running "Incremental correlation" on trace range 1000001:1:1050000, 1 data passes, 2 sample passes
Processing traces 1000001:1050000 ..100%|███████████████| Time: 0:00:02
Incremental CPA on range 1:5 produced (5, 9216) correlation matrix
Results @ 1050000 rows, 5 cols (1050000 rows consumed)
target: 1, phase: 9, #candidates 256
rank:   1, candidate: 0x04, score: 0.040518 @ 3
rank:   2, candidate: 0x84, score: 0.040080 @ 3
rank:   3, candidate: 0x06, score: 0.039865 @ 3
rank:   4, candidate: 0x0c, score: 0.039772 @ 3
rank: 241, correct  : 0x75, score: 0.022387 @ 3
Results @ 1050000 rows, 5 cols (1050000 rows consumed)
target: 2, phase: 9, #candidates 256
rank:   1, candidate: 0x5a, score: 0.057469 @ 1
rank:   2, correct  : 0x5e, score: 0.057285 @ 2
rank:   3, candidate: 0x7a, score: 0.057278 @ 1
rank:   4, candidate: 0x7e, score: 0.057067 @ 1
rank:   5, candidate: 0xde, score: 0.056744 @ 2
Results @ 1050000 rows, 5 cols (1050000 rows consumed)
target: 3, phase: 9, #candidates 256
rank:   1, candidate: 0x47, score: 0.063345 @ 1
rank:   2, candidate: 0x07, score: 0.063308 @ 1
rank:   3, candidate: 0x67, score: 0.063180 @ 1
rank:   4, candidate: 0x27, score: 0.063144 @ 1
rank:  10, correct  : 0x17, score: 0.062309 @ 1
Results @ 1050000 rows, 5 cols (1050000 rows consumed)
target: 4, phase: 9, #candidates 256
rank:   1, candidate: 0x20, score: 0.041091 @ 1
rank:   2, candidate: 0x21, score: 0.040787 @ 1
rank:   3, candidate: 0x24, score: 0.039570 @ 1
rank:   4, candidate: 0x00, score: 0.039341 @ 1
rank: 244, correct  : 0x9a, score: 0.024172 @ 3
recovered key material: 045a4720
Running "Incremental correlation" on trace range 1050001:1:1100000, 1 data passes, 2 sample passes
Processing traces 1050001:1100000 ..100%|███████████████| Time: 0:00:02
Incremental CPA on range 1:5 produced (5, 9216) correlation matrix
Results @ 1100000 rows, 5 cols (1100000 rows consumed)
target: 1, phase: 9, #candidates 256
rank:   1, candidate: 0x04, score: 0.040016 @ 3
rank:   2, candidate: 0x84, score: 0.039798 @ 1
rank:   3, candidate: 0x06, score: 0.039649 @ 3
rank:   4, candidate: 0x86, score: 0.039409 @ 3
rank: 242, correct  : 0x75, score: 0.021461 @ 3
Results @ 1100000 rows, 5 cols (1100000 rows consumed)
target: 2, phase: 9, #candidates 256
rank:   1, candidate: 0x5a, score: 0.057018 @ 1
rank:   2, candidate: 0x7a, score: 0.056928 @ 1
rank:   3, correct  : 0x5e, score: 0.056902 @ 2
rank:   4, candidate: 0xde, score: 0.056717 @ 2
rank:   5, candidate: 0x7e, score: 0.056652 @ 1
Results @ 1100000 rows, 5 cols (1100000 rows consumed)
target: 3, phase: 9, #candidates 256
rank:   1, candidate: 0x27, score: 0.064067 @ 1
rank:   2, candidate: 0x07, score: 0.063860 @ 1
rank:   3, candidate: 0x67, score: 0.063781 @ 1
rank:   4, candidate: 0x47, score: 0.063574 @ 1
rank:  10, correct  : 0x17, score: 0.062963 @ 1
Results @ 1100000 rows, 5 cols (1100000 rows consumed)
target: 4, phase: 9, #candidates 256
rank:   1, candidate: 0x21, score: 0.040154 @ 1
rank:   2, candidate: 0x20, score: 0.039991 @ 1
rank:   3, candidate: 0x01, score: 0.038550 @ 1
rank:   4, candidate: 0x25, score: 0.038460 @ 1
rank: 241, correct  : 0x9a, score: 0.023411 @ 5
recovered key material: 045a2721
Running "Incremental correlation" on trace range 1100001:1:1150000, 1 data passes, 2 sample passes
Processing traces 1100001:1150000 ..100%|███████████████| Time: 0:00:02
Incremental CPA on range 1:5 produced (5, 9216) correlation matrix
Results @ 1150000 rows, 5 cols (1150000 rows consumed)
target: 1, phase: 9, #candidates 256
rank:   1, candidate: 0x04, score: 0.039486 @ 3
rank:   2, candidate: 0x06, score: 0.039218 @ 3
rank:   3, candidate: 0x84, score: 0.039172 @ 3
rank:   4, candidate: 0x00, score: 0.039136 @ 3
rank: 245, correct  : 0x75, score: 0.020875 @ 3
Results @ 1150000 rows, 5 cols (1150000 rows consumed)
target: 2, phase: 9, #candidates 256
rank:   1, correct  : 0x5e, score: 0.057824 @ 2
rank:   2, candidate: 0xde, score: 0.057310 @ 2
rank:   3, candidate: 0x5a, score: 0.057296 @ 1
rank:   4, candidate: 0x7e, score: 0.057241 @ 1
rank:   5, candidate: 0x7a, score: 0.057051 @ 1
Results @ 1150000 rows, 5 cols (1150000 rows consumed)
target: 3, phase: 9, #candidates 256
rank:   1, candidate: 0x27, score: 0.064631 @ 1
rank:   2, candidate: 0x67, score: 0.064444 @ 1
rank:   3, candidate: 0x07, score: 0.064388 @ 1
rank:   4, candidate: 0x47, score: 0.064202 @ 1
rank:  11, correct  : 0x17, score: 0.063332 @ 1
Results @ 1150000 rows, 5 cols (1150000 rows consumed)
target: 4, phase: 9, #candidates 256
rank:   1, candidate: 0x21, score: 0.040321 @ 1
rank:   2, candidate: 0x20, score: 0.040255 @ 1
rank:   3, candidate: 0x25, score: 0.038724 @ 1
rank:   4, candidate: 0x24, score: 0.038659 @ 1
rank: 243, correct  : 0x9a, score: 0.023304 @ 5
recovered key material: 045e2721
Running "Incremental correlation" on trace range 1150001:1:1200000, 1 data passes, 2 sample passes
Processing traces 1150001:1200000 ..100%|███████████████| Time: 0:00:02
Incremental CPA on range 1:5 produced (5, 9216) correlation matrix
Results @ 1200000 rows, 5 cols (1200000 rows consumed)
target: 1, phase: 9, #candidates 256
rank:   1, candidate: 0x04, score: 0.039396 @ 3
rank:   2, candidate: 0x84, score: 0.039355 @ 3
rank:   3, candidate: 0x00, score: 0.039087 @ 3
rank:   4, candidate: 0x80, score: 0.039048 @ 3
rank: 245, correct  : 0x75, score: 0.020653 @ 3
Results @ 1200000 rows, 5 cols (1200000 rows consumed)
target: 2, phase: 9, #candidates 256
rank:   1, correct  : 0x5e, score: 0.057592 @ 2
rank:   2, candidate: 0xde, score: 0.057404 @ 2
rank:   3, candidate: 0x7e, score: 0.057076 @ 1
rank:   4, candidate: 0x5a, score: 0.056950 @ 2
rank:   5, candidate: 0xfe, score: 0.056872 @ 2
Results @ 1200000 rows, 5 cols (1200000 rows consumed)
target: 3, phase: 9, #candidates 256
rank:   1, candidate: 0x27, score: 0.064637 @ 1
rank:   2, candidate: 0x67, score: 0.064475 @ 1
rank:   3, candidate: 0x07, score: 0.064212 @ 1
rank:   4, candidate: 0x37, score: 0.064198 @ 1
rank:   9, correct  : 0x17, score: 0.063774 @ 1
Results @ 1200000 rows, 5 cols (1200000 rows consumed)
target: 4, phase: 9, #candidates 256
rank:   1, candidate: 0x21, score: 0.039991 @ 1
rank:   2, candidate: 0x20, score: 0.039670 @ 1
rank:   3, candidate: 0x23, score: 0.038897 @ 1
rank:   4, candidate: 0x25, score: 0.038607 @ 1
rank: 245, correct  : 0x9a, score: 0.023058 @ 3
recovered key material: 045e2721
Running "Incremental correlation" on trace range 1200001:1:1228800, 1 data passes, 2 sample passes
Processing traces 1200001:1228800 ..100%|███████████████| Time: 0:00:01
Incremental CPA on range 1:5 produced (5, 9216) correlation matrix
Results @ 1228800 rows, 5 cols (1228800 rows consumed)
target: 1, phase: 9, #candidates 256
rank:   1, candidate: 0x04, score: 0.039052 @ 3
rank:   2, candidate: 0x84, score: 0.038996 @ 3
rank:   3, candidate: 0x00, score: 0.038670 @ 3
rank:   4, candidate: 0x80, score: 0.038616 @ 3
rank: 245, correct  : 0x75, score: 0.020162 @ 3
Results @ 1228800 rows, 5 cols (1228800 rows consumed)
target: 2, phase: 9, #candidates 256
rank:   1, correct  : 0x5e, score: 0.057703 @ 2
rank:   2, candidate: 0xde, score: 0.057584 @ 2
rank:   3, candidate: 0x7e, score: 0.057261 @ 1
rank:   4, candidate: 0xfe, score: 0.057136 @ 2
rank:   5, candidate: 0x5a, score: 0.056844 @ 2
Results @ 1228800 rows, 5 cols (1228800 rows consumed)
target: 3, phase: 9, #candidates 256
rank:   1, candidate: 0x27, score: 0.064956 @ 1
rank:   2, candidate: 0x07, score: 0.064699 @ 1
rank:   3, candidate: 0x67, score: 0.064609 @ 1
rank:   4, candidate: 0x37, score: 0.064468 @ 1
rank:   7, correct  : 0x17, score: 0.064210 @ 1
Results @ 1228800 rows, 5 cols (1228800 rows consumed)
target: 4, phase: 9, #candidates 256
rank:   1, candidate: 0x21, score: 0.039657 @ 1
rank:   2, candidate: 0x20, score: 0.039321 @ 1
rank:   3, candidate: 0x23, score: 0.038700 @ 1
rank:   4, candidate: 0x22, score: 0.038364 @ 1
rank: 241, correct  : 0x9a, score: 0.023383 @ 3
recovered key material: 045e2721
 62.528332 seconds (108.43 M allocations: 11.623 GiB, 1.40% gc time)

Not very good results here for two targets, don't really know why.


In [17]:
plot(PlotRanksEvolution(),rankdata3,params3,legend=true)


Out[17]:
2.50×10 5 5.00×10 5 7.50×10 5 1.00×10 6 1.25×10 6 0 50 100 150 200 250 rank evolution #traces rank phase / target / final rank 9 / 1 / 245 9 / 2 / 1 9 / 3 / 7 9 / 4 / 241

DPA 4: attacking F2


In [18]:
plot(CF[:,1])


Out[18]:
0 1000 2000 3000 4000 0.000 0.005 0.010 0.015 0.020 0.025 y1

In [19]:
leakyF2samples = sortperm(CF[:,1],rev=true)[1:5]

attack = Sha1InputAttack()
analysis = IncrementalCPA()
params4 = DpaAttack(attack,analysis)
params4.knownKey = knownkeyinner
params4.phases = 10:10
params4.updateInterval = interval
params4.analysis.leakages= vcat([HW()],[Bit(x) for x in 0:7])

empty!(meta(trs).passes)
empty!(meta(trs).dataPasses)
addSamplePass(trs, alignpass)
addSamplePass(trs, x -> x[leakyF2samples])

@time rankdata4 = sca(trs, params4, 1,len)
nothing


Jlsca running in Julia version: 1.3.0, 1 processes/1 workers/2 threads per worker

DPA parameters
attack:       Sha1 input
T xor:        false
analysis:     Incremental CPA
leakages:     HW,bit0,bit1,bit2,bit3,bit4,bit5,bit6,bit7
maximization: abs global max
combination:  +
data at:      1
phases:       [10]
known key:    685d79d6007d6cb9437d9393ce6eacdefbf69a0a

phase: 10 / 14, #targets 4
phase input: 47cfa7307e012f6c755e179a

Attacking columns 1:5 out of 5 columns (run 1 out of 1)
Running "Incremental correlation" on trace range 1:1:50000, 1 data passes, 2 sample passes
Processing traces 1:50000 ..100%|███████████████████████| Time: 0:00:02
Incremental CPA on range 1:5 produced (5, 9216) correlation matrix
Results @ 50000 rows, 5 cols (50000 rows consumed)
target: 1, phase: 10, #candidates 256
rank:   1, candidate: 0x88, score: 0.241911 @ 4
rank:   2, candidate: 0x8a, score: 0.241810 @ 4
rank:   3, candidate: 0x08, score: 0.240321 @ 4
rank:   4, candidate: 0x0a, score: 0.239487 @ 4
rank:  29, correct  : 0x2e, score: 0.214063 @ 4
Results @ 50000 rows, 5 cols (50000 rows consumed)
target: 2, phase: 10, #candidates 256
rank:   1, candidate: 0xa1, score: 0.224928 @ 4
rank:   2, candidate: 0x81, score: 0.222821 @ 4
rank:   3, candidate: 0xa3, score: 0.218625 @ 4
rank:   4, candidate: 0x83, score: 0.217443 @ 4
rank: 199, correct  : 0x5b, score: 0.090083 @ 1
Results @ 50000 rows, 5 cols (50000 rows consumed)
target: 3, phase: 10, #candidates 256
rank:   1, candidate: 0xf8, score: 0.301590 @ 1
rank:   2, candidate: 0xe8, score: 0.300060 @ 1
rank:   3, candidate: 0xb8, score: 0.289776 @ 1
rank:   4, candidate: 0xa8, score: 0.287521 @ 1
rank: 236, correct  : 0x1f, score: 0.080550 @ 5
Results @ 50000 rows, 5 cols (50000 rows consumed)
target: 4, phase: 10, #candidates 256
rank:   1, candidate: 0x65, score: 0.259591 @ 5
rank:   2, candidate: 0x45, score: 0.258960 @ 5
rank:   3, candidate: 0xe5, score: 0.242160 @ 5
rank:   4, candidate: 0xc5, score: 0.241697 @ 5
rank:  21, correct  : 0x40, score: 0.215410 @ 5
recovered key material: 88a1f865
Running "Incremental correlation" on trace range 50001:1:100000, 1 data passes, 2 sample passes
Processing traces 50001:100000 ..100%|██████████████████| Time: 0:00:02
Incremental CPA on range 1:5 produced (5, 9216) correlation matrix
Results @ 100000 rows, 5 cols (100000 rows consumed)
target: 1, phase: 10, #candidates 256
rank:   1, candidate: 0x88, score: 0.240338 @ 4
rank:   2, candidate: 0x8a, score: 0.240203 @ 4
rank:   3, candidate: 0x08, score: 0.238367 @ 4
rank:   4, candidate: 0x0a, score: 0.237537 @ 4
rank:  29, correct  : 0x2e, score: 0.211658 @ 4
Results @ 100000 rows, 5 cols (100000 rows consumed)
target: 2, phase: 10, #candidates 256
rank:   1, candidate: 0xa1, score: 0.206912 @ 4
rank:   2, candidate: 0x81, score: 0.204931 @ 4
rank:   3, candidate: 0xa3, score: 0.200903 @ 4
rank:   4, candidate: 0x83, score: 0.199898 @ 4
rank: 172, correct  : 0x5b, score: 0.097172 @ 1
Results @ 100000 rows, 5 cols (100000 rows consumed)
target: 3, phase: 10, #candidates 256
rank:   1, candidate: 0xf8, score: 0.271695 @ 1
rank:   2, candidate: 0xe8, score: 0.270577 @ 1
rank:   3, candidate: 0xb8, score: 0.266572 @ 1
rank:   4, candidate: 0xa8, score: 0.264655 @ 1
rank: 233, correct  : 0x1f, score: 0.075782 @ 5
Results @ 100000 rows, 5 cols (100000 rows consumed)
target: 4, phase: 10, #candidates 256
rank:   1, candidate: 0x65, score: 0.224088 @ 5
rank:   2, candidate: 0x45, score: 0.222507 @ 5
rank:   3, candidate: 0xe5, score: 0.208449 @ 5
rank:   4, candidate: 0xc5, score: 0.206899 @ 5
rank:  23, correct  : 0x40, score: 0.183361 @ 5
recovered key material: 88a1f865
Running "Incremental correlation" on trace range 100001:1:150000, 1 data passes, 2 sample passes
Processing traces 100001:150000 ..100%|█████████████████| Time: 0:00:02
Incremental CPA on range 1:5 produced (5, 9216) correlation matrix
Results @ 150000 rows, 5 cols (150000 rows consumed)
target: 1, phase: 10, #candidates 256
rank:   1, candidate: 0x8a, score: 0.227388 @ 4
rank:   2, candidate: 0x88, score: 0.227378 @ 4
rank:   3, candidate: 0x08, score: 0.226518 @ 4
rank:   4, candidate: 0x0a, score: 0.225772 @ 4
rank:  28, correct  : 0x2e, score: 0.201048 @ 4
Results @ 150000 rows, 5 cols (150000 rows consumed)
target: 2, phase: 10, #candidates 256
rank:   1, candidate: 0xa1, score: 0.197214 @ 4
rank:   2, candidate: 0x81, score: 0.195892 @ 4
rank:   3, candidate: 0xa3, score: 0.191204 @ 4
rank:   4, candidate: 0x83, score: 0.190761 @ 4
rank: 170, correct  : 0x5b, score: 0.094208 @ 1
Results @ 150000 rows, 5 cols (150000 rows consumed)
target: 3, phase: 10, #candidates 256
rank:   1, candidate: 0xf8, score: 0.268344 @ 1
rank:   2, candidate: 0xe8, score: 0.265855 @ 1
rank:   3, candidate: 0xb8, score: 0.260194 @ 1
rank:   4, candidate: 0xa8, score: 0.257006 @ 1
rank: 235, correct  : 0x1f, score: 0.074069 @ 5
Results @ 150000 rows, 5 cols (150000 rows consumed)
target: 4, phase: 10, #candidates 256
rank:   1, candidate: 0x65, score: 0.217206 @ 5
rank:   2, candidate: 0x45, score: 0.216922 @ 5
rank:   3, candidate: 0xe5, score: 0.199784 @ 5
rank:   4, candidate: 0x55, score: 0.199635 @ 5
rank:  21, correct  : 0x40, score: 0.180227 @ 5
recovered key material: 8aa1f865
Running "Incremental correlation" on trace range 150001:1:200000, 1 data passes, 2 sample passes
Processing traces 150001:200000 ..100%|█████████████████| Time: 0:00:02
Incremental CPA on range 1:5 produced (5, 9216) correlation matrix
Results @ 200000 rows, 5 cols (200000 rows consumed)
target: 1, phase: 10, #candidates 256
rank:   1, candidate: 0x88, score: 0.219572 @ 4
rank:   2, candidate: 0x8a, score: 0.219137 @ 4
rank:   3, candidate: 0x08, score: 0.218627 @ 4
rank:   4, candidate: 0x0a, score: 0.217467 @ 4
rank:  28, correct  : 0x2e, score: 0.196055 @ 4
Results @ 200000 rows, 5 cols (200000 rows consumed)
target: 2, phase: 10, #candidates 256
rank:   1, candidate: 0xa1, score: 0.191440 @ 4
rank:   2, candidate: 0x81, score: 0.190742 @ 4
rank:   3, candidate: 0x83, score: 0.185044 @ 4
rank:   4, candidate: 0xa3, score: 0.184873 @ 4
rank: 173, correct  : 0x5b, score: 0.089562 @ 1
Results @ 200000 rows, 5 cols (200000 rows consumed)
target: 3, phase: 10, #candidates 256
rank:   1, candidate: 0xf8, score: 0.259947 @ 1
rank:   2, candidate: 0xe8, score: 0.257591 @ 1
rank:   3, candidate: 0xb8, score: 0.253260 @ 1
rank:   4, candidate: 0xa8, score: 0.250206 @ 1
rank: 232, correct  : 0x1f, score: 0.075298 @ 1
Results @ 200000 rows, 5 cols (200000 rows consumed)
target: 4, phase: 10, #candidates 256
rank:   1, candidate: 0x45, score: 0.216936 @ 5
rank:   2, candidate: 0x65, score: 0.216724 @ 5
rank:   3, candidate: 0xc5, score: 0.202066 @ 5
rank:   4, candidate: 0xe5, score: 0.201853 @ 5
rank:  23, correct  : 0x40, score: 0.178354 @ 5
recovered key material: 88a1f845
Running "Incremental correlation" on trace range 200001:1:250000, 1 data passes, 2 sample passes
Processing traces 200001:250000 ..100%|█████████████████| Time: 0:00:02
Incremental CPA on range 1:5 produced (5, 9216) correlation matrix
Results @ 250000 rows, 5 cols (250000 rows consumed)
target: 1, phase: 10, #candidates 256
rank:   1, candidate: 0x88, score: 0.222117 @ 4
rank:   2, candidate: 0x8a, score: 0.221633 @ 4
rank:   3, candidate: 0x08, score: 0.220494 @ 4
rank:   4, candidate: 0x0a, score: 0.219317 @ 4
rank:  29, correct  : 0x2e, score: 0.195879 @ 4
Results @ 250000 rows, 5 cols (250000 rows consumed)
target: 2, phase: 10, #candidates 256
rank:   1, candidate: 0xa1, score: 0.189472 @ 4
rank:   2, candidate: 0x81, score: 0.188079 @ 4
rank:   3, candidate: 0xa3, score: 0.182762 @ 4
rank:   4, candidate: 0x83, score: 0.182248 @ 4
rank: 174, correct  : 0x5b, score: 0.087737 @ 1
Results @ 250000 rows, 5 cols (250000 rows consumed)
target: 3, phase: 10, #candidates 256
rank:   1, candidate: 0xf8, score: 0.255595 @ 1
rank:   2, candidate: 0xe8, score: 0.253962 @ 1
rank:   3, candidate: 0xb8, score: 0.248607 @ 1
rank:   4, candidate: 0xa8, score: 0.246314 @ 1
rank: 229, correct  : 0x1f, score: 0.075353 @ 1
Results @ 250000 rows, 5 cols (250000 rows consumed)
target: 4, phase: 10, #candidates 256
rank:   1, candidate: 0x65, score: 0.217351 @ 5
rank:   2, candidate: 0x45, score: 0.216576 @ 5
rank:   3, candidate: 0xe5, score: 0.201889 @ 5
rank:   4, candidate: 0xc5, score: 0.201087 @ 5
rank:  24, correct  : 0x40, score: 0.176653 @ 5
recovered key material: 88a1f865
Running "Incremental correlation" on trace range 250001:1:300000, 1 data passes, 2 sample passes
Processing traces 250001:300000 ..100%|█████████████████| Time: 0:00:02
Incremental CPA on range 1:5 produced (5, 9216) correlation matrix
Results @ 300000 rows, 5 cols (300000 rows consumed)
target: 1, phase: 10, #candidates 256
rank:   1, candidate: 0x88, score: 0.226435 @ 4
rank:   2, candidate: 0x08, score: 0.225463 @ 4
rank:   3, candidate: 0x8a, score: 0.225388 @ 4
rank:   4, candidate: 0x0a, score: 0.223725 @ 4
rank:  28, correct  : 0x2e, score: 0.199082 @ 4
Results @ 300000 rows, 5 cols (300000 rows consumed)
target: 2, phase: 10, #candidates 256
rank:   1, candidate: 0xa1, score: 0.193714 @ 4
rank:   2, candidate: 0x81, score: 0.192669 @ 4
rank:   3, candidate: 0xa3, score: 0.186592 @ 4
rank:   4, candidate: 0x83, score: 0.186446 @ 4
rank: 180, correct  : 0x5b, score: 0.088028 @ 1
Results @ 300000 rows, 5 cols (300000 rows consumed)
target: 3, phase: 10, #candidates 256
rank:   1, candidate: 0xf8, score: 0.255670 @ 1
rank:   2, candidate: 0xe8, score: 0.254787 @ 1
rank:   3, candidate: 0xb8, score: 0.249476 @ 1
rank:   4, candidate: 0xa8, score: 0.247905 @ 1
rank: 232, correct  : 0x1f, score: 0.075284 @ 1
Results @ 300000 rows, 5 cols (300000 rows consumed)
target: 4, phase: 10, #candidates 256
rank:   1, candidate: 0x65, score: 0.217584 @ 5
rank:   2, candidate: 0x45, score: 0.217002 @ 5
rank:   3, candidate: 0xe5, score: 0.203583 @ 5
rank:   4, candidate: 0xc5, score: 0.203024 @ 5
rank:  26, correct  : 0x40, score: 0.176726 @ 5
recovered key material: 88a1f865
Running "Incremental correlation" on trace range 300001:1:350000, 1 data passes, 2 sample passes
Processing traces 300001:350000 ..100%|█████████████████| Time: 0:00:02
Incremental CPA on range 1:5 produced (5, 9216) correlation matrix
Results @ 350000 rows, 5 cols (350000 rows consumed)
target: 1, phase: 10, #candidates 256
rank:   1, candidate: 0x88, score: 0.230856 @ 4
rank:   2, candidate: 0x08, score: 0.229967 @ 4
rank:   3, candidate: 0x8a, score: 0.229357 @ 4
rank:   4, candidate: 0x0a, score: 0.227763 @ 4
rank:  28, correct  : 0x2e, score: 0.202451 @ 4
Results @ 350000 rows, 5 cols (350000 rows consumed)
target: 2, phase: 10, #candidates 256
rank:   1, candidate: 0xa1, score: 0.191815 @ 4
rank:   2, candidate: 0x81, score: 0.191482 @ 4
rank:   3, candidate: 0x83, score: 0.184720 @ 4
rank:   4, candidate: 0xa3, score: 0.184142 @ 4
rank: 180, correct  : 0x5b, score: 0.086822 @ 1
Results @ 350000 rows, 5 cols (350000 rows consumed)
target: 3, phase: 10, #candidates 256
rank:   1, candidate: 0xf8, score: 0.259707 @ 1
rank:   2, candidate: 0xe8, score: 0.258712 @ 1
rank:   3, candidate: 0xb8, score: 0.252443 @ 1
rank:   4, candidate: 0xa8, score: 0.250785 @ 1
rank: 232, correct  : 0x1f, score: 0.075270 @ 1
Results @ 350000 rows, 5 cols (350000 rows consumed)
target: 4, phase: 10, #candidates 256
rank:   1, candidate: 0x45, score: 0.223165 @ 5
rank:   2, candidate: 0x65, score: 0.222650 @ 5
rank:   3, candidate: 0xc5, score: 0.207386 @ 5
rank:   4, candidate: 0xe5, score: 0.206869 @ 5
rank:  23, correct  : 0x40, score: 0.183170 @ 5
recovered key material: 88a1f845
Running "Incremental correlation" on trace range 350001:1:400000, 1 data passes, 2 sample passes
Processing traces 350001:400000 ..100%|█████████████████| Time: 0:00:02
Incremental CPA on range 1:5 produced (5, 9216) correlation matrix
Results @ 400000 rows, 5 cols (400000 rows consumed)
target: 1, phase: 10, #candidates 256
rank:   1, candidate: 0x88, score: 0.233874 @ 4
rank:   2, candidate: 0x08, score: 0.232813 @ 4
rank:   3, candidate: 0x8a, score: 0.232404 @ 4
rank:   4, candidate: 0x0a, score: 0.230629 @ 4
rank:  28, correct  : 0x2e, score: 0.206198 @ 4
Results @ 400000 rows, 5 cols (400000 rows consumed)
target: 2, phase: 10, #candidates 256
rank:   1, candidate: 0xa1, score: 0.194771 @ 4
rank:   2, candidate: 0x81, score: 0.194584 @ 4
rank:   3, candidate: 0x83, score: 0.188470 @ 4
rank:   4, candidate: 0xa3, score: 0.187751 @ 4
rank: 181, correct  : 0x5b, score: 0.086170 @ 1
Results @ 400000 rows, 5 cols (400000 rows consumed)
target: 3, phase: 10, #candidates 256
rank:   1, candidate: 0xf8, score: 0.263130 @ 1
rank:   2, candidate: 0xe8, score: 0.261874 @ 1
rank:   3, candidate: 0xb8, score: 0.255771 @ 1
rank:   4, candidate: 0xa8, score: 0.253814 @ 1
rank: 233, correct  : 0x1f, score: 0.076434 @ 1
Results @ 400000 rows, 5 cols (400000 rows consumed)
target: 4, phase: 10, #candidates 256
rank:   1, candidate: 0x45, score: 0.227447 @ 5
rank:   2, candidate: 0x65, score: 0.226804 @ 5
rank:   3, candidate: 0xc5, score: 0.211550 @ 5
rank:   4, candidate: 0xe5, score: 0.210887 @ 5
rank:  23, correct  : 0x40, score: 0.186626 @ 5
recovered key material: 88a1f845
Running "Incremental correlation" on trace range 400001:1:450000, 1 data passes, 2 sample passes
Processing traces 400001:450000 ..100%|█████████████████| Time: 0:00:02
Incremental CPA on range 1:5 produced (5, 9216) correlation matrix
Results @ 450000 rows, 5 cols (450000 rows consumed)
target: 1, phase: 10, #candidates 256
rank:   1, candidate: 0x88, score: 0.234169 @ 4
rank:   2, candidate: 0x08, score: 0.233693 @ 4
rank:   3, candidate: 0x8a, score: 0.232980 @ 4
rank:   4, candidate: 0x0a, score: 0.231806 @ 4
rank:  28, correct  : 0x2e, score: 0.207757 @ 4
Results @ 450000 rows, 5 cols (450000 rows consumed)
target: 2, phase: 10, #candidates 256
rank:   1, candidate: 0x81, score: 0.191686 @ 4
rank:   2, candidate: 0xa1, score: 0.191543 @ 4
rank:   3, candidate: 0x83, score: 0.185616 @ 4
rank:   4, candidate: 0xa3, score: 0.184578 @ 4
rank: 180, correct  : 0x5b, score: 0.086513 @ 1
Results @ 450000 rows, 5 cols (450000 rows consumed)
target: 3, phase: 10, #candidates 256
rank:   1, candidate: 0xf8, score: 0.262724 @ 1
rank:   2, candidate: 0xe8, score: 0.262113 @ 1
rank:   3, candidate: 0xb8, score: 0.254888 @ 1
rank:   4, candidate: 0xa8, score: 0.253607 @ 1
rank: 234, correct  : 0x1f, score: 0.075044 @ 1
Results @ 450000 rows, 5 cols (450000 rows consumed)
target: 4, phase: 10, #candidates 256
rank:   1, candidate: 0x45, score: 0.227730 @ 5
rank:   2, candidate: 0x65, score: 0.226929 @ 5
rank:   3, candidate: 0xc5, score: 0.211912 @ 5
rank:   4, candidate: 0xe5, score: 0.211098 @ 5
rank:  23, correct  : 0x40, score: 0.187491 @ 5
recovered key material: 8881f845
Running "Incremental correlation" on trace range 450001:1:500000, 1 data passes, 2 sample passes
Processing traces 450001:500000 ..100%|█████████████████| Time: 0:00:02
Incremental CPA on range 1:5 produced (5, 9216) correlation matrix
Results @ 500000 rows, 5 cols (500000 rows consumed)
target: 1, phase: 10, #candidates 256
rank:   1, candidate: 0x88, score: 0.232643 @ 4
rank:   2, candidate: 0x08, score: 0.231880 @ 4
rank:   3, candidate: 0x8a, score: 0.231246 @ 4
rank:   4, candidate: 0x0a, score: 0.229768 @ 4
rank:  26, correct  : 0x2e, score: 0.205744 @ 4
Results @ 500000 rows, 5 cols (500000 rows consumed)
target: 2, phase: 10, #candidates 256
rank:   1, candidate: 0x81, score: 0.188349 @ 4
rank:   2, candidate: 0xa1, score: 0.188223 @ 4
rank:   3, candidate: 0x83, score: 0.182485 @ 4
rank:   4, candidate: 0xa3, score: 0.181505 @ 4
rank: 181, correct  : 0x5b, score: 0.085013 @ 1
Results @ 500000 rows, 5 cols (500000 rows consumed)
target: 3, phase: 10, #candidates 256
rank:   1, candidate: 0xf8, score: 0.260510 @ 1
rank:   2, candidate: 0xe8, score: 0.259931 @ 1
rank:   3, candidate: 0xb8, score: 0.252958 @ 1
rank:   4, candidate: 0xa8, score: 0.251695 @ 1
rank: 234, correct  : 0x1f, score: 0.073982 @ 1
Results @ 500000 rows, 5 cols (500000 rows consumed)
target: 4, phase: 10, #candidates 256
rank:   1, candidate: 0x45, score: 0.223411 @ 5
rank:   2, candidate: 0x65, score: 0.222824 @ 5
rank:   3, candidate: 0xc5, score: 0.208353 @ 5
rank:   4, candidate: 0xe5, score: 0.207739 @ 5
rank:  22, correct  : 0x40, score: 0.183912 @ 5
recovered key material: 8881f845
Running "Incremental correlation" on trace range 500001:1:550000, 1 data passes, 2 sample passes
Processing traces 500001:550000 ..100%|█████████████████| Time: 0:00:02
Incremental CPA on range 1:5 produced (5, 9216) correlation matrix
Results @ 550000 rows, 5 cols (550000 rows consumed)
target: 1, phase: 10, #candidates 256
rank:   1, candidate: 0x88, score: 0.230196 @ 4
rank:   2, candidate: 0x08, score: 0.229896 @ 4
rank:   3, candidate: 0x8a, score: 0.228951 @ 4
rank:   4, candidate: 0x0a, score: 0.227951 @ 4
rank:  25, correct  : 0x2e, score: 0.203658 @ 4
Results @ 550000 rows, 5 cols (550000 rows consumed)
target: 2, phase: 10, #candidates 256
rank:   1, candidate: 0x81, score: 0.185362 @ 4
rank:   2, candidate: 0xa1, score: 0.185156 @ 4
rank:   3, candidate: 0x83, score: 0.179621 @ 4
rank:   4, candidate: 0xa3, score: 0.178589 @ 4
rank: 180, correct  : 0x5b, score: 0.083669 @ 1
Results @ 550000 rows, 5 cols (550000 rows consumed)
target: 3, phase: 10, #candidates 256
rank:   1, candidate: 0xf8, score: 0.257883 @ 1
rank:   2, candidate: 0xe8, score: 0.257654 @ 1
rank:   3, candidate: 0xb8, score: 0.250337 @ 1
rank:   4, candidate: 0xa8, score: 0.249448 @ 1
rank: 233, correct  : 0x1f, score: 0.074775 @ 1
Results @ 550000 rows, 5 cols (550000 rows consumed)
target: 4, phase: 10, #candidates 256
rank:   1, candidate: 0x45, score: 0.219552 @ 5
rank:   2, candidate: 0x65, score: 0.218994 @ 5
rank:   3, candidate: 0xc5, score: 0.205529 @ 5
rank:   4, candidate: 0xe5, score: 0.204917 @ 5
rank:  22, correct  : 0x40, score: 0.180928 @ 5
recovered key material: 8881f845
Running "Incremental correlation" on trace range 550001:1:600000, 1 data passes, 2 sample passes
Processing traces 550001:600000 ..100%|█████████████████| Time: 0:00:02
Incremental CPA on range 1:5 produced (5, 9216) correlation matrix
Results @ 600000 rows, 5 cols (600000 rows consumed)
target: 1, phase: 10, #candidates 256
rank:   1, candidate: 0x88, score: 0.231338 @ 4
rank:   2, candidate: 0x08, score: 0.231081 @ 4
rank:   3, candidate: 0x8a, score: 0.230136 @ 4
rank:   4, candidate: 0x0a, score: 0.229167 @ 4
rank:  25, correct  : 0x2e, score: 0.205204 @ 4
Results @ 600000 rows, 5 cols (600000 rows consumed)
target: 2, phase: 10, #candidates 256
rank:   1, candidate: 0x81, score: 0.183960 @ 4
rank:   2, candidate: 0xa1, score: 0.183686 @ 4
rank:   3, candidate: 0x83, score: 0.178358 @ 4
rank:   4, candidate: 0xa3, score: 0.177283 @ 4
rank: 179, correct  : 0x5b, score: 0.083654 @ 1
Results @ 600000 rows, 5 cols (600000 rows consumed)
target: 3, phase: 10, #candidates 256
rank:   1, candidate: 0xe8, score: 0.257312 @ 1
rank:   2, candidate: 0xf8, score: 0.257305 @ 1
rank:   3, candidate: 0xb8, score: 0.250235 @ 1
rank:   4, candidate: 0xa8, score: 0.249572 @ 1
rank: 234, correct  : 0x1f, score: 0.074259 @ 1
Results @ 600000 rows, 5 cols (600000 rows consumed)
target: 4, phase: 10, #candidates 256
rank:   1, candidate: 0x45, score: 0.216966 @ 5
rank:   2, candidate: 0x65, score: 0.216412 @ 5
rank:   3, candidate: 0xc5, score: 0.202346 @ 5
rank:   4, candidate: 0xe5, score: 0.201752 @ 5
rank:  22, correct  : 0x40, score: 0.179044 @ 5
recovered key material: 8881e845
Running "Incremental correlation" on trace range 600001:1:650000, 1 data passes, 2 sample passes
Processing traces 600001:650000 ..100%|█████████████████| Time: 0:00:02
Incremental CPA on range 1:5 produced (5, 9216) correlation matrix
Results @ 650000 rows, 5 cols (650000 rows consumed)
target: 1, phase: 10, #candidates 256
rank:   1, candidate: 0x88, score: 0.230714 @ 4
rank:   2, candidate: 0x08, score: 0.229811 @ 4
rank:   3, candidate: 0x8a, score: 0.229501 @ 4
rank:   4, candidate: 0x0a, score: 0.227921 @ 4
rank:  25, correct  : 0x2e, score: 0.203856 @ 4
Results @ 650000 rows, 5 cols (650000 rows consumed)
target: 2, phase: 10, #candidates 256
rank:   1, candidate: 0xa1, score: 0.183911 @ 4
rank:   2, candidate: 0x81, score: 0.183881 @ 4
rank:   3, candidate: 0x83, score: 0.178384 @ 4
rank:   4, candidate: 0xa3, score: 0.177603 @ 4
rank: 179, correct  : 0x5b, score: 0.083192 @ 1
Results @ 650000 rows, 5 cols (650000 rows consumed)
target: 3, phase: 10, #candidates 256
rank:   1, candidate: 0xf8, score: 0.254390 @ 1
rank:   2, candidate: 0xe8, score: 0.253986 @ 1
rank:   3, candidate: 0xb8, score: 0.247565 @ 1
rank:   4, candidate: 0xa8, score: 0.246501 @ 1
rank: 234, correct  : 0x1f, score: 0.073055 @ 1
Results @ 650000 rows, 5 cols (650000 rows consumed)
target: 4, phase: 10, #candidates 256
rank:   1, candidate: 0x45, score: 0.215776 @ 5
rank:   2, candidate: 0x65, score: 0.215333 @ 5
rank:   3, candidate: 0xc5, score: 0.201436 @ 5
rank:   4, candidate: 0xe5, score: 0.200941 @ 5
rank:  22, correct  : 0x40, score: 0.178284 @ 5
recovered key material: 88a1f845
Running "Incremental correlation" on trace range 650001:1:700000, 1 data passes, 2 sample passes
Processing traces 650001:700000 ..100%|█████████████████| Time: 0:00:02
Incremental CPA on range 1:5 produced (5, 9216) correlation matrix
Results @ 700000 rows, 5 cols (700000 rows consumed)
target: 1, phase: 10, #candidates 256
rank:   1, candidate: 0x88, score: 0.228909 @ 4
rank:   2, candidate: 0x08, score: 0.227872 @ 4
rank:   3, candidate: 0x8a, score: 0.227497 @ 4
rank:   4, candidate: 0x0a, score: 0.225804 @ 4
rank:  25, correct  : 0x2e, score: 0.202749 @ 4
Results @ 700000 rows, 5 cols (700000 rows consumed)
target: 2, phase: 10, #candidates 256
rank:   1, candidate: 0x81, score: 0.183364 @ 4
rank:   2, candidate: 0xa1, score: 0.182938 @ 4
rank:   3, candidate: 0x83, score: 0.177893 @ 4
rank:   4, candidate: 0xa3, score: 0.176673 @ 4
rank: 177, correct  : 0x5b, score: 0.083505 @ 1
Results @ 700000 rows, 5 cols (700000 rows consumed)
target: 3, phase: 10, #candidates 256
rank:   1, candidate: 0xf8, score: 0.253536 @ 1
rank:   2, candidate: 0xe8, score: 0.253386 @ 1
rank:   3, candidate: 0xb8, score: 0.246563 @ 1
rank:   4, candidate: 0xa8, score: 0.245754 @ 1
rank: 234, correct  : 0x1f, score: 0.073390 @ 1
Results @ 700000 rows, 5 cols (700000 rows consumed)
target: 4, phase: 10, #candidates 256
rank:   1, candidate: 0x45, score: 0.214432 @ 5
rank:   2, candidate: 0x65, score: 0.213995 @ 5
rank:   3, candidate: 0xc5, score: 0.200060 @ 5
rank:   4, candidate: 0xe5, score: 0.199576 @ 5
rank:  22, correct  : 0x40, score: 0.176651 @ 5
recovered key material: 8881f845
Running "Incremental correlation" on trace range 700001:1:750000, 1 data passes, 2 sample passes
Processing traces 700001:750000 ..100%|█████████████████| Time: 0:00:02
Incremental CPA on range 1:5 produced (5, 9216) correlation matrix
Results @ 750000 rows, 5 cols (750000 rows consumed)
target: 1, phase: 10, #candidates 256
rank:   1, candidate: 0x88, score: 0.229437 @ 4
rank:   2, candidate: 0x8a, score: 0.228015 @ 4
rank:   3, candidate: 0x08, score: 0.227983 @ 4
rank:   4, candidate: 0x0a, score: 0.225917 @ 4
rank:  26, correct  : 0x2e, score: 0.202599 @ 4
Results @ 750000 rows, 5 cols (750000 rows consumed)
target: 2, phase: 10, #candidates 256
rank:   1, candidate: 0x81, score: 0.183665 @ 4
rank:   2, candidate: 0xa1, score: 0.183460 @ 4
rank:   3, candidate: 0x83, score: 0.178205 @ 4
rank:   4, candidate: 0xa3, score: 0.177198 @ 4
rank: 177, correct  : 0x5b, score: 0.083606 @ 1
Results @ 750000 rows, 5 cols (750000 rows consumed)
target: 3, phase: 10, #candidates 256
rank:   1, candidate: 0xf8, score: 0.252729 @ 1
rank:   2, candidate: 0xe8, score: 0.252629 @ 1
rank:   3, candidate: 0xb8, score: 0.245723 @ 1
rank:   4, candidate: 0xa8, score: 0.244961 @ 1
rank: 234, correct  : 0x1f, score: 0.072679 @ 1
Results @ 750000 rows, 5 cols (750000 rows consumed)
target: 4, phase: 10, #candidates 256
rank:   1, candidate: 0x45, score: 0.214506 @ 5
rank:   2, candidate: 0x65, score: 0.213910 @ 5
rank:   3, candidate: 0xc5, score: 0.199697 @ 5
rank:   4, candidate: 0xe5, score: 0.199069 @ 5
rank:  22, correct  : 0x40, score: 0.177338 @ 5
recovered key material: 8881f845
Running "Incremental correlation" on trace range 750001:1:800000, 1 data passes, 2 sample passes
Processing traces 750001:800000 ..100%|█████████████████| Time: 0:00:02
Incremental CPA on range 1:5 produced (5, 9216) correlation matrix
Results @ 800000 rows, 5 cols (800000 rows consumed)
target: 1, phase: 10, #candidates 256
rank:   1, candidate: 0x88, score: 0.230151 @ 4
rank:   2, candidate: 0x8a, score: 0.228728 @ 4
rank:   3, candidate: 0x08, score: 0.228148 @ 4
rank:   4, candidate: 0x0a, score: 0.226080 @ 4
rank:  27, correct  : 0x2e, score: 0.202758 @ 4
Results @ 800000 rows, 5 cols (800000 rows consumed)
target: 2, phase: 10, #candidates 256
rank:   1, candidate: 0xa1, score: 0.183090 @ 4
rank:   2, candidate: 0x81, score: 0.183030 @ 4
rank:   3, candidate: 0x83, score: 0.177393 @ 4
rank:   4, candidate: 0xa3, score: 0.176642 @ 4
rank: 178, correct  : 0x5b, score: 0.083096 @ 1
Results @ 800000 rows, 5 cols (800000 rows consumed)
target: 3, phase: 10, #candidates 256
rank:   1, candidate: 0xf8, score: 0.253682 @ 1
rank:   2, candidate: 0xe8, score: 0.253147 @ 1
rank:   3, candidate: 0xb8, score: 0.246431 @ 1
rank:   4, candidate: 0xa8, score: 0.245236 @ 1
rank: 234, correct  : 0x1f, score: 0.072296 @ 1
Results @ 800000 rows, 5 cols (800000 rows consumed)
target: 4, phase: 10, #candidates 256
rank:   1, candidate: 0x45, score: 0.213959 @ 5
rank:   2, candidate: 0x65, score: 0.213545 @ 5
rank:   3, candidate: 0xc5, score: 0.198985 @ 5
rank:   4, candidate: 0xe5, score: 0.198542 @ 5
rank:  22, correct  : 0x40, score: 0.176792 @ 5
recovered key material: 88a1f845
Running "Incremental correlation" on trace range 800001:1:850000, 1 data passes, 2 sample passes
Processing traces 800001:850000 ..100%|█████████████████| Time: 0:00:03
Incremental CPA on range 1:5 produced (5, 9216) correlation matrix
Results @ 850000 rows, 5 cols (850000 rows consumed)
target: 1, phase: 10, #candidates 256
rank:   1, candidate: 0x88, score: 0.231538 @ 4
rank:   2, candidate: 0x8a, score: 0.230199 @ 4
rank:   3, candidate: 0x08, score: 0.229515 @ 4
rank:   4, candidate: 0x0a, score: 0.227535 @ 4
rank:  27, correct  : 0x2e, score: 0.203393 @ 4
Results @ 850000 rows, 5 cols (850000 rows consumed)
target: 2, phase: 10, #candidates 256
rank:   1, candidate: 0x81, score: 0.183312 @ 4
rank:   2, candidate: 0xa1, score: 0.183259 @ 4
rank:   3, candidate: 0x83, score: 0.177563 @ 4
rank:   4, candidate: 0xa3, score: 0.176699 @ 4
rank: 177, correct  : 0x5b, score: 0.082886 @ 1
Results @ 850000 rows, 5 cols (850000 rows consumed)
target: 3, phase: 10, #candidates 256
rank:   1, candidate: 0xf8, score: 0.254535 @ 1
rank:   2, candidate: 0xe8, score: 0.253673 @ 1
rank:   3, candidate: 0xb8, score: 0.247069 @ 1
rank:   4, candidate: 0xa8, score: 0.245544 @ 1
rank: 234, correct  : 0x1f, score: 0.072692 @ 1
Results @ 850000 rows, 5 cols (850000 rows consumed)
target: 4, phase: 10, #candidates 256
rank:   1, candidate: 0x45, score: 0.213959 @ 5
rank:   2, candidate: 0x65, score: 0.213737 @ 5
rank:   3, candidate: 0xc5, score: 0.199681 @ 5
rank:   4, candidate: 0xe5, score: 0.199408 @ 5
rank:  24, correct  : 0x40, score: 0.176279 @ 5
recovered key material: 8881f845
Running "Incremental correlation" on trace range 850001:1:900000, 1 data passes, 2 sample passes
Processing traces 850001:900000 ..100%|█████████████████| Time: 0:00:02
Incremental CPA on range 1:5 produced (5, 9216) correlation matrix
Results @ 900000 rows, 5 cols (900000 rows consumed)
target: 1, phase: 10, #candidates 256
rank:   1, candidate: 0x88, score: 0.232548 @ 4
rank:   2, candidate: 0x8a, score: 0.231248 @ 4
rank:   3, candidate: 0x08, score: 0.230817 @ 4
rank:   4, candidate: 0x0a, score: 0.228861 @ 4
rank:  27, correct  : 0x2e, score: 0.204450 @ 4
Results @ 900000 rows, 5 cols (900000 rows consumed)
target: 2, phase: 10, #candidates 256
rank:   1, candidate: 0x81, score: 0.183798 @ 4
rank:   2, candidate: 0xa1, score: 0.183789 @ 4
rank:   3, candidate: 0x83, score: 0.178126 @ 4
rank:   4, candidate: 0xa3, score: 0.177302 @ 4
rank: 177, correct  : 0x5b, score: 0.082959 @ 1
Results @ 900000 rows, 5 cols (900000 rows consumed)
target: 3, phase: 10, #candidates 256
rank:   1, candidate: 0xf8, score: 0.255336 @ 1
rank:   2, candidate: 0xe8, score: 0.254142 @ 1
rank:   3, candidate: 0xb8, score: 0.247667 @ 1
rank:   4, candidate: 0xa8, score: 0.245816 @ 1
rank: 234, correct  : 0x1f, score: 0.072635 @ 1
Results @ 900000 rows, 5 cols (900000 rows consumed)
target: 4, phase: 10, #candidates 256
rank:   1, candidate: 0x45, score: 0.215385 @ 5
rank:   2, candidate: 0x65, score: 0.215154 @ 5
rank:   3, candidate: 0xc5, score: 0.201579 @ 5
rank:   4, candidate: 0xe5, score: 0.201286 @ 5
rank:  25, correct  : 0x40, score: 0.177248 @ 5
recovered key material: 8881f845
Running "Incremental correlation" on trace range 900001:1:950000, 1 data passes, 2 sample passes
Processing traces 900001:950000 ..100%|█████████████████| Time: 0:00:02
Incremental CPA on range 1:5 produced (5, 9216) correlation matrix
Results @ 950000 rows, 5 cols (950000 rows consumed)
target: 1, phase: 10, #candidates 256
rank:   1, candidate: 0x88, score: 0.233231 @ 4
rank:   2, candidate: 0x8a, score: 0.231906 @ 4
rank:   3, candidate: 0x08, score: 0.231035 @ 4
rank:   4, candidate: 0x0a, score: 0.229068 @ 4
rank:  27, correct  : 0x2e, score: 0.204814 @ 4
Results @ 950000 rows, 5 cols (950000 rows consumed)
target: 2, phase: 10, #candidates 256
rank:   1, candidate: 0x81, score: 0.183982 @ 4
rank:   2, candidate: 0xa1, score: 0.183922 @ 4
rank:   3, candidate: 0x83, score: 0.178351 @ 4
rank:   4, candidate: 0xa3, score: 0.177473 @ 4
rank: 179, correct  : 0x5b, score: 0.082419 @ 1
Results @ 950000 rows, 5 cols (950000 rows consumed)
target: 3, phase: 10, #candidates 256
rank:   1, candidate: 0xf8, score: 0.253704 @ 1
rank:   2, candidate: 0xe8, score: 0.252855 @ 1
rank:   3, candidate: 0xb8, score: 0.246030 @ 1
rank:   4, candidate: 0xa8, score: 0.244539 @ 1
rank: 234, correct  : 0x1f, score: 0.072025 @ 1
Results @ 950000 rows, 5 cols (950000 rows consumed)
target: 4, phase: 10, #candidates 256
rank:   1, candidate: 0x45, score: 0.215556 @ 5
rank:   2, candidate: 0x65, score: 0.215447 @ 5
rank:   3, candidate: 0xc5, score: 0.202295 @ 5
rank:   4, candidate: 0xe5, score: 0.202108 @ 5
rank:  25, correct  : 0x40, score: 0.177351 @ 5
recovered key material: 8881f845
Running "Incremental correlation" on trace range 950001:1:1000000, 1 data passes, 2 sample passes
Processing traces 950001:1000000 ..100%|████████████████| Time: 0:00:02
Incremental CPA on range 1:5 produced (5, 9216) correlation matrix
Results @ 1000000 rows, 5 cols (1000000 rows consumed)
target: 1, phase: 10, #candidates 256
rank:   1, candidate: 0x88, score: 0.234447 @ 4
rank:   2, candidate: 0x8a, score: 0.232983 @ 4
rank:   3, candidate: 0x08, score: 0.232207 @ 4
rank:   4, candidate: 0x0a, score: 0.230104 @ 4
rank:  27, correct  : 0x2e, score: 0.205637 @ 4
Results @ 1000000 rows, 5 cols (1000000 rows consumed)
target: 2, phase: 10, #candidates 256
rank:   1, candidate: 0x81, score: 0.184781 @ 4
rank:   2, candidate: 0xa1, score: 0.184513 @ 4
rank:   3, candidate: 0x83, score: 0.179017 @ 4
rank:   4, candidate: 0xa3, score: 0.177930 @ 4
rank: 181, correct  : 0x5b, score: 0.082053 @ 1
Results @ 1000000 rows, 5 cols (1000000 rows consumed)
target: 3, phase: 10, #candidates 256
rank:   1, candidate: 0xf8, score: 0.253788 @ 1
rank:   2, candidate: 0xe8, score: 0.252647 @ 1
rank:   3, candidate: 0xb8, score: 0.245930 @ 1
rank:   4, candidate: 0xa8, score: 0.244148 @ 1
rank: 234, correct  : 0x1f, score: 0.071583 @ 1
Results @ 1000000 rows, 5 cols (1000000 rows consumed)
target: 4, phase: 10, #candidates 256
rank:   1, candidate: 0x45, score: 0.216685 @ 5
rank:   2, candidate: 0x65, score: 0.216444 @ 5
rank:   3, candidate: 0xc5, score: 0.203301 @ 5
rank:   4, candidate: 0xe5, score: 0.202985 @ 5
rank:  25, correct  : 0x40, score: 0.178326 @ 5
recovered key material: 8881f845
Running "Incremental correlation" on trace range 1000001:1:1050000, 1 data passes, 2 sample passes
Processing traces 1000001:1050000 ..100%|███████████████| Time: 0:00:02
Incremental CPA on range 1:5 produced (5, 9216) correlation matrix
Results @ 1050000 rows, 5 cols (1050000 rows consumed)
target: 1, phase: 10, #candidates 256
rank:   1, candidate: 0x88, score: 0.234856 @ 4
rank:   2, candidate: 0x8a, score: 0.233215 @ 4
rank:   3, candidate: 0x08, score: 0.232477 @ 4
rank:   4, candidate: 0x0a, score: 0.230210 @ 4
rank:  27, correct  : 0x2e, score: 0.205778 @ 4
Results @ 1050000 rows, 5 cols (1050000 rows consumed)
target: 2, phase: 10, #candidates 256
rank:   1, candidate: 0x81, score: 0.185233 @ 4
rank:   2, candidate: 0xa1, score: 0.185206 @ 4
rank:   3, candidate: 0x83, score: 0.179382 @ 4
rank:   4, candidate: 0xa3, score: 0.178522 @ 4
rank: 181, correct  : 0x5b, score: 0.082141 @ 1
Results @ 1050000 rows, 5 cols (1050000 rows consumed)
target: 3, phase: 10, #candidates 256
rank:   1, candidate: 0xf8, score: 0.253585 @ 1
rank:   2, candidate: 0xe8, score: 0.252368 @ 1
rank:   3, candidate: 0xb8, score: 0.245720 @ 1
rank:   4, candidate: 0xa8, score: 0.243857 @ 1
rank: 234, correct  : 0x1f, score: 0.071604 @ 1
Results @ 1050000 rows, 5 cols (1050000 rows consumed)
target: 4, phase: 10, #candidates 256
rank:   1, candidate: 0x45, score: 0.216622 @ 5
rank:   2, candidate: 0x65, score: 0.216377 @ 5
rank:   3, candidate: 0xc5, score: 0.203330 @ 5
rank:   4, candidate: 0xe5, score: 0.203010 @ 5
rank:  25, correct  : 0x40, score: 0.178136 @ 5
recovered key material: 8881f845
Running "Incremental correlation" on trace range 1050001:1:1100000, 1 data passes, 2 sample passes
Processing traces 1050001:1100000 ..100%|███████████████| Time: 0:00:02
Incremental CPA on range 1:5 produced (5, 9216) correlation matrix
Results @ 1100000 rows, 5 cols (1100000 rows consumed)
target: 1, phase: 10, #candidates 256
rank:   1, candidate: 0x88, score: 0.232964 @ 4
rank:   2, candidate: 0x8a, score: 0.231317 @ 4
rank:   3, candidate: 0x08, score: 0.230816 @ 4
rank:   4, candidate: 0x0a, score: 0.228543 @ 4
rank:  27, correct  : 0x2e, score: 0.204544 @ 4
Results @ 1100000 rows, 5 cols (1100000 rows consumed)
target: 2, phase: 10, #candidates 256
rank:   1, candidate: 0x81, score: 0.184821 @ 4
rank:   2, candidate: 0xa1, score: 0.184717 @ 4
rank:   3, candidate: 0x83, score: 0.178524 @ 4
rank:   4, candidate: 0xa3, score: 0.177570 @ 4
rank: 181, correct  : 0x5b, score: 0.081914 @ 1
Results @ 1100000 rows, 5 cols (1100000 rows consumed)
target: 3, phase: 10, #candidates 256
rank:   1, candidate: 0xf8, score: 0.253982 @ 1
rank:   2, candidate: 0xe8, score: 0.252652 @ 1
rank:   3, candidate: 0xb8, score: 0.246283 @ 1
rank:   4, candidate: 0xa8, score: 0.244304 @ 1
rank: 234, correct  : 0x1f, score: 0.071764 @ 1
Results @ 1100000 rows, 5 cols (1100000 rows consumed)
target: 4, phase: 10, #candidates 256
rank:   1, candidate: 0x45, score: 0.216294 @ 5
rank:   2, candidate: 0x65, score: 0.215991 @ 5
rank:   3, candidate: 0xc5, score: 0.203094 @ 5
rank:   4, candidate: 0xe5, score: 0.202718 @ 5
rank:  25, correct  : 0x40, score: 0.178301 @ 5
recovered key material: 8881f845
Running "Incremental correlation" on trace range 1100001:1:1150000, 1 data passes, 2 sample passes
Processing traces 1100001:1150000 ..100%|███████████████| Time: 0:00:03
Incremental CPA on range 1:5 produced (5, 9216) correlation matrix
Results @ 1150000 rows, 5 cols (1150000 rows consumed)
target: 1, phase: 10, #candidates 256
rank:   1, candidate: 0x88, score: 0.233429 @ 4
rank:   2, candidate: 0x8a, score: 0.231901 @ 4
rank:   3, candidate: 0x08, score: 0.230745 @ 4
rank:   4, candidate: 0x0a, score: 0.228597 @ 4
rank:  28, correct  : 0x2e, score: 0.204728 @ 4
Results @ 1150000 rows, 5 cols (1150000 rows consumed)
target: 2, phase: 10, #candidates 256
rank:   1, candidate: 0x81, score: 0.184515 @ 4
rank:   2, candidate: 0xa1, score: 0.184257 @ 4
rank:   3, candidate: 0x83, score: 0.178133 @ 4
rank:   4, candidate: 0xa3, score: 0.177024 @ 4
rank: 181, correct  : 0x5b, score: 0.081754 @ 1
Results @ 1150000 rows, 5 cols (1150000 rows consumed)
target: 3, phase: 10, #candidates 256
rank:   1, candidate: 0xf8, score: 0.252970 @ 1
rank:   2, candidate: 0xe8, score: 0.251653 @ 1
rank:   3, candidate: 0xb8, score: 0.245373 @ 1
rank:   4, candidate: 0xa8, score: 0.243398 @ 1
rank: 234, correct  : 0x1f, score: 0.071523 @ 1
Results @ 1150000 rows, 5 cols (1150000 rows consumed)
target: 4, phase: 10, #candidates 256
rank:   1, candidate: 0x45, score: 0.217029 @ 5
rank:   2, candidate: 0x65, score: 0.216877 @ 5
rank:   3, candidate: 0xc5, score: 0.203568 @ 5
rank:   4, candidate: 0xe5, score: 0.203349 @ 5
rank:  25, correct  : 0x40, score: 0.178914 @ 5
recovered key material: 8881f845
Running "Incremental correlation" on trace range 1150001:1:1200000, 1 data passes, 2 sample passes
Processing traces 1150001:1200000 ..100%|███████████████| Time: 0:00:02
Incremental CPA on range 1:5 produced (5, 9216) correlation matrix
Results @ 1200000 rows, 5 cols (1200000 rows consumed)
target: 1, phase: 10, #candidates 256
rank:   1, candidate: 0x88, score: 0.233582 @ 4
rank:   2, candidate: 0x8a, score: 0.232186 @ 4
rank:   3, candidate: 0x08, score: 0.231158 @ 4
rank:   4, candidate: 0x0a, score: 0.229139 @ 4
rank:  28, correct  : 0x2e, score: 0.205312 @ 4
Results @ 1200000 rows, 5 cols (1200000 rows consumed)
target: 2, phase: 10, #candidates 256
rank:   1, candidate: 0x81, score: 0.183925 @ 4
rank:   2, candidate: 0xa1, score: 0.183623 @ 4
rank:   3, candidate: 0x83, score: 0.177689 @ 4
rank:   4, candidate: 0xa3, score: 0.176541 @ 4
rank: 181, correct  : 0x5b, score: 0.081048 @ 1
Results @ 1200000 rows, 5 cols (1200000 rows consumed)
target: 3, phase: 10, #candidates 256
rank:   1, candidate: 0xf8, score: 0.252600 @ 1
rank:   2, candidate: 0xe8, score: 0.251232 @ 1
rank:   3, candidate: 0xb8, score: 0.244950 @ 1
rank:   4, candidate: 0xa8, score: 0.242917 @ 1
rank: 234, correct  : 0x1f, score: 0.071159 @ 1
Results @ 1200000 rows, 5 cols (1200000 rows consumed)
target: 4, phase: 10, #candidates 256
rank:   1, candidate: 0x45, score: 0.216222 @ 5
rank:   2, candidate: 0x65, score: 0.216078 @ 5
rank:   3, candidate: 0xc5, score: 0.203018 @ 5
rank:   4, candidate: 0xe5, score: 0.202807 @ 5
rank:  25, correct  : 0x40, score: 0.178078 @ 5
recovered key material: 8881f845
Running "Incremental correlation" on trace range 1200001:1:1228800, 1 data passes, 2 sample passes
Processing traces 1200001:1228800 ..100%|███████████████| Time: 0:00:01
Incremental CPA on range 1:5 produced (5, 9216) correlation matrix
Results @ 1228800 rows, 5 cols (1228800 rows consumed)
target: 1, phase: 10, #candidates 256
rank:   1, candidate: 0x88, score: 0.232659 @ 4
rank:   2, candidate: 0x8a, score: 0.231276 @ 4
rank:   3, candidate: 0x08, score: 0.230368 @ 4
rank:   4, candidate: 0x0a, score: 0.228356 @ 4
rank:  28, correct  : 0x2e, score: 0.204954 @ 4
Results @ 1228800 rows, 5 cols (1228800 rows consumed)
target: 2, phase: 10, #candidates 256
rank:   1, candidate: 0x81, score: 0.183821 @ 4
rank:   2, candidate: 0xa1, score: 0.183510 @ 4
rank:   3, candidate: 0x83, score: 0.177500 @ 4
rank:   4, candidate: 0xa3, score: 0.176342 @ 4
rank: 183, correct  : 0x5b, score: 0.080852 @ 1
Results @ 1228800 rows, 5 cols (1228800 rows consumed)
target: 3, phase: 10, #candidates 256
rank:   1, candidate: 0xf8, score: 0.252800 @ 1
rank:   2, candidate: 0xe8, score: 0.251317 @ 1
rank:   3, candidate: 0xb8, score: 0.245277 @ 1
rank:   4, candidate: 0xa8, score: 0.243125 @ 1
rank: 234, correct  : 0x1f, score: 0.071502 @ 1
Results @ 1228800 rows, 5 cols (1228800 rows consumed)
target: 4, phase: 10, #candidates 256
rank:   1, candidate: 0x45, score: 0.215723 @ 5
rank:   2, candidate: 0x65, score: 0.215434 @ 5
rank:   3, candidate: 0xc5, score: 0.202686 @ 5
rank:   4, candidate: 0xe5, score: 0.202324 @ 5
rank:  25, correct  : 0x40, score: 0.177923 @ 5
recovered key material: 8881f845
 64.563392 seconds (99.75 M allocations: 11.294 GiB, 1.31% gc time)

Also here, 2 out of 4 targets do not perform well. Maybe something specific of the Ch function? Should think about why and what ..


In [20]:
plot(PlotRanksEvolution(),rankdata4,params4,legend=true)


Out[20]:
2.50×10 5 5.00×10 5 7.50×10 5 1.00×10 6 1.25×10 6 50 100 150 200 rank evolution #traces rank phase / target / final rank 10 / 1 / 28 10 / 2 / 183 10 / 3 / 234 10 / 4 / 25

DPA 5: attacking T2

Very strong correlation peaks here, correlating measurements with the 32-bit HW of T2. DPA will perform nicely.


In [21]:
plot(CT[:,3])


Out[21]:
0 1000 2000 3000 4000 0.000 0.005 0.010 0.015 y1

In [22]:
leakyT2samples = sortperm(CT[:,3],rev=true)[1:5]

attack = Sha1InputAttack()
analysis = IncrementalCPA()
params5 = DpaAttack(attack,analysis)
params5.knownKey = knownkeyinner
params5.phases = 11:14
params5.updateInterval = interval
params5.analysis.leakages= vcat([HW()],[Bit(x) for x in 0:7])

empty!(meta(trs).passes)
empty!(meta(trs).dataPasses)
addSamplePass(trs, alignpass)
addSamplePass(trs, x -> x[leakyT2samples])

@time rankdata5 = sca(trs, params5, 1,len)
nothing


Jlsca running in Julia version: 1.3.0, 1 processes/1 workers/2 threads per worker

DPA parameters
attack:       Sha1 input
T xor:        false
analysis:     Incremental CPA
leakages:     HW,bit0,bit1,bit2,bit3,bit4,bit5,bit6,bit7
maximization: abs global max
combination:  +
data at:      1
phases:       [11, 12, 13, 14]
known key:    685d79d6007d6cb9437d9393ce6eacdefbf69a0a

phase: 11 / 14, #targets 1
phase input: 47cfa7307e012f6c755e179a2e5b1f40

Attacking columns 1:5 out of 5 columns (run 1 out of 1)
Running "Incremental correlation" on trace range 1:1:50000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 50000 rows, 5 cols (50000 rows consumed)
target: 1, phase: 11, #candidates 256
rank:   1, candidate: 0x28, score: 0.076107 @ 2
rank:   2, candidate: 0x18, score: 0.074924 @ 2
rank:   3, candidate: 0x1a, score: 0.074199 @ 2
rank:   4, candidate: 0x20, score: 0.071647 @ 1
rank:  52, correct  : 0x2c, score: 0.062821 @ 1
recovered key material: 28
Running "Incremental correlation" on trace range 50001:1:100000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 100000 rows, 5 cols (100000 rows consumed)
target: 1, phase: 11, #candidates 256
rank:   1, candidate: 0x1c, score: 0.059730 @ 1
rank:   2, candidate: 0xa4, score: 0.056647 @ 5
rank:   3, candidate: 0x29, score: 0.056346 @ 2
rank:   4, candidate: 0x9c, score: 0.056120 @ 3
rank:  21, correct  : 0x2c, score: 0.052914 @ 1
recovered key material: 1c
Running "Incremental correlation" on trace range 100001:1:150000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 150000 rows, 5 cols (150000 rows consumed)
target: 1, phase: 11, #candidates 256
rank:   1, candidate: 0x3c, score: 0.051177 @ 1
rank:   2, candidate: 0x1c, score: 0.050439 @ 1
rank:   3, candidate: 0xbc, score: 0.049899 @ 1
rank:   4, candidate: 0xfc, score: 0.048071 @ 1
rank:  17, correct  : 0x2c, score: 0.043683 @ 1
recovered key material: 3c
Running "Incremental correlation" on trace range 150001:1:200000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 200000 rows, 5 cols (200000 rows consumed)
target: 1, phase: 11, #candidates 256
rank:   1, candidate: 0x63, score: 0.043750 @ 1
rank:   2, candidate: 0x7c, score: 0.043646 @ 2
rank:   3, candidate: 0x29, score: 0.043629 @ 2
rank:   4, candidate: 0xa3, score: 0.043324 @ 4
rank:  87, correct  : 0x2c, score: 0.036645 @ 3
recovered key material: 63
Running "Incremental correlation" on trace range 200001:1:250000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 250000 rows, 5 cols (250000 rows consumed)
target: 1, phase: 11, #candidates 256
rank:   1, candidate: 0x35, score: 0.036648 @ 4
rank:   2, candidate: 0x63, score: 0.036400 @ 2
rank:   3, candidate: 0xa3, score: 0.035921 @ 4
rank:   4, candidate: 0xad, score: 0.035771 @ 3
rank:  44, correct  : 0x2c, score: 0.031646 @ 3
recovered key material: 35
Running "Incremental correlation" on trace range 250001:1:300000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 300000 rows, 5 cols (300000 rows consumed)
target: 1, phase: 11, #candidates 256
rank:   1, candidate: 0x1d, score: 0.035060 @ 1
rank:   2, candidate: 0x63, score: 0.034913 @ 2
rank:   3, candidate: 0x35, score: 0.034635 @ 1
rank:   4, candidate: 0xa3, score: 0.034068 @ 1
rank: 116, correct  : 0x2c, score: 0.026195 @ 2
recovered key material: 1d
Running "Incremental correlation" on trace range 300001:1:350000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 350000 rows, 5 cols (350000 rows consumed)
target: 1, phase: 11, #candidates 256
rank:   1, candidate: 0xa3, score: 0.034499 @ 1
rank:   2, candidate: 0x2d, score: 0.033691 @ 1
rank:   3, candidate: 0x1d, score: 0.033459 @ 1
rank:   4, candidate: 0xad, score: 0.033043 @ 3
rank:  95, correct  : 0x2c, score: 0.025155 @ 2
recovered key material: a3
Running "Incremental correlation" on trace range 350001:1:400000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 400000 rows, 5 cols (400000 rows consumed)
target: 1, phase: 11, #candidates 256
rank:   1, candidate: 0xe3, score: 0.033330 @ 3
rank:   2, candidate: 0xa3, score: 0.033196 @ 1
rank:   3, candidate: 0x63, score: 0.033115 @ 3
rank:   4, candidate: 0x2d, score: 0.033047 @ 1
rank:  78, correct  : 0x2c, score: 0.026621 @ 3
recovered key material: e3
Running "Incremental correlation" on trace range 400001:1:450000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 450000 rows, 5 cols (450000 rows consumed)
target: 1, phase: 11, #candidates 256
rank:   1, candidate: 0x2d, score: 0.031310 @ 1
rank:   2, candidate: 0x1d, score: 0.031007 @ 1
rank:   3, candidate: 0x3d, score: 0.030546 @ 1
rank:   4, candidate: 0xa3, score: 0.030420 @ 1
rank:  65, correct  : 0x2c, score: 0.024775 @ 2
recovered key material: 2d
Running "Incremental correlation" on trace range 450001:1:500000, 1 data passes, 2 sample passes
Processing traces 450001:500000 ..100%|█████████████████| Time: 0:00:01
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 500000 rows, 5 cols (500000 rows consumed)
target: 1, phase: 11, #candidates 256
rank:   1, candidate: 0x2d, score: 0.028244 @ 1
rank:   2, candidate: 0x63, score: 0.027588 @ 2
rank:   3, candidate: 0xa3, score: 0.027524 @ 4
rank:   4, candidate: 0xad, score: 0.027398 @ 2
rank:  45, correct  : 0x2c, score: 0.023595 @ 2
recovered key material: 2d
Running "Incremental correlation" on trace range 500001:1:550000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 550000 rows, 5 cols (550000 rows consumed)
target: 1, phase: 11, #candidates 256
rank:   1, candidate: 0x2d, score: 0.027392 @ 1
rank:   2, candidate: 0x1d, score: 0.027149 @ 4
rank:   3, candidate: 0xad, score: 0.026831 @ 2
rank:   4, candidate: 0x25, score: 0.026099 @ 4
rank:  56, correct  : 0x2c, score: 0.021954 @ 2
recovered key material: 2d
Running "Incremental correlation" on trace range 550001:1:600000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 600000 rows, 5 cols (600000 rows consumed)
target: 1, phase: 11, #candidates 256
rank:   1, candidate: 0x2d, score: 0.025944 @ 1
rank:   2, candidate: 0xad, score: 0.025713 @ 2
rank:   3, candidate: 0xf3, score: 0.025532 @ 2
rank:   4, candidate: 0x1d, score: 0.025492 @ 4
rank:  22, correct  : 0x2c, score: 0.023544 @ 2
recovered key material: 2d
Running "Incremental correlation" on trace range 600001:1:650000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 650000 rows, 5 cols (650000 rows consumed)
target: 1, phase: 11, #candidates 256
rank:   1, candidate: 0x2d, score: 0.024765 @ 1
rank:   2, candidate: 0xf3, score: 0.024725 @ 2
rank:   3, candidate: 0x73, score: 0.024512 @ 2
rank:   4, candidate: 0xad, score: 0.024458 @ 2
rank:  13, correct  : 0x2c, score: 0.023400 @ 2
recovered key material: 2d
Running "Incremental correlation" on trace range 650001:1:700000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 700000 rows, 5 cols (700000 rows consumed)
target: 1, phase: 11, #candidates 256
rank:   1, candidate: 0x2b, score: 0.023787 @ 1
rank:   2, correct  : 0x2c, score: 0.023778 @ 2
rank:   3, candidate: 0x2d, score: 0.023476 @ 1
rank:   4, candidate: 0xac, score: 0.023256 @ 2
rank:   5, candidate: 0xad, score: 0.022975 @ 2
recovered key material: 2b
Running "Incremental correlation" on trace range 700001:1:750000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 750000 rows, 5 cols (750000 rows consumed)
target: 1, phase: 11, #candidates 256
rank:   1, correct  : 0x2c, score: 0.022879 @ 2
rank:   2, candidate: 0xac, score: 0.022565 @ 2
rank:   3, candidate: 0x2b, score: 0.022182 @ 1
rank:   4, candidate: 0x9f, score: 0.021877 @ 5
rank:   5, candidate: 0x34, score: 0.021765 @ 3
recovered key material: 2c
Running "Incremental correlation" on trace range 750001:1:800000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 800000 rows, 5 cols (800000 rows consumed)
target: 1, phase: 11, #candidates 256
rank:   1, correct  : 0x2c, score: 0.020947 @ 2
rank:   2, candidate: 0xac, score: 0.020565 @ 2
rank:   3, candidate: 0x34, score: 0.020262 @ 3
rank:   4, candidate: 0xb4, score: 0.019931 @ 3
rank:   5, candidate: 0x1d, score: 0.019869 @ 4
recovered key material: 2c
Running "Incremental correlation" on trace range 800001:1:850000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 850000 rows, 5 cols (850000 rows consumed)
target: 1, phase: 11, #candidates 256
rank:   1, correct  : 0x2c, score: 0.021525 @ 2
rank:   2, candidate: 0xac, score: 0.021215 @ 2
rank:   3, candidate: 0x2d, score: 0.019692 @ 2
rank:   4, candidate: 0x34, score: 0.019515 @ 3
rank:   5, candidate: 0xad, score: 0.019466 @ 2
recovered key material: 2c
Running "Incremental correlation" on trace range 850001:1:900000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 900000 rows, 5 cols (900000 rows consumed)
target: 1, phase: 11, #candidates 256
rank:   1, correct  : 0x2c, score: 0.020869 @ 2
rank:   2, candidate: 0xac, score: 0.020323 @ 2
rank:   3, candidate: 0x2d, score: 0.019111 @ 1
rank:   4, candidate: 0x1d, score: 0.019000 @ 4
rank:   5, candidate: 0x1c, score: 0.018622 @ 2
recovered key material: 2c
Running "Incremental correlation" on trace range 900001:1:950000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 950000 rows, 5 cols (950000 rows consumed)
target: 1, phase: 11, #candidates 256
rank:   1, correct  : 0x2c, score: 0.021197 @ 2
rank:   2, candidate: 0xac, score: 0.020767 @ 2
rank:   3, candidate: 0x2d, score: 0.019784 @ 1
rank:   4, candidate: 0x1d, score: 0.019431 @ 4
rank:   5, candidate: 0xad, score: 0.019044 @ 3
recovered key material: 2c
Running "Incremental correlation" on trace range 950001:1:1000000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 1000000 rows, 5 cols (1000000 rows consumed)
target: 1, phase: 11, #candidates 256
rank:   1, correct  : 0x2c, score: 0.021720 @ 2
rank:   2, candidate: 0xac, score: 0.021214 @ 2
rank:   3, candidate: 0x2d, score: 0.019764 @ 1
rank:   4, candidate: 0x1d, score: 0.019126 @ 1
rank:   5, candidate: 0xad, score: 0.019062 @ 2
recovered key material: 2c
Running "Incremental correlation" on trace range 1000001:1:1050000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 1050000 rows, 5 cols (1050000 rows consumed)
target: 1, phase: 11, #candidates 256
rank:   1, correct  : 0x2c, score: 0.021094 @ 2
rank:   2, candidate: 0xac, score: 0.020816 @ 2
rank:   3, candidate: 0x2d, score: 0.019457 @ 1
rank:   4, candidate: 0x1d, score: 0.019104 @ 1
rank:   5, candidate: 0xad, score: 0.019060 @ 2
recovered key material: 2c
Running "Incremental correlation" on trace range 1050001:1:1100000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 1100000 rows, 5 cols (1100000 rows consumed)
target: 1, phase: 11, #candidates 256
rank:   1, correct  : 0x2c, score: 0.020390 @ 2
rank:   2, candidate: 0xac, score: 0.020175 @ 2
rank:   3, candidate: 0x2d, score: 0.019165 @ 2
rank:   4, candidate: 0xad, score: 0.019099 @ 2
rank:   5, candidate: 0x1d, score: 0.018575 @ 1
recovered key material: 2c
Running "Incremental correlation" on trace range 1100001:1:1150000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 1150000 rows, 5 cols (1150000 rows consumed)
target: 1, phase: 11, #candidates 256
rank:   1, correct  : 0x2c, score: 0.020283 @ 2
rank:   2, candidate: 0xac, score: 0.019973 @ 2
rank:   3, candidate: 0x2a, score: 0.018916 @ 2
rank:   4, candidate: 0x2d, score: 0.018855 @ 2
rank:   5, candidate: 0xad, score: 0.018703 @ 2
recovered key material: 2c
Running "Incremental correlation" on trace range 1150001:1:1200000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 1200000 rows, 5 cols (1200000 rows consumed)
target: 1, phase: 11, #candidates 256
rank:   1, correct  : 0x2c, score: 0.020348 @ 2
rank:   2, candidate: 0xac, score: 0.019867 @ 2
rank:   3, candidate: 0x2d, score: 0.018923 @ 2
rank:   4, candidate: 0x2a, score: 0.018877 @ 2
rank:   5, candidate: 0xad, score: 0.018568 @ 2
recovered key material: 2c
Running "Incremental correlation" on trace range 1200001:1:1228800, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 1228800 rows, 5 cols (1228800 rows consumed)
target: 1, phase: 11, #candidates 256
rank:   1, correct  : 0x2c, score: 0.020584 @ 2
rank:   2, candidate: 0xac, score: 0.020157 @ 2
rank:   3, candidate: 0x2d, score: 0.019647 @ 2
rank:   4, candidate: 0xad, score: 0.019392 @ 3
rank:   5, candidate: 0x2a, score: 0.018724 @ 2
recovered key material: 2c

phase: 12 / 14, #targets 1
phase input: 47cfa7307e012f6c755e179a2e5b1f402c

Attacking columns 1:5 out of 5 columns (run 1 out of 1)
Running "Incremental correlation" on trace range 1:1:50000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 50000 rows, 5 cols (50000 rows consumed)
target: 1, phase: 12, #candidates 256
rank:   1, candidate: 0x95, score: 0.059698 @ 4
rank:   2, candidate: 0xcd, score: 0.059138 @ 3
rank:   3, candidate: 0x4d, score: 0.058047 @ 2
rank:   4, candidate: 0x49, score: 0.057953 @ 2
rank:   8, correct  : 0x0d, score: 0.057076 @ 2
recovered key material: 95
Running "Incremental correlation" on trace range 50001:1:100000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 100000 rows, 5 cols (100000 rows consumed)
target: 1, phase: 12, #candidates 256
rank:   1, candidate: 0x69, score: 0.047947 @ 2
rank:   2, candidate: 0x89, score: 0.046289 @ 2
rank:   3, candidate: 0x67, score: 0.045106 @ 2
rank:   4, correct  : 0x0d, score: 0.045048 @ 3
rank:   5, candidate: 0xe9, score: 0.044588 @ 5
recovered key material: 69
Running "Incremental correlation" on trace range 100001:1:150000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 150000 rows, 5 cols (150000 rows consumed)
target: 1, phase: 12, #candidates 256
rank:   1, candidate: 0x7d, score: 0.039357 @ 2
rank:   2, candidate: 0x67, score: 0.039353 @ 3
rank:   3, candidate: 0x66, score: 0.038798 @ 3
rank:   4, correct  : 0x0d, score: 0.038743 @ 3
rank:   5, candidate: 0xfd, score: 0.038174 @ 2
recovered key material: 7d
Running "Incremental correlation" on trace range 150001:1:200000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 200000 rows, 5 cols (200000 rows consumed)
target: 1, phase: 12, #candidates 256
rank:   1, correct  : 0x0d, score: 0.038083 @ 3
rank:   2, candidate: 0x7d, score: 0.036179 @ 2
rank:   3, candidate: 0x0e, score: 0.036123 @ 3
rank:   4, candidate: 0xfd, score: 0.034678 @ 2
rank:   5, candidate: 0x8d, score: 0.034387 @ 1
recovered key material: 0d
Running "Incremental correlation" on trace range 200001:1:250000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 250000 rows, 5 cols (250000 rows consumed)
target: 1, phase: 12, #candidates 256
rank:   1, correct  : 0x0d, score: 0.038145 @ 3
rank:   2, candidate: 0x7d, score: 0.036058 @ 2
rank:   3, candidate: 0xdd, score: 0.035705 @ 3
rank:   4, candidate: 0x8d, score: 0.035321 @ 1
rank:   5, candidate: 0xfd, score: 0.034762 @ 2
recovered key material: 0d
Running "Incremental correlation" on trace range 250001:1:300000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 300000 rows, 5 cols (300000 rows consumed)
target: 1, phase: 12, #candidates 256
rank:   1, correct  : 0x0d, score: 0.038021 @ 1
rank:   2, candidate: 0x8d, score: 0.036279 @ 1
rank:   3, candidate: 0x0e, score: 0.036168 @ 3
rank:   4, candidate: 0xdd, score: 0.034072 @ 1
rank:   5, candidate: 0x1d, score: 0.033838 @ 1
recovered key material: 0d
Running "Incremental correlation" on trace range 300001:1:350000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 350000 rows, 5 cols (350000 rows consumed)
target: 1, phase: 12, #candidates 256
rank:   1, correct  : 0x0d, score: 0.038120 @ 1
rank:   2, candidate: 0x0e, score: 0.036595 @ 3
rank:   3, candidate: 0x8d, score: 0.036054 @ 1
rank:   4, candidate: 0x15, score: 0.034847 @ 2
rank:   5, candidate: 0x8e, score: 0.033630 @ 3
recovered key material: 0d
Running "Incremental correlation" on trace range 350001:1:400000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 400000 rows, 5 cols (400000 rows consumed)
target: 1, phase: 12, #candidates 256
rank:   1, correct  : 0x0d, score: 0.036232 @ 1
rank:   2, candidate: 0x8d, score: 0.034154 @ 1
rank:   3, candidate: 0x0e, score: 0.033344 @ 3
rank:   4, candidate: 0x1d, score: 0.031489 @ 1
rank:   5, candidate: 0x4d, score: 0.031461 @ 1
recovered key material: 0d
Running "Incremental correlation" on trace range 400001:1:450000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 450000 rows, 5 cols (450000 rows consumed)
target: 1, phase: 12, #candidates 256
rank:   1, correct  : 0x0d, score: 0.038234 @ 1
rank:   2, candidate: 0x8d, score: 0.035817 @ 2
rank:   3, candidate: 0x0e, score: 0.033493 @ 3
rank:   4, candidate: 0x4d, score: 0.033262 @ 1
rank:   5, candidate: 0x2d, score: 0.033017 @ 1
recovered key material: 0d
Running "Incremental correlation" on trace range 450001:1:500000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 500000 rows, 5 cols (500000 rows consumed)
target: 1, phase: 12, #candidates 256
rank:   1, correct  : 0x0d, score: 0.037292 @ 1
rank:   2, candidate: 0x8d, score: 0.034745 @ 1
rank:   3, candidate: 0x4d, score: 0.032873 @ 1
rank:   4, candidate: 0xcd, score: 0.031837 @ 1
rank:   5, candidate: 0xed, score: 0.031296 @ 1
recovered key material: 0d
Running "Incremental correlation" on trace range 500001:1:550000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 550000 rows, 5 cols (550000 rows consumed)
target: 1, phase: 12, #candidates 256
rank:   1, correct  : 0x0d, score: 0.036862 @ 1
rank:   2, candidate: 0x8d, score: 0.034444 @ 1
rank:   3, candidate: 0x0f, score: 0.032085 @ 3
rank:   4, candidate: 0x0e, score: 0.031090 @ 3
rank:   5, candidate: 0x4d, score: 0.030968 @ 1
recovered key material: 0d
Running "Incremental correlation" on trace range 550001:1:600000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 600000 rows, 5 cols (600000 rows consumed)
target: 1, phase: 12, #candidates 256
rank:   1, correct  : 0x0d, score: 0.036460 @ 1
rank:   2, candidate: 0x8d, score: 0.034105 @ 1
rank:   3, candidate: 0x0f, score: 0.031111 @ 3
rank:   4, candidate: 0x4d, score: 0.030856 @ 1
rank:   5, candidate: 0x0e, score: 0.030686 @ 3
recovered key material: 0d
Running "Incremental correlation" on trace range 600001:1:650000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 650000 rows, 5 cols (650000 rows consumed)
target: 1, phase: 12, #candidates 256
rank:   1, correct  : 0x0d, score: 0.036370 @ 1
rank:   2, candidate: 0x8d, score: 0.034240 @ 1
rank:   3, candidate: 0x0f, score: 0.032757 @ 3
rank:   4, candidate: 0x0e, score: 0.031301 @ 3
rank:   5, candidate: 0x8f, score: 0.030294 @ 3
recovered key material: 0d
Running "Incremental correlation" on trace range 650001:1:700000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 700000 rows, 5 cols (700000 rows consumed)
target: 1, phase: 12, #candidates 256
rank:   1, correct  : 0x0d, score: 0.037387 @ 1
rank:   2, candidate: 0x8d, score: 0.035432 @ 1
rank:   3, candidate: 0x0f, score: 0.033582 @ 3
rank:   4, candidate: 0x0e, score: 0.032260 @ 3
rank:   5, candidate: 0xcd, score: 0.031236 @ 1
recovered key material: 0d
Running "Incremental correlation" on trace range 700001:1:750000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 750000 rows, 5 cols (750000 rows consumed)
target: 1, phase: 12, #candidates 256
rank:   1, correct  : 0x0d, score: 0.038268 @ 1
rank:   2, candidate: 0x8d, score: 0.036247 @ 1
rank:   3, candidate: 0x0f, score: 0.034477 @ 3
rank:   4, candidate: 0x0e, score: 0.032580 @ 3
rank:   5, candidate: 0xcd, score: 0.032039 @ 1
recovered key material: 0d
Running "Incremental correlation" on trace range 750001:1:800000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 800000 rows, 5 cols (800000 rows consumed)
target: 1, phase: 12, #candidates 256
rank:   1, correct  : 0x0d, score: 0.039064 @ 1
rank:   2, candidate: 0x8d, score: 0.037157 @ 1
rank:   3, candidate: 0x0f, score: 0.034434 @ 3
rank:   4, candidate: 0x0e, score: 0.033845 @ 1
rank:   5, candidate: 0xcd, score: 0.033283 @ 1
recovered key material: 0d
Running "Incremental correlation" on trace range 800001:1:850000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 850000 rows, 5 cols (850000 rows consumed)
target: 1, phase: 12, #candidates 256
rank:   1, correct  : 0x0d, score: 0.039194 @ 1
rank:   2, candidate: 0x8d, score: 0.037429 @ 1
rank:   3, candidate: 0x0f, score: 0.035047 @ 3
rank:   4, candidate: 0x0e, score: 0.034420 @ 1
rank:   5, candidate: 0x8f, score: 0.032933 @ 3
recovered key material: 0d
Running "Incremental correlation" on trace range 850001:1:900000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 900000 rows, 5 cols (900000 rows consumed)
target: 1, phase: 12, #candidates 256
rank:   1, correct  : 0x0d, score: 0.039223 @ 1
rank:   2, candidate: 0x8d, score: 0.037476 @ 1
rank:   3, candidate: 0x0e, score: 0.034754 @ 1
rank:   4, candidate: 0x0f, score: 0.034539 @ 3
rank:   5, candidate: 0x8e, score: 0.033032 @ 1
recovered key material: 0d
Running "Incremental correlation" on trace range 900001:1:950000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 950000 rows, 5 cols (950000 rows consumed)
target: 1, phase: 12, #candidates 256
rank:   1, correct  : 0x0d, score: 0.040226 @ 1
rank:   2, candidate: 0x8d, score: 0.038239 @ 1
rank:   3, candidate: 0x0e, score: 0.034219 @ 1
rank:   4, candidate: 0xcd, score: 0.033617 @ 1
rank:   5, candidate: 0x4d, score: 0.033401 @ 1
recovered key material: 0d
Running "Incremental correlation" on trace range 950001:1:1000000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 1000000 rows, 5 cols (1000000 rows consumed)
target: 1, phase: 12, #candidates 256
rank:   1, correct  : 0x0d, score: 0.040482 @ 1
rank:   2, candidate: 0x8d, score: 0.038478 @ 1
rank:   3, candidate: 0x0f, score: 0.033811 @ 3
rank:   4, candidate: 0x4d, score: 0.033239 @ 1
rank:   5, candidate: 0x0e, score: 0.033217 @ 1
recovered key material: 0d
Running "Incremental correlation" on trace range 1000001:1:1050000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 1050000 rows, 5 cols (1050000 rows consumed)
target: 1, phase: 12, #candidates 256
rank:   1, correct  : 0x0d, score: 0.040983 @ 1
rank:   2, candidate: 0x8d, score: 0.038819 @ 1
rank:   3, candidate: 0x0f, score: 0.034916 @ 3
rank:   4, candidate: 0x0e, score: 0.033935 @ 1
rank:   5, candidate: 0x4d, score: 0.033270 @ 1
recovered key material: 0d
Running "Incremental correlation" on trace range 1050001:1:1100000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 1100000 rows, 5 cols (1100000 rows consumed)
target: 1, phase: 12, #candidates 256
rank:   1, correct  : 0x0d, score: 0.039866 @ 1
rank:   2, candidate: 0x8d, score: 0.037730 @ 1
rank:   3, candidate: 0x0f, score: 0.033206 @ 3
rank:   4, candidate: 0x4d, score: 0.032640 @ 1
rank:   5, candidate: 0xcd, score: 0.032297 @ 1
recovered key material: 0d
Running "Incremental correlation" on trace range 1100001:1:1150000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 1150000 rows, 5 cols (1150000 rows consumed)
target: 1, phase: 12, #candidates 256
rank:   1, correct  : 0x0d, score: 0.039615 @ 1
rank:   2, candidate: 0x8d, score: 0.037514 @ 1
rank:   3, candidate: 0x0f, score: 0.032904 @ 3
rank:   4, candidate: 0x4d, score: 0.032769 @ 1
rank:   5, candidate: 0xcd, score: 0.032270 @ 1
recovered key material: 0d
Running "Incremental correlation" on trace range 1150001:1:1200000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 1200000 rows, 5 cols (1200000 rows consumed)
target: 1, phase: 12, #candidates 256
rank:   1, correct  : 0x0d, score: 0.040274 @ 1
rank:   2, candidate: 0x8d, score: 0.038035 @ 1
rank:   3, candidate: 0x0f, score: 0.033030 @ 3
rank:   4, candidate: 0x4d, score: 0.032437 @ 1
rank:   5, candidate: 0x0e, score: 0.032112 @ 1
recovered key material: 0d
Running "Incremental correlation" on trace range 1200001:1:1228800, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 1228800 rows, 5 cols (1228800 rows consumed)
target: 1, phase: 12, #candidates 256
rank:   1, correct  : 0x0d, score: 0.040139 @ 1
rank:   2, candidate: 0x8d, score: 0.037931 @ 1
rank:   3, candidate: 0x0f, score: 0.032487 @ 3
rank:   4, candidate: 0x4d, score: 0.032145 @ 1
rank:   5, candidate: 0x0e, score: 0.031902 @ 1
recovered key material: 0d

phase: 13 / 14, #targets 1
phase input: 47cfa7307e012f6c755e179a2e5b1f402c0d

Attacking columns 1:5 out of 5 columns (run 1 out of 1)
Running "Incremental correlation" on trace range 1:1:50000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 50000 rows, 5 cols (50000 rows consumed)
target: 1, phase: 13, #candidates 256
rank:   1, candidate: 0x03, score: 0.072524 @ 4
rank:   2, candidate: 0x1e, score: 0.071916 @ 3
rank:   3, candidate: 0x83, score: 0.071734 @ 4
rank:   4, candidate: 0x9e, score: 0.071060 @ 1
rank:  14, correct  : 0x00, score: 0.068508 @ 1
recovered key material: 03
Running "Incremental correlation" on trace range 50001:1:100000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 100000 rows, 5 cols (100000 rows consumed)
target: 1, phase: 13, #candidates 256
rank:   1, candidate: 0x3c, score: 0.054467 @ 2
rank:   2, candidate: 0x7c, score: 0.054106 @ 2
rank:   3, candidate: 0x42, score: 0.053005 @ 2
rank:   4, candidate: 0xfc, score: 0.052860 @ 2
rank:  40, correct  : 0x00, score: 0.049047 @ 1
recovered key material: 3c
Running "Incremental correlation" on trace range 100001:1:150000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 150000 rows, 5 cols (150000 rows consumed)
target: 1, phase: 13, #candidates 256
rank:   1, candidate: 0x3e, score: 0.045259 @ 2
rank:   2, candidate: 0x9f, score: 0.045096 @ 2
rank:   3, candidate: 0x3f, score: 0.045078 @ 1
rank:   4, candidate: 0x42, score: 0.044732 @ 5
rank:  31, correct  : 0x00, score: 0.041084 @ 1
recovered key material: 3e
Running "Incremental correlation" on trace range 150001:1:200000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 200000 rows, 5 cols (200000 rows consumed)
target: 1, phase: 13, #candidates 256
rank:   1, candidate: 0xfc, score: 0.045369 @ 2
rank:   2, candidate: 0x7c, score: 0.044604 @ 2
rank:   3, correct  : 0x00, score: 0.044540 @ 1
rank:   4, candidate: 0x40, score: 0.043830 @ 1
rank:   5, candidate: 0x80, score: 0.043749 @ 1
recovered key material: fc
Running "Incremental correlation" on trace range 200001:1:250000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 250000 rows, 5 cols (250000 rows consumed)
target: 1, phase: 13, #candidates 256
rank:   1, correct  : 0x00, score: 0.045168 @ 1
rank:   2, candidate: 0x80, score: 0.044967 @ 1
rank:   3, candidate: 0x40, score: 0.044309 @ 1
rank:   4, candidate: 0xc0, score: 0.041626 @ 1
rank:   5, candidate: 0x60, score: 0.040712 @ 1
recovered key material: 00
Running "Incremental correlation" on trace range 250001:1:300000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 300000 rows, 5 cols (300000 rows consumed)
target: 1, phase: 13, #candidates 256
rank:   1, correct  : 0x00, score: 0.040963 @ 1
rank:   2, candidate: 0x40, score: 0.040469 @ 1
rank:   3, candidate: 0x80, score: 0.040389 @ 1
rank:   4, candidate: 0xff, score: 0.038552 @ 1
rank:   5, candidate: 0x7f, score: 0.038344 @ 1
recovered key material: 00
Running "Incremental correlation" on trace range 300001:1:350000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 350000 rows, 5 cols (350000 rows consumed)
target: 1, phase: 13, #candidates 256
rank:   1, correct  : 0x00, score: 0.039249 @ 1
rank:   2, candidate: 0x80, score: 0.038737 @ 1
rank:   3, candidate: 0xff, score: 0.037429 @ 1
rank:   4, candidate: 0x40, score: 0.037411 @ 1
rank:   5, candidate: 0x7f, score: 0.037147 @ 1
recovered key material: 00
Running "Incremental correlation" on trace range 350001:1:400000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 400000 rows, 5 cols (400000 rows consumed)
target: 1, phase: 13, #candidates 256
rank:   1, correct  : 0x00, score: 0.039023 @ 1
rank:   2, candidate: 0x80, score: 0.038313 @ 1
rank:   3, candidate: 0xff, score: 0.037832 @ 1
rank:   4, candidate: 0x7f, score: 0.037318 @ 1
rank:   5, candidate: 0x40, score: 0.035538 @ 1
recovered key material: 00
Running "Incremental correlation" on trace range 400001:1:450000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 450000 rows, 5 cols (450000 rows consumed)
target: 1, phase: 13, #candidates 256
rank:   1, correct  : 0x00, score: 0.039087 @ 1
rank:   2, candidate: 0x80, score: 0.038690 @ 1
rank:   3, candidate: 0xff, score: 0.036418 @ 1
rank:   4, candidate: 0x7f, score: 0.036147 @ 1
rank:   5, candidate: 0x40, score: 0.035619 @ 1
recovered key material: 00
Running "Incremental correlation" on trace range 450001:1:500000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 500000 rows, 5 cols (500000 rows consumed)
target: 1, phase: 13, #candidates 256
rank:   1, correct  : 0x00, score: 0.036708 @ 1
rank:   2, candidate: 0x80, score: 0.036005 @ 1
rank:   3, candidate: 0xff, score: 0.033794 @ 1
rank:   4, candidate: 0x7f, score: 0.033296 @ 1
rank:   5, candidate: 0x40, score: 0.032590 @ 1
recovered key material: 00
Running "Incremental correlation" on trace range 500001:1:550000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 550000 rows, 5 cols (550000 rows consumed)
target: 1, phase: 13, #candidates 256
rank:   1, correct  : 0x00, score: 0.037463 @ 1
rank:   2, candidate: 0x80, score: 0.037008 @ 1
rank:   3, candidate: 0xff, score: 0.033944 @ 1
rank:   4, candidate: 0xc0, score: 0.033816 @ 3
rank:   5, candidate: 0x7f, score: 0.033673 @ 1
recovered key material: 00
Running "Incremental correlation" on trace range 550001:1:600000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 600000 rows, 5 cols (600000 rows consumed)
target: 1, phase: 13, #candidates 256
rank:   1, correct  : 0x00, score: 0.035787 @ 1
rank:   2, candidate: 0x80, score: 0.035209 @ 1
rank:   3, candidate: 0xc0, score: 0.032028 @ 1
rank:   4, candidate: 0x40, score: 0.031702 @ 1
rank:   5, candidate: 0xff, score: 0.031467 @ 1
recovered key material: 00
Running "Incremental correlation" on trace range 600001:1:650000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 650000 rows, 5 cols (650000 rows consumed)
target: 1, phase: 13, #candidates 256
rank:   1, correct  : 0x00, score: 0.037640 @ 1
rank:   2, candidate: 0x80, score: 0.036795 @ 1
rank:   3, candidate: 0xc0, score: 0.033584 @ 1
rank:   4, candidate: 0x40, score: 0.033174 @ 1
rank:   5, candidate: 0xfe, score: 0.033044 @ 2
recovered key material: 00
Running "Incremental correlation" on trace range 650001:1:700000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 700000 rows, 5 cols (700000 rows consumed)
target: 1, phase: 13, #candidates 256
rank:   1, correct  : 0x00, score: 0.036979 @ 1
rank:   2, candidate: 0x80, score: 0.036082 @ 1
rank:   3, candidate: 0xff, score: 0.032712 @ 1
rank:   4, candidate: 0xc0, score: 0.032663 @ 1
rank:   5, candidate: 0x40, score: 0.032530 @ 1
recovered key material: 00
Running "Incremental correlation" on trace range 700001:1:750000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 750000 rows, 5 cols (750000 rows consumed)
target: 1, phase: 13, #candidates 256
rank:   1, correct  : 0x00, score: 0.036802 @ 1
rank:   2, candidate: 0x80, score: 0.035763 @ 1
rank:   3, candidate: 0xfe, score: 0.032965 @ 2
rank:   4, candidate: 0xff, score: 0.032802 @ 1
rank:   5, candidate: 0x7f, score: 0.031975 @ 1
recovered key material: 00
Running "Incremental correlation" on trace range 750001:1:800000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 800000 rows, 5 cols (800000 rows consumed)
target: 1, phase: 13, #candidates 256
rank:   1, correct  : 0x00, score: 0.036586 @ 1
rank:   2, candidate: 0x80, score: 0.035537 @ 1
rank:   3, candidate: 0xfe, score: 0.033741 @ 2
rank:   4, candidate: 0x7e, score: 0.032290 @ 2
rank:   5, candidate: 0x40, score: 0.031815 @ 1
recovered key material: 00
Running "Incremental correlation" on trace range 800001:1:850000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 850000 rows, 5 cols (850000 rows consumed)
target: 1, phase: 13, #candidates 256
rank:   1, correct  : 0x00, score: 0.035968 @ 2
rank:   2, candidate: 0x80, score: 0.034782 @ 1
rank:   3, candidate: 0xfe, score: 0.032302 @ 2
rank:   4, candidate: 0xff, score: 0.031220 @ 1
rank:   5, candidate: 0x7e, score: 0.031092 @ 2
recovered key material: 00
Running "Incremental correlation" on trace range 850001:1:900000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 900000 rows, 5 cols (900000 rows consumed)
target: 1, phase: 13, #candidates 256
rank:   1, correct  : 0x00, score: 0.036231 @ 2
rank:   2, candidate: 0x80, score: 0.035080 @ 1
rank:   3, candidate: 0xc0, score: 0.031622 @ 1
rank:   4, candidate: 0xfe, score: 0.031220 @ 2
rank:   5, candidate: 0x40, score: 0.031179 @ 1
recovered key material: 00
Running "Incremental correlation" on trace range 900001:1:950000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 950000 rows, 5 cols (950000 rows consumed)
target: 1, phase: 13, #candidates 256
rank:   1, correct  : 0x00, score: 0.035201 @ 1
rank:   2, candidate: 0x80, score: 0.034157 @ 1
rank:   3, candidate: 0xff, score: 0.030901 @ 1
rank:   4, candidate: 0xfe, score: 0.030769 @ 2
rank:   5, candidate: 0xc0, score: 0.030410 @ 1
recovered key material: 00
Running "Incremental correlation" on trace range 950001:1:1000000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 1000000 rows, 5 cols (1000000 rows consumed)
target: 1, phase: 13, #candidates 256
rank:   1, correct  : 0x00, score: 0.034901 @ 2
rank:   2, candidate: 0x80, score: 0.033913 @ 1
rank:   3, candidate: 0xc0, score: 0.030786 @ 1
rank:   4, candidate: 0xff, score: 0.030384 @ 2
rank:   5, candidate: 0x40, score: 0.030316 @ 1
recovered key material: 00
Running "Incremental correlation" on trace range 1000001:1:1050000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 1050000 rows, 5 cols (1050000 rows consumed)
target: 1, phase: 13, #candidates 256
rank:   1, correct  : 0x00, score: 0.034979 @ 2
rank:   2, candidate: 0x80, score: 0.033939 @ 1
rank:   3, candidate: 0xc0, score: 0.031076 @ 1
rank:   4, candidate: 0x40, score: 0.030497 @ 1
rank:   5, candidate: 0xff, score: 0.030138 @ 2
recovered key material: 00
Running "Incremental correlation" on trace range 1050001:1:1100000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 1100000 rows, 5 cols (1100000 rows consumed)
target: 1, phase: 13, #candidates 256
rank:   1, correct  : 0x00, score: 0.035158 @ 1
rank:   2, candidate: 0x80, score: 0.034138 @ 1
rank:   3, candidate: 0xc0, score: 0.031109 @ 1
rank:   4, candidate: 0xff, score: 0.030884 @ 2
rank:   5, candidate: 0xfe, score: 0.030740 @ 2
recovered key material: 00
Running "Incremental correlation" on trace range 1100001:1:1150000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 1150000 rows, 5 cols (1150000 rows consumed)
target: 1, phase: 13, #candidates 256
rank:   1, correct  : 0x00, score: 0.035316 @ 1
rank:   2, candidate: 0x80, score: 0.034223 @ 1
rank:   3, candidate: 0xc0, score: 0.031683 @ 1
rank:   4, candidate: 0xff, score: 0.031329 @ 2
rank:   5, candidate: 0x40, score: 0.030880 @ 1
recovered key material: 00
Running "Incremental correlation" on trace range 1150001:1:1200000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 1200000 rows, 5 cols (1200000 rows consumed)
target: 1, phase: 13, #candidates 256
rank:   1, correct  : 0x00, score: 0.035900 @ 1
rank:   2, candidate: 0x80, score: 0.035021 @ 1
rank:   3, candidate: 0xc0, score: 0.032735 @ 1
rank:   4, candidate: 0x40, score: 0.031819 @ 1
rank:   5, candidate: 0xfe, score: 0.030218 @ 2
recovered key material: 00
Running "Incremental correlation" on trace range 1200001:1:1228800, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 1228800 rows, 5 cols (1228800 rows consumed)
target: 1, phase: 13, #candidates 256
rank:   1, correct  : 0x00, score: 0.035566 @ 1
rank:   2, candidate: 0x80, score: 0.034654 @ 1
rank:   3, candidate: 0xc0, score: 0.032146 @ 1
rank:   4, candidate: 0x40, score: 0.031327 @ 1
rank:   5, candidate: 0xff, score: 0.030038 @ 2
recovered key material: 00

phase: 14 / 14, #targets 1
phase input: 47cfa7307e012f6c755e179a2e5b1f402c0d00

Attacking columns 1:5 out of 5 columns (run 1 out of 1)
Running "Incremental correlation" on trace range 1:1:50000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 50000 rows, 5 cols (50000 rows consumed)
target: 1, phase: 14, #candidates 256
rank:   1, candidate: 0x24, score: 0.084113 @ 2
rank:   2, candidate: 0xa4, score: 0.083128 @ 1
rank:   3, candidate: 0xa3, score: 0.078119 @ 1
rank:   4, candidate: 0x14, score: 0.075862 @ 2
rank: 112, correct  : 0x9e, score: 0.057524 @ 4
recovered key material: 24
Running "Incremental correlation" on trace range 50001:1:100000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 100000 rows, 5 cols (100000 rows consumed)
target: 1, phase: 14, #candidates 256
rank:   1, candidate: 0xa3, score: 0.053343 @ 1
rank:   2, candidate: 0x03, score: 0.053199 @ 3
rank:   3, candidate: 0x83, score: 0.051714 @ 3
rank:   4, candidate: 0x23, score: 0.050958 @ 4
rank: 115, correct  : 0x9e, score: 0.042133 @ 2
recovered key material: a3
Running "Incremental correlation" on trace range 100001:1:150000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 150000 rows, 5 cols (150000 rows consumed)
target: 1, phase: 14, #candidates 256
rank:   1, candidate: 0xa3, score: 0.050244 @ 4
rank:   2, candidate: 0x23, score: 0.047222 @ 4
rank:   3, candidate: 0xa2, score: 0.046571 @ 1
rank:   4, candidate: 0xa4, score: 0.045521 @ 4
rank:  13, correct  : 0x9e, score: 0.043404 @ 2
recovered key material: a3
Running "Incremental correlation" on trace range 150001:1:200000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 200000 rows, 5 cols (200000 rows consumed)
target: 1, phase: 14, #candidates 256
rank:   1, candidate: 0xa2, score: 0.042079 @ 1
rank:   2, candidate: 0xa6, score: 0.039948 @ 1
rank:   3, candidate: 0x22, score: 0.038783 @ 1
rank:   4, candidate: 0xa0, score: 0.038465 @ 4
rank:   8, correct  : 0x9e, score: 0.037508 @ 2
recovered key material: a2
Running "Incremental correlation" on trace range 200001:1:250000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 250000 rows, 5 cols (250000 rows consumed)
target: 1, phase: 14, #candidates 256
rank:   1, candidate: 0xa2, score: 0.038629 @ 1
rank:   2, candidate: 0xa6, score: 0.038200 @ 1
rank:   3, correct  : 0x9e, score: 0.037565 @ 1
rank:   4, candidate: 0xae, score: 0.037363 @ 1
rank:   5, candidate: 0x58, score: 0.037151 @ 5
recovered key material: a2
Running "Incremental correlation" on trace range 250001:1:300000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 300000 rows, 5 cols (300000 rows consumed)
target: 1, phase: 14, #candidates 256
rank:   1, candidate: 0xae, score: 0.039212 @ 1
rank:   2, correct  : 0x9e, score: 0.037896 @ 1
rank:   3, candidate: 0xa2, score: 0.037704 @ 1
rank:   4, candidate: 0x8e, score: 0.036979 @ 1
rank:   5, candidate: 0x1e, score: 0.036540 @ 3
recovered key material: ae
Running "Incremental correlation" on trace range 300001:1:350000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 350000 rows, 5 cols (350000 rows consumed)
target: 1, phase: 14, #candidates 256
rank:   1, candidate: 0xae, score: 0.036095 @ 1
rank:   2, correct  : 0x9e, score: 0.035618 @ 1
rank:   3, candidate: 0x1e, score: 0.034360 @ 2
rank:   4, candidate: 0x2e, score: 0.034118 @ 1
rank:   5, candidate: 0x8e, score: 0.034028 @ 1
recovered key material: ae
Running "Incremental correlation" on trace range 350001:1:400000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 400000 rows, 5 cols (400000 rows consumed)
target: 1, phase: 14, #candidates 256
rank:   1, correct  : 0x9e, score: 0.037929 @ 1
rank:   2, candidate: 0x1e, score: 0.036153 @ 1
rank:   3, candidate: 0xae, score: 0.035974 @ 1
rank:   4, candidate: 0xa2, score: 0.034902 @ 1
rank:   5, candidate: 0x2e, score: 0.033866 @ 1
recovered key material: 9e
Running "Incremental correlation" on trace range 400001:1:450000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 450000 rows, 5 cols (450000 rows consumed)
target: 1, phase: 14, #candidates 256
rank:   1, correct  : 0x9e, score: 0.036655 @ 1
rank:   2, candidate: 0x1e, score: 0.034543 @ 1
rank:   3, candidate: 0xae, score: 0.034239 @ 1
rank:   4, candidate: 0xa6, score: 0.033034 @ 1
rank:   5, candidate: 0xa2, score: 0.032229 @ 5
recovered key material: 9e
Running "Incremental correlation" on trace range 450001:1:500000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 500000 rows, 5 cols (500000 rows consumed)
target: 1, phase: 14, #candidates 256
rank:   1, correct  : 0x9e, score: 0.035691 @ 1
rank:   2, candidate: 0x1e, score: 0.033911 @ 1
rank:   3, candidate: 0xae, score: 0.032769 @ 1
rank:   4, candidate: 0x5e, score: 0.031184 @ 3
rank:   5, candidate: 0x2e, score: 0.031046 @ 1
recovered key material: 9e
Running "Incremental correlation" on trace range 500001:1:550000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 550000 rows, 5 cols (550000 rows consumed)
target: 1, phase: 14, #candidates 256
rank:   1, correct  : 0x9e, score: 0.035716 @ 1
rank:   2, candidate: 0x1e, score: 0.034308 @ 1
rank:   3, candidate: 0x5e, score: 0.031574 @ 3
rank:   4, candidate: 0xae, score: 0.031443 @ 4
rank:   5, candidate: 0xde, score: 0.031049 @ 1
recovered key material: 9e
Running "Incremental correlation" on trace range 550001:1:600000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 600000 rows, 5 cols (600000 rows consumed)
target: 1, phase: 14, #candidates 256
rank:   1, correct  : 0x9e, score: 0.037245 @ 1
rank:   2, candidate: 0x1e, score: 0.035726 @ 1
rank:   3, candidate: 0xae, score: 0.032771 @ 4
rank:   4, candidate: 0x5e, score: 0.031680 @ 3
rank:   5, candidate: 0xde, score: 0.031433 @ 1
recovered key material: 9e
Running "Incremental correlation" on trace range 600001:1:650000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 650000 rows, 5 cols (650000 rows consumed)
target: 1, phase: 14, #candidates 256
rank:   1, correct  : 0x9e, score: 0.036822 @ 1
rank:   2, candidate: 0x1e, score: 0.035540 @ 1
rank:   3, candidate: 0xae, score: 0.033842 @ 4
rank:   4, candidate: 0x2e, score: 0.032055 @ 1
rank:   5, candidate: 0xbe, score: 0.032010 @ 4
recovered key material: 9e
Running "Incremental correlation" on trace range 650001:1:700000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 700000 rows, 5 cols (700000 rows consumed)
target: 1, phase: 14, #candidates 256
rank:   1, correct  : 0x9e, score: 0.038183 @ 1
rank:   2, candidate: 0x1e, score: 0.037063 @ 1
rank:   3, candidate: 0xae, score: 0.034338 @ 4
rank:   4, candidate: 0xbe, score: 0.034042 @ 4
rank:   5, candidate: 0x3e, score: 0.033987 @ 1
recovered key material: 9e
Running "Incremental correlation" on trace range 700001:1:750000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 750000 rows, 5 cols (750000 rows consumed)
target: 1, phase: 14, #candidates 256
rank:   1, correct  : 0x9e, score: 0.038326 @ 1
rank:   2, candidate: 0x1e, score: 0.037032 @ 1
rank:   3, candidate: 0xae, score: 0.034303 @ 1
rank:   4, candidate: 0xbe, score: 0.033590 @ 1
rank:   5, candidate: 0x3e, score: 0.033567 @ 1
recovered key material: 9e
Running "Incremental correlation" on trace range 750001:1:800000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 800000 rows, 5 cols (800000 rows consumed)
target: 1, phase: 14, #candidates 256
rank:   1, correct  : 0x9e, score: 0.038291 @ 1
rank:   2, candidate: 0x1e, score: 0.037101 @ 1
rank:   3, candidate: 0xae, score: 0.034215 @ 4
rank:   4, candidate: 0xbe, score: 0.033392 @ 4
rank:   5, candidate: 0x3e, score: 0.033090 @ 1
recovered key material: 9e
Running "Incremental correlation" on trace range 800001:1:850000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 850000 rows, 5 cols (850000 rows consumed)
target: 1, phase: 14, #candidates 256
rank:   1, correct  : 0x9e, score: 0.037069 @ 1
rank:   2, candidate: 0x1e, score: 0.035948 @ 1
rank:   3, candidate: 0xae, score: 0.032732 @ 4
rank:   4, candidate: 0xbe, score: 0.032154 @ 4
rank:   5, candidate: 0xde, score: 0.032062 @ 1
recovered key material: 9e
Running "Incremental correlation" on trace range 850001:1:900000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 900000 rows, 5 cols (900000 rows consumed)
target: 1, phase: 14, #candidates 256
rank:   1, correct  : 0x9e, score: 0.035521 @ 1
rank:   2, candidate: 0x1e, score: 0.034233 @ 1
rank:   3, candidate: 0xae, score: 0.031414 @ 4
rank:   4, candidate: 0x5e, score: 0.030638 @ 3
rank:   5, candidate: 0xde, score: 0.030634 @ 1
recovered key material: 9e
Running "Incremental correlation" on trace range 900001:1:950000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 950000 rows, 5 cols (950000 rows consumed)
target: 1, phase: 14, #candidates 256
rank:   1, correct  : 0x9e, score: 0.036997 @ 1
rank:   2, candidate: 0x1e, score: 0.035443 @ 1
rank:   3, candidate: 0xae, score: 0.032322 @ 4
rank:   4, candidate: 0xde, score: 0.031663 @ 1
rank:   5, candidate: 0x5e, score: 0.031552 @ 3
recovered key material: 9e
Running "Incremental correlation" on trace range 950001:1:1000000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 1000000 rows, 5 cols (1000000 rows consumed)
target: 1, phase: 14, #candidates 256
rank:   1, correct  : 0x9e, score: 0.036147 @ 1
rank:   2, candidate: 0x1e, score: 0.034976 @ 1
rank:   3, candidate: 0xde, score: 0.031780 @ 1
rank:   4, candidate: 0xae, score: 0.031591 @ 1
rank:   5, candidate: 0x5e, score: 0.031531 @ 3
recovered key material: 9e
Running "Incremental correlation" on trace range 1000001:1:1050000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 1050000 rows, 5 cols (1050000 rows consumed)
target: 1, phase: 14, #candidates 256
rank:   1, correct  : 0x9e, score: 0.037685 @ 1
rank:   2, candidate: 0x1e, score: 0.036183 @ 1
rank:   3, candidate: 0xae, score: 0.032693 @ 1
rank:   4, candidate: 0xde, score: 0.032557 @ 1
rank:   5, candidate: 0x5e, score: 0.032274 @ 3
recovered key material: 9e
Running "Incremental correlation" on trace range 1050001:1:1100000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 1100000 rows, 5 cols (1100000 rows consumed)
target: 1, phase: 14, #candidates 256
rank:   1, correct  : 0x9e, score: 0.037507 @ 1
rank:   2, candidate: 0x1e, score: 0.035981 @ 1
rank:   3, candidate: 0xde, score: 0.032917 @ 1
rank:   4, candidate: 0x5e, score: 0.032401 @ 3
rank:   5, candidate: 0xae, score: 0.031793 @ 1
recovered key material: 9e
Running "Incremental correlation" on trace range 1100001:1:1150000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 1150000 rows, 5 cols (1150000 rows consumed)
target: 1, phase: 14, #candidates 256
rank:   1, correct  : 0x9e, score: 0.035724 @ 1
rank:   2, candidate: 0x1e, score: 0.034448 @ 1
rank:   3, candidate: 0xde, score: 0.031551 @ 1
rank:   4, candidate: 0x5e, score: 0.031245 @ 3
rank:   5, candidate: 0xae, score: 0.030921 @ 1
recovered key material: 9e
Running "Incremental correlation" on trace range 1150001:1:1200000, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 1200000 rows, 5 cols (1200000 rows consumed)
target: 1, phase: 14, #candidates 256
rank:   1, correct  : 0x9e, score: 0.035960 @ 1
rank:   2, candidate: 0x1e, score: 0.034840 @ 1
rank:   3, candidate: 0xde, score: 0.032423 @ 1
rank:   4, candidate: 0x5e, score: 0.031869 @ 1
rank:   5, candidate: 0xae, score: 0.031012 @ 1
recovered key material: 9e
Running "Incremental correlation" on trace range 1200001:1:1228800, 1 data passes, 2 sample passes
Incremental CPA on range 1:5 produced (5, 2304) correlation matrix
Results @ 1228800 rows, 5 cols (1228800 rows consumed)
target: 1, phase: 14, #candidates 256
rank:   1, correct  : 0x9e, score: 0.036324 @ 1
rank:   2, candidate: 0x1e, score: 0.035409 @ 1
rank:   3, candidate: 0xde, score: 0.033078 @ 1
rank:   4, candidate: 0x5e, score: 0.032534 @ 1
rank:   5, candidate: 0xae, score: 0.031658 @ 1
recovered key material: 9e
recovered key: 685d79d6007d6cb9437d9393ce6eacdefbf69a0a
knownkey match: true
 83.501544 seconds (174.48 M allocations: 43.764 GiB, 3.84% gc time)

There we go, they all go down to rank 1!


In [23]:
plot(PlotRanksEvolution(),rankdata5,params5,legend=true)


Out[23]:
2.50×10 5 5.00×10 5 7.50×10 5 1.00×10 6 1.25×10 6 0 25 50 75 100 rank evolution #traces rank phase / target / final rank 11 / 1 / 1 12 / 1 / 1 13 / 1 / 1 14 / 1 / 1

Gratuitous plots

For showing off, the evolution plots of the correlation value of all the incorrect key guesses in gray and the correct key guess in red, for DPA attack 5.


In [24]:
function plotAllScoresEvolutions(rankdata,params,args...)
    for phase in getPhases(rankdata)
        for target in getTargets(rankdata, phase)
            p = plot(PlotScoresEvolution(),rankdata,params,phase,target,args...)
            display(p)
        end
    end
end


Out[24]:
plotAllScoresEvolutions (generic function with 1 method)

In [25]:
plotAllScoresEvolutions(rankdata5,params5)


2.50×10 5 5.00×10 5 7.50×10 5 1.00×10 6 1.25×10 6 0.01 0.02 0.03 0.04 0.05 0.06 0.07 score evolution phase 11, target 1 #traces + of scores correct incorrect
2.50×10 5 5.00×10 5 7.50×10 5 1.00×10 6 1.25×10 6 0.02 0.03 0.04 0.05 0.06 score evolution phase 12, target 1 #traces + of scores correct incorrect
2.50×10 5 5.00×10 5 7.50×10 5 1.00×10 6 1.25×10 6 0.02 0.03 0.04 0.05 0.06 0.07 score evolution phase 13, target 1 #traces + of scores correct incorrect
2.50×10 5 5.00×10 5 7.50×10 5 1.00×10 6 1.25×10 6 0.02 0.03 0.04 0.05 0.06 0.07 0.08 score evolution phase 14, target 1 #traces + of scores correct incorrect