Check the MACs on the Bucket Reachability credentials in the tests

This commit is contained in:
Ian Goldberg 2021-05-01 17:19:34 -04:00
parent ba13545b3c
commit 5bfbccf193
1 changed files with 3 additions and 0 deletions

View File

@ -45,6 +45,7 @@ fn test_open_invite() {
bridge_table::BridgeTable::decrypt_bucket(id, &key, &encbuckets[id as usize]).unwrap();
println!("cred = {:?}", cred);
println!("bucket = {:?}", bucket);
assert!(bucket.1.is_none());
assert!(ba.verify_lox(&cred));
}
@ -115,6 +116,7 @@ fn test_trust_promotion() {
let bucket =
bridge_table::BridgeTable::decrypt_bucket(id, &key, &encbuckets[id as usize]).unwrap();
println!("bucket = {:?}", bucket);
assert!(ba.verify_reachability(&bucket.1.unwrap()));
}
#[test]
@ -136,4 +138,5 @@ fn test_level0_migration() {
let bucket =
bridge_table::BridgeTable::decrypt_bucket(id, &key, &encbuckets[id as usize]).unwrap();
println!("bucket = {:?}", bucket);
assert!(ba.verify_reachability(&bucket.1.unwrap()));
}