SIde-Channel Analysis toolKit (SICAK)
Software toolkit for side-channel analysis
random128co.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 RANDOM128CO_H
30 #define RANDOM128CO_H
31 
32 #include <QObject>
33 #include <QtPlugin>
34 #include <QString>
35 #include "measurement.h"
36 #include "exceptions.hpp"
37 
38 
46 class Random128CO : public QObject, Measurement {
47 
48  Q_OBJECT
49  Q_PLUGIN_METADATA(IID "cz.cvut.fit.Sicak.MeasurementInterface/1.0" FILE "random128co.json")
50  Q_INTERFACES(Measurement)
51 
52 public:
53 
54  Random128CO();
55  virtual ~Random128CO() override;
56 
57  virtual QString getPluginName() override;
58  virtual QString getPluginInfo() override;
59 
60  virtual void init(const char * param) override;
61  virtual void deInit() override;
62 
63  virtual void run(const char * measurementId, size_t measurements, Oscilloscope * oscilloscope, CharDevice * charDevice) override;
64 
65 
66 
67 };
68 
69 #endif /* RANDOM128CO_H */
70 
This header file contains exceptions.
Character device QT plugin interface.
Definition: chardevice.h:42
virtual QString getPluginName() override
Plugin name.
Definition: random128co.cpp:47
Measurement scenario QT plugin interface.
Definition: measurement.h:43
CPA Measurement scenario plugin: sends key command (0x01), followed by the cipher key,...
Definition: random128co.h:46
virtual void deInit() override
Deinitialize the plugin.
Definition: random128co.cpp:59
virtual void run(const char *measurementId, size_t measurements, Oscilloscope *oscilloscope, CharDevice *charDevice) override
Run the measurement scenario, given either initialized and configured oscilloscope/charDevice pointer...
Definition: random128co.cpp:63
virtual void init(const char *param) override
Initialize the plugin.
Definition: random128co.cpp:55
Measurement scenario plugin interface for use e.g. in meas.
Oscilloscope QT plugin interface.
Definition: oscilloscope.h:42
virtual QString getPluginInfo() override
Plugin info.
Definition: random128co.cpp:51