/// Prints several security measures that can be derived from a Bayes risk
/// estimate and Random guessing error.
Prints several security measures that can be derived from a Bayes risk
estimate and Random guessing error.
Prints several security measures that can be derived from a Bayes risk estimate and Random guessing error .
pub fn print_all_measures(bayes_risk_estimate: f64, random_guessing: f64) {
    println!(
        "Multiplicative Leakage: {}",
        multiplicative_leakage(bayes_risk_estimate, random_guessing)
    );
    println!(
        "Additive Leakage: {}",
        additive_leakage(bayes_risk_estimate, random_guessing)
    );
    println!(
        "Bayes security measure: {}",
        bayes_security_measure(bayes_risk_estimate, random_guessing)
    );
    println!(
        "Min-entropy Leakage: {}",
        min_entropy_leakage(bayes_risk_estimate, random_guessing)
    );
}
pub fn print_all_measures ( bayes_risk_estimate : f64 , random_guessing : f64 ) { println ! ( " " multiplicative_leakage ( bayes_risk_estimate random_guessing ) ) ; println ! ( " " additive_leakage ( bayes_risk_estimate random_guessing ) ) ; println ! ( " " bayes_security_measure ( bayes_risk_estimate random_guessing ) ) ; println ! ( " " min_entropy_leakage ( bayes_risk_estimate random_guessing ) ) ; }
Prints several security measures that can be derived from a Bayes risk
estimate and Random guessing error.
Prints several security measures that can be derived from a Bayes risk estimate and Random guessing error .
bayes_risk_estimate
f64
random_guessing
f64