mirror of
https://github.com/mii443/RustySecrets.git
synced 2025-08-22 16:25:32 +00:00
15 lines
410 B
Rust
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();
|
|
}
|