rusty_secrets 0.2.2

Implementation of threshold Shamir's secret sharing in the Rust programming language.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#![cfg(feature = "dss")]

extern crate rusty_secrets;

use rusty_secrets::dss::thss;

#[test]
#[should_panic(expected = "ThresholdTooBig")]
fn test_generate_invalid_k() {
    let secret = b"These programs were never about terrorism: they're about economic spying, \
                  social control, and diplomatic manipulation. They're about power.";

    thss::split_secret(10, 7, secret, &None).unwrap();
}