Learn R Programming

sideChannelAttack (version 1.0-6)

plot.verify.ho: plot.verify.ho

Description

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

Usage

"plot"(x, ...)

Arguments

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

Value

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

Details

The verify.ho function estimates the quality of the attack with a hold-out 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 = sample(1:256)
traces = traces[newIndice,]
key = key[newIndice]+1

#model checking 
attack=verify.ho(model=gaussian,filter=filter.PCA,Xlearn=traces[1:128,],Ylearn=key[1:128],Xval=traces[129:256,],Yval=key[129:256],nbreVarX=c(2:4))
plot(attack)

Run the code above in your browser using DataLab