SIde-Channel Analysis toolKit (SICAK)
Software toolkit for side-channel analysis
maxcoef.h
Go to the documentation of this file.
1 /*
2 * SICAK - SIde-Channel Analysis toolKit
3 * Copyright (C) 2018 Petr Socha, FIT, CTU in Prague
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <https://www.gnu.org/licenses/>.
17 */
18 
29 #ifndef MAXCOEF_H
30 #define MAXCOEF_H
31 
32 #include <QObject>
33 #include <QtPlugin>
34 #include "cpacorreval.h"
35 #include "exceptions.hpp"
36 
44 class MaxCoef : public QObject, CpaCorrEval {
45 
46  Q_OBJECT
47  Q_PLUGIN_METADATA(IID "cz.cvut.fit.Sicak.CpaCorrEvalInterface/1.0" FILE "maxcoef.json")
48  Q_INTERFACES(CpaCorrEval)
49 
50 public:
51 
52  MaxCoef();
53  virtual ~MaxCoef() override;
54 
55  virtual QString getPluginName() override;
56  virtual QString getPluginInfo() override;
57 
58  virtual void init(const char * param) override;
59  virtual void deInit() override;
60 
61  virtual void evaluateCorrelations(MatrixType<double> & correlationMatrix, size_t & sample, size_t & keyCandidate) override;
62 
63 
64 };
65 
66 #endif /* MAXCOEF_H */
67 
Correlation matrix evaluation plugin interface for use e.g. in correv.
An abstract class, representing all the matrix-like data types.
Definition: types_basic.hpp:132
virtual QString getPluginName() override
Plugin name.
Definition: maxcoef.cpp:39
This header file contains exceptions.
virtual void init(const char *param) override
Initialize the plugin.
Definition: maxcoef.cpp:47
CPA correlation matrix evaluation QT plugin interface.
Definition: cpacorreval.h:42
virtual void deInit() override
Deinitialize the plugin.
Definition: maxcoef.cpp:52
virtual void evaluateCorrelations(MatrixType< double > &correlationMatrix, size_t &sample, size_t &keyCandidate) override
Evaluate the correlation matrix, save the results in sample and keyCandidate.
Definition: maxcoef.cpp:57
CPA correlation matrix evaluation SICAK CpaCorrEval plugin, looking for maximum value of coefficient.
Definition: maxcoef.h:44
virtual QString getPluginInfo() override
Plugin info.
Definition: maxcoef.cpp:43