Learn R Programming

sideChannelAttack (version 1.0-6)

plot.verify.cv: plot.verify.cv

Description

Plot the quality of an attack of a verify.cv object.

Usage

"plot"(x, ...)

Arguments

x
An objet of class 'verify.cv'.
...
Currently ignored.

Value

This function plots the quality of an attack of a verify.cv object.

Details

The verify.cv function estimates the quality of the attack with a k-cross-validation approach and this function plots it.

Examples

Run this code
#data collection
data(powerC)
traces = powerC[,-301]
traces = traces[,1:10]
key = powerC[,301]
newIndice = c(sample(1:128,15),sample(129:256,15))
traces = traces[newIndice,]
key = key[newIndice]+1

#model checking
attack=verify.cv(model=dpa1,filter=filter.PCA,X=traces,Y=key,nbreVarX=c(2:4),k=3)
plot(attack)

Run the code above in your browser using DataLab