Tutorial with f4 library use for GF(2).
- Author
- Vanessa VITSE, Antoine JOUX, Titouan COLADON
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main (int argc, char **argv)
{
cout << "#########################################################" << endl;
cout << "# TUTORIAL WITH LIBRARY USE #" << endl;
cout << "#########################################################" << endl << endl;
vector<string> polynomialArray;
vector<string> variableName;
for(int i = 0; i < 6; i++)
{
variableName.push_back('x'+to_string(i));
}
polynomialArray.emplace_back("x0+x1+x2+x3+x4+x5");
polynomialArray.emplace_back("x0*x1+x1*x2+x2*x3+x3*x4+x0*x5+x4*x5");
polynomialArray.emplace_back("x0*x1*x2+x1*x2*x3+x2*x3*x4+x0*x1*x5+x0*x4*x5+x3*x4*x5");
polynomialArray.emplace_back("x0*x1*x2*x3+x1*x2*x3*x4+x0*x1*x2*x5+x0*x1*x4*x5+x0*x3*x4*x5+x2*x3*x4*x5");
polynomialArray.emplace_back("x0*x1*x2*x3*x4+x0*x1*x2*x3*x5+x0*x1*x2*x4*x5+x0*x1*x3*x4*x5+x0*x2*x3*x4*x5+x1*x2*x3*x4*x5");
polynomialArray.emplace_back("x0*x1*x2*x3*x4*x5-1");
for(size_t i = 0; i < basis.size(); i++)
{
cout << basis[i] << endl;
}
}