Files
RustySecrets/tests/thss_generation_errors.rs
2018-02-11 22:17:07 +01:00

15 lines
410 B
Rust

#![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();
}