SIde-Channel Analysis toolKit (SICAK)
Software toolkit for side-channel analysis
Public Member Functions | Protected Attributes | List of all members

CPA context computation SICAK CpaEngine plugin, OpenCL implementation. More...

#include <oclcpa.h>

Inheritance diagram for OclCPA:
Inheritance graph
Collaboration diagram for OclCPA:
Collaboration graph

Public Member Functions

virtual QString getPluginName () override
 Plugin name.
 
virtual QString getPluginInfo () override
 Plugin info.
 
virtual void init (int platform, int device, size_t noOfTraces, size_t samplesPerTrace, size_t noOfCandidates, const char *param) override
 Initialize the CPA computation engine with specified parameters.
 
virtual void deInit () override
 Deinitialize the CPA engine.
 
virtual QString queryDevices () override
 Query for devices available.
 
virtual void setConstTraces (bool constTraces=false) override
 When constTraces is set, the engine assumes the PowerTraces object is same in every call to createContext function and does not change between calls.
 
virtual UnivariateContext< double > createContext (const PowerTraces< int16_t > &powerTraces, const PowerPredictions< uint8_t > &powerPredictions) override
 Creates context from traces and predictions using GPU. When constTraces=true, the traces are loaded to the GPU device only the first time; predictions are loaded every time.
 
virtual void mergeContexts (UnivariateContext< double > &firstAndOut, const UnivariateContext< double > &second) override
 Merge the two CPA contexts, stores the result in the first of the contexts.
 
virtual Matrix< double > finalizeContext (const UnivariateContext< double > &context) override
 Compute correlation matrix based on given context.
 

Protected Attributes

OclCpaEngine< double, int16_t, uint8_t > * m_handle
 
bool m_constTraces
 
bool m_tracesLoaded
 

Additional Inherited Members

Detailed Description

CPA context computation SICAK CpaEngine plugin, OpenCL implementation.


The documentation for this class was generated from the following files: