-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathqif.hpp
71 lines (68 loc) · 2.16 KB
/
qif.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#ifndef _qif
#define _qif
#include "./include/distribution.hpp"
#include "./include/channel.hpp"
#include "./include/gain.hpp"
#include "./include/hyper.hpp"
#include "./include/vulnerability.hpp"
#include "./include/entropy.hpp"
#include "./include/leakage.hpp"
#endif
/**
* \mainpage
*
* \section description Description
*
* This is a C++ library and it is meant to model QIF - Quantitative Information Flow.
*
* It can be used to model systems and measure their entropies, vulnerabilities and information leakages.
*
* This library models the basics of QIF such as probability distributions, informational channels, gain functions, hyper-distributions,
* and some functions to measure information flow.
*
* \line l1
*
* \section req System Requirements
*
* - GNU **GCC** project C and C++ compiler - Available on most UNIX disrtibutions. For more details access [GCC documentation](https://gcc.gnu.org/onlinedocs/).
*
* - GNU **ar**. Available on most UNIX disrtibutions. For more details acess [ar documentation](http://man7.org/linux/man-pages/man1/ar.1.html).
*
* - GNU **make**. Available on most UNIX distributions. For more details access [make documentation](https://www.gnu.org/software/make/).
*
* \line l9
*
* \section usage Usage
*
* To use the library follow these steps:
*
* 1. Copy the folder ```qif``` to your project's directory;
*
* 2. Open the folder ```qif``` in the terminal and type ```make``` to compile all the modules.
* A binary file named ```qif.a``` will be generated;
*
* 3. Include the library in your C++ project using ```#include "qif/qif.hpp"```;
*
* 4. Compile your project adding ```qif/qif.a``` in the command line used to compile your C++ project.
*
* Example:
* ```bash
* $ g++ main.cpp qif/qif.a
* ```
*
* \line l2
*
* \section References
* [[1]] (https://www.springer.com/us/book/9783319961293) Alvim M.S; Chatzikokolakis K; McIver A; Morgan C; Palamidessi C; Smith G.S.
* **The Science of Quantitative Information Flow**. Springer, 1 edition, 2019.
*
* \line l3
*
* \author Gonze, R.
* \version 1.0
* \date 2019-04
*
* \section license License
*
* [MIT](https://choosealicense.com/licenses/mit/)
*/