Code base obscuration (for images) 1.0
It implements different obscuration methods on portable images (.pgm and .ppm)
Loading...
Searching...
No Matches
obscurationCommon.hpp
Go to the documentation of this file.
1
11#include <iostream>
12#include <vector>
13#include <random>
14#include <bitset>
15#include <cstring>
16#include <fstream>
17
18#ifndef OBSCURATION_COMMON_LIBRARY
19#define OBSCURATION_COMMON_LIBRARY
20
28{
29public:
30 //====================== Encryption utils ======================//
31
39 static void genPRNS(unsigned int seq[8]);
40
49 static void genBitsGroups(std::vector<std::vector<int>> &groups, int groupSize);
50
59 static void intVec2intArray(std::vector<int> &vec, int arr[8]);
60};
61
62#endif // OBSCURATION_COMMON_LIBRARY
Base class containing some basic functionalities for images.
This class contains common and useful methods for obscuring images.
Definition obscurationCommon.hpp:28
static void genBitsGroups(std::vector< std::vector< int > > &groups, int groupSize)
Generate groups of bits.
Definition obscurationCommon.cpp:28
static void intVec2intArray(std::vector< int > &vec, int arr[8])
Convert a vector of integers to an array of integers.
Definition obscurationCommon.cpp:42
static void genPRNS(unsigned int seq[8])
Generate a random sequence of 8 bits.
Definition obscurationCommon.cpp:19