Contains the main function of the c++ verificatum verifier. More...
#include <cstring>
#include <cstdlib>
#include <cstdint>
#include <string>
#include <vector>
#include <iostream>
#include <iomanip>
#include "cryptotools/cryptotools.hpp"
#include "verifierutils/verifierutils.hpp"
#include "arithm/arithm.hpp"
#include "elgamal/elgamal.hpp"
#include "xmlconfig/xmlconfig.hpp"
#include "proofs/proofs.hpp"
Go to the source code of this file.
Functions | |
void | displayHelp () |
Displays the help for the command line use of this program. | |
std::string | concatenation (std::string str1, char separator, std::string str2) |
Returns the concatenation of the two strings separated by the separator. | |
std::string | getPath (std::string dir, std::string type, unsigned int l) |
Returns the path of the file of name <dir/typell.bt> where "ll" are the two decimals of l. | |
void | preprocessArgs (int argc, char **argv, std::string &configFile, std::string &path2roDir) |
Parses the command-line arguments to see that the program was called correctly and initialises the variables accordingly. | |
int | main (int argc, char **argv) |
Runs the core verification described in the verificatum verifier specification. |
Contains the main function of the c++ verificatum verifier.
Definition in file main.cpp.
std::string concatenation | ( | std::string | str1, |
char | separator, | ||
std::string | str2 | ||
) |
Returns the concatenation of the two strings separated by the separator.
str1 | The first string. |
separator | A char to put between the strings |
str2 | The second one. |
Definition at line 51 of file main.cpp.
void displayHelp | ( | ) |
Displays the help for the command line use of this program.
Definition at line 29 of file main.cpp.
std::string getPath | ( | std::string | dir, |
std::string | type, | ||
unsigned int | l | ||
) |
Returns the path of the file of name <dir/typell.bt> where "ll" are the two decimals of l.
dir | The name of the directory. |
type | The name of the file. |
l | Its index. |
Definition at line 71 of file main.cpp.
int main | ( | int | argc, |
char ** | argv | ||
) |
Runs the core verification described in the verificatum verifier specification.
argc | The number of arguments given in the CLI |
argv | The arguments given in the CLI |
Definition at line 127 of file main.cpp.
void preprocessArgs | ( | int | argc, |
char ** | argv, | ||
std::string & | configFile, | ||
std::string & | path2roDir | ||
) |
Parses the command-line arguments to see that the program was called correctly and initialises the variables accordingly.
It is assumed that the path lead to the correct files.
It is assumed that the option activating verbosity, namely "-v", is put in the first position if it is present.
[in] | argc | The number of command line arguments. |
[in] | argv | The command line arguments. |
[out] | configFile | The path to the configuration file. |
[out] | path2roDir | The path to the proof directory. |
Definition at line 96 of file main.cpp.