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
//! F-BLEAU is a tool for estimating the leakage of a system about its secrets
//! in a black-box manner (i.e., by only looking at examples of secret inputs
//! and respective outputs). It considers a generic system as a black-box,
//! taking secret inputs and returning outputs accordingly, and it measures
//! how much the outputs "leak" about the inputs.
//!
//! F-BLEAU is based on the equivalence between estimating the error of a
//! Machine Learning model of a specific class and the estimation of
//! information leakage [1,2,3].
//!
//! This code was also used for the experiments of [2] on the following
//! evaluations: Gowalla, e-passport, and side channel attack to finite field
//! exponentiation.
//!
//! # Getting started
//!
//! F-BLEAU is thought to be mainly used via the binary it provides, `fbleau`.
//! For usage instructions, please refer to
//! [fbleau's home page](https://github.com/gchers/fbleau)
//! or to the help screen: `fbleau -h`.
//!
//! For the library documentation, please refer to the appropriate links
//! within this page.
//!
//! # References
//!
//! [1] 2017, "Bayes, not Naïve: Security Bounds on Website Fingerprinting Defenses". _Giovanni Cherubin_
//!
//! [2] 2018, "F-BLEAU: Practical Channel Leakage Estimation". _Giovanni Cherubin, Konstantinos Chatzikokolakis, Catuscia Palamidessi_.
//!
//! [3] (Blog) "Machine Learning methods for Quantifying the Security of Black-boxes". https://giocher.com/pages/bayes.html
extern crate csv;
extern crate ndarray;
#[macro_use]
extern crate itertools;
extern crate ordered_float;
extern crate float_cmp;
#[macro_use]
extern crate serde;
extern crate strsim;
#[cfg(feature="python-module")]
extern crate pyo3;
#[cfg(feature="python-module")]
extern crate numpy;

pub mod estimates;
pub mod fbleau_estimation;
pub mod security_measures;
pub mod utils;
#[cfg(feature="python-module")]
pub mod python_module;

pub type Label = usize;