A whimsical STROBE based encryption protocol
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

Enable CI for WHARRGARBL

Run some CI on the crate to ensure I haven't missed important things

authored by

Sachymetsu and committed by
Tangled
e38ad4b5 51cc18f1

+22 -2
+20
.tangled/workflows/test.yml
··· 1 + when: 2 + - event: ["push", "pull_request"] 3 + branch: main 4 + 5 + engine: nixery 6 + 7 + dependencies: 8 + nixpkgs: 9 + - clang 10 + - cargo 11 + - clippy 12 + - rustfmt 13 + 14 + steps: 15 + - name: Format check 16 + command: cargo fmt --all --check 17 + - name: Clippy 18 + command: cargo clippy --locked --no-deps 19 + - name: Tests 20 + command: cargo test --locked --no-fail-fast
+2 -2
src/herding_kats/harness.rs
··· 125 125 expected_state_after, 126 126 }| match name.as_str() { 127 127 "init" => { 128 - // Check that the initial state matches what is expected in the KAT operation 128 + // Check that the initial state matches what is expected in the KAT operation. 129 129 assert_eq!(&strobe.state.0[..], expected_state_after.as_slice()); 130 130 } 131 131 name => { ··· 141 141 142 142 assert_eq!(&strobe.state.0[..], expected_state_after.as_slice()); 143 143 144 - // Only test expected output if the test vector has output to test against 144 + // Only test expected output if the test vector has output to test against. 145 145 if let Some(expected) = expected_output { 146 146 // The input was presumably mutated; 147 147 assert_eq!(input_data.as_slice(), expected.as_slice());