MCPcopy Create free account
hub / github.com/BitVM/BitVM / test_sizes

Function test_sizes

bitvm/src/hash/sha256_u4.rs:478–493  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

476
477 #[test]
478 fn test_sizes() {
479 let x = sha256(80);
480 println!("sha 80 bytes: {}", x.len());
481 let x = sha256(32);
482 println!("sha 32 bytes: {}", x.len());
483 let x = calculate_s(20, 30, 40, vec![7, 18, 3], true, false);
484 println!("compute s (xor) : {}", x.len());
485 let x = calculate_s(20, 30, 40, vec![7, 18, 3], true, true);
486 println!("compute s (and) : {}", x.len());
487 let x = schedule_iteration(16, 128, 128, 300, 400, false, true);
488 println!("schedule it : {}", x.len());
489 let x = ch_calculation(10, 20, 30, 300);
490 println!("compute ch : {}", x.len());
491 let x = maj_calculation(10, 20, 30, 300);
492 println!("compute maj : {}", x.len());
493 }
494
495 #[test]
496 fn test_shatemp() {

Callers

nothing calls this directly

Calls 5

calculate_sFunction · 0.85
schedule_iterationFunction · 0.85
ch_calculationFunction · 0.85
maj_calculationFunction · 0.85
sha256Function · 0.70

Tested by

no test coverage detected