diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5f4e911..6de323b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,6 +26,7 @@ jobs: - uses: actions-rs/toolchain@v1 with: toolchain: stable + - run: make install_insta - run: make test # coverage: # runs-on: ubuntu-20.04 diff --git a/Cargo.lock b/Cargo.lock index caffc6e..c903a40 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -515,6 +515,18 @@ version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7fcf7ebe98d2f8eba5ecf08e7ffa74384eea74b35d2fdee7aa417cf3a9cbe658" +[[package]] +name = "console" +version = "0.15.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3d79fbe8970a77e3e34151cc13d3b3e248aa0faaecb9f6091fa07ebefe5ad60" +dependencies = [ + "encode_unicode", + "lazy_static", + "libc", + "windows-sys", +] + [[package]] name = "cpufeatures" version = "0.2.5" @@ -659,6 +671,12 @@ version = "1.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "90e5c1c8368803113bf0c9584fc495a58b86dc8a29edbf8fe877d21d9507e797" +[[package]] +name = "encode_unicode" +version = "0.3.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a357d28ed41a50f9c765dbfe56cbc04a64e53e5fc58ba79fbc34c10ef3df831f" + [[package]] name = "env_logger" version = "0.10.0" @@ -913,6 +931,19 @@ dependencies = [ "generic-array", ] +[[package]] +name = "insta" +version = "1.29.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9a28d25139df397cbca21408bb742cf6837e04cdbebf1b07b760caf971d6a972" +dependencies = [ + "console", + "lazy_static", + "linked-hash-map", + "similar", + "yaml-rust", +] + [[package]] name = "instant" version = "0.1.12" @@ -980,6 +1011,12 @@ version = "0.2.139" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "201de327520df007757c1f0adce6e827fe8562fbc28bfd9c15571c66ca1f5f79" +[[package]] +name = "linked-hash-map" +version = "0.5.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0717cef1bc8b636c6e1c1bbdefc09e6322da8a9321966e8928ef80d20f7f770f" + [[package]] name = "linux-raw-sys" version = "0.1.4" @@ -1492,6 +1529,12 @@ dependencies = [ "lazy_static", ] +[[package]] +name = "similar" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "420acb44afdae038210c99e69aae24109f32f15500aa708e81d46c9f29d55fcf" + [[package]] name = "simpleworks" version = "0.1.0" @@ -1965,6 +2008,15 @@ dependencies = [ "tap", ] +[[package]] +name = "yaml-rust" +version = "0.4.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "56c1936c4cc7a1c9ab21a1ebb602eb942ba868cbd44a99cb7cdc5892335e1c85" +dependencies = [ + "linked-hash-map", +] + [[package]] name = "zeroize" version = "1.5.7" @@ -2010,6 +2062,7 @@ dependencies = [ "criterion", "digest", "env_logger", + "insta", "log", "parking_lot", "pprof", diff --git a/Cargo.toml b/Cargo.toml index 884ad7e..75825ec 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -33,6 +33,8 @@ rand = "0.8.5" log = "0.4" env_logger = "0.10.0" +insta = "1.29" + [profile.bench] opt-level = 3 debug = false diff --git a/Makefile b/Makefile index 7675fa5..6acaebc 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,16 @@ clippy: cargo clippy --all-targets --all-features -- -D warnings test: - cargo test + cargo insta test benchmarks: cargo criterion --bench benchmark + +install_insta: + cargo install cargo-insta + +insta_demo: + cargo insta test --review -- test_aes_encryption_step_by_step + +clean_snapshots: + rm -rf tests/snapshots diff --git a/tests/integration_tests.rs b/tests/integration_tests.rs index 9383d66..22517de 100644 --- a/tests/integration_tests.rs +++ b/tests/integration_tests.rs @@ -20,17 +20,29 @@ mod tests { round: usize, ) { let after_substituting_bytes = substitute_bytes(&expected_start_of_round, cs).unwrap(); + insta::assert_snapshot!( + format!("{after_substituting_bytes:?}"), + format!("{expected_after_substituting_bytes:?}") + ); assert_eq!( after_substituting_bytes, expected_after_substituting_bytes, "Substitution is incorrect in round {round}" ); let after_shift_rows = shift_rows(&after_substituting_bytes, cs).unwrap(); + insta::assert_snapshot!( + format!("{after_shift_rows:?}"), + format!("{expected_after_shift_rows:?}") + ); assert_eq!( after_shift_rows, expected_after_shift_rows, "Shift rows is incorrect in round {round}" ); let after_mix_columns = if round != 10 { let after_mix_columns = mix_columns(&after_shift_rows).unwrap(); + insta::assert_snapshot!( + format!("{after_mix_columns:?}"), + format!("{expected_after_mix_columns:?}") + ); assert_eq!( after_mix_columns, expected_after_mix_columns, "Mix columns is incorrect in round {round}", @@ -40,6 +52,10 @@ mod tests { after_shift_rows }; let start_of_next_round = add_round_key(&after_mix_columns, round_key); + insta::assert_snapshot!( + format!("{start_of_next_round:?}"), + format!("{expected_start_of_next_round:?}") + ); assert_eq!( start_of_next_round, expected_start_of_next_round, "Start of next round is incorrect in round {round}" diff --git a/tests/snapshots/integration_tests__tests__[0, 81, 47, 209, 177, 200, 137, 255, 84, 118, 109, 205, 250, 27, 153, 234].snap.new b/tests/snapshots/integration_tests__tests__[0, 81, 47, 209, 177, 200, 137, 255, 84, 118, 109, 205, 250, 27, 153, 234].snap.new new file mode 100644 index 0000000..d0ab0b4 --- /dev/null +++ b/tests/snapshots/integration_tests__tests__[0, 81, 47, 209, 177, 200, 137, 255, 84, 118, 109, 205, 250, 27, 153, 234].snap.new @@ -0,0 +1,6 @@ +--- +source: tests/integration_tests.rs +assertion_line: 42 +expression: "format!(\"{expected_after_mix_columns:?}\")" +--- +[0, 81, 47, 209, 177, 200, 137, 255, 84, 118, 109, 205, 250, 27, 153, 234] diff --git a/tests/snapshots/integration_tests__tests__[117, 236, 9, 147, 32, 11, 99, 51, 83, 192, 207, 124, 187, 37, 208, 220].snap.new b/tests/snapshots/integration_tests__tests__[117, 236, 9, 147, 32, 11, 99, 51, 83, 192, 207, 124, 187, 37, 208, 220].snap.new new file mode 100644 index 0000000..19152f6 --- /dev/null +++ b/tests/snapshots/integration_tests__tests__[117, 236, 9, 147, 32, 11, 99, 51, 83, 192, 207, 124, 187, 37, 208, 220].snap.new @@ -0,0 +1,6 @@ +--- +source: tests/integration_tests.rs +assertion_line: 42 +expression: "format!(\"{expected_after_mix_columns:?}\")" +--- +[117, 236, 9, 147, 32, 11, 99, 51, 83, 192, 207, 124, 187, 37, 208, 220] diff --git a/tests/snapshots/integration_tests__tests__[135, 110, 70, 166, 242, 76, 231, 140, 77, 144, 74, 216, 151, 236, 195, 149].snap.new b/tests/snapshots/integration_tests__tests__[135, 110, 70, 166, 242, 76, 231, 140, 77, 144, 74, 216, 151, 236, 195, 149].snap.new new file mode 100644 index 0000000..bc68125 --- /dev/null +++ b/tests/snapshots/integration_tests__tests__[135, 110, 70, 166, 242, 76, 231, 140, 77, 144, 74, 216, 151, 236, 195, 149].snap.new @@ -0,0 +1,6 @@ +--- +source: tests/integration_tests.rs +assertion_line: 32 +expression: "format!(\"{expected_after_shift_rows:?}\")" +--- +[135, 110, 70, 166, 242, 76, 231, 140, 77, 144, 74, 216, 151, 236, 195, 149] diff --git a/tests/snapshots/integration_tests__tests__[135, 236, 74, 140, 242, 110, 195, 216, 77, 76, 70, 149, 151, 144, 231, 166].snap.new b/tests/snapshots/integration_tests__tests__[135, 236, 74, 140, 242, 110, 195, 216, 77, 76, 70, 149, 151, 144, 231, 166].snap.new new file mode 100644 index 0000000..fc2589c --- /dev/null +++ b/tests/snapshots/integration_tests__tests__[135, 236, 74, 140, 242, 110, 195, 216, 77, 76, 70, 149, 151, 144, 231, 166].snap.new @@ -0,0 +1,6 @@ +--- +source: tests/integration_tests.rs +assertion_line: 23 +expression: "format!(\"{expected_after_substituting_bytes:?}\")" +--- +[135, 236, 74, 140, 242, 110, 195, 216, 77, 76, 70, 149, 151, 144, 231, 166] diff --git a/tests/snapshots/integration_tests__tests__[15, 214, 218, 169, 96, 49, 56, 191, 111, 192, 16, 107, 94, 179, 19, 1].snap.new b/tests/snapshots/integration_tests__tests__[15, 214, 218, 169, 96, 49, 56, 191, 111, 192, 16, 107, 94, 179, 19, 1].snap.new new file mode 100644 index 0000000..4f85fc0 --- /dev/null +++ b/tests/snapshots/integration_tests__tests__[15, 214, 218, 169, 96, 49, 56, 191, 111, 192, 16, 107, 94, 179, 19, 1].snap.new @@ -0,0 +1,6 @@ +--- +source: tests/integration_tests.rs +assertion_line: 42 +expression: "format!(\"{expected_after_mix_columns:?}\")" +--- +[15, 214, 218, 169, 96, 49, 56, 191, 111, 192, 16, 107, 94, 179, 19, 1] diff --git a/tests/snapshots/integration_tests__tests__[161, 79, 61, 254, 120, 232, 3, 252, 16, 213, 168, 223, 76, 99, 41, 35].snap.new b/tests/snapshots/integration_tests__tests__[161, 79, 61, 254, 120, 232, 3, 252, 16, 213, 168, 223, 76, 99, 41, 35].snap.new new file mode 100644 index 0000000..59198f9 --- /dev/null +++ b/tests/snapshots/integration_tests__tests__[161, 79, 61, 254, 120, 232, 3, 252, 16, 213, 168, 223, 76, 99, 41, 35].snap.new @@ -0,0 +1,6 @@ +--- +source: tests/integration_tests.rs +assertion_line: 32 +expression: "format!(\"{expected_after_shift_rows:?}\")" +--- +[161, 79, 61, 254, 120, 232, 3, 252, 16, 213, 168, 223, 76, 99, 41, 35] diff --git a/tests/snapshots/integration_tests__tests__[161, 99, 168, 252, 120, 79, 41, 223, 16, 232, 61, 35, 76, 213, 3, 254].snap.new b/tests/snapshots/integration_tests__tests__[161, 99, 168, 252, 120, 79, 41, 223, 16, 232, 61, 35, 76, 213, 3, 254].snap.new new file mode 100644 index 0000000..14ff64f --- /dev/null +++ b/tests/snapshots/integration_tests__tests__[161, 99, 168, 252, 120, 79, 41, 223, 16, 232, 61, 35, 76, 213, 3, 254].snap.new @@ -0,0 +1,6 @@ +--- +source: tests/integration_tests.rs +assertion_line: 23 +expression: "format!(\"{expected_after_substituting_bytes:?}\")" +--- +[161, 99, 168, 252, 120, 79, 41, 223, 16, 232, 61, 35, 76, 213, 3, 254] diff --git a/tests/snapshots/integration_tests__tests__[164, 156, 127, 242, 104, 159, 53, 43, 107, 91, 234, 67, 2, 106, 80, 73].snap.new b/tests/snapshots/integration_tests__tests__[164, 156, 127, 242, 104, 159, 53, 43, 107, 91, 234, 67, 2, 106, 80, 73].snap.new new file mode 100644 index 0000000..d756655 --- /dev/null +++ b/tests/snapshots/integration_tests__tests__[164, 156, 127, 242, 104, 159, 53, 43, 107, 91, 234, 67, 2, 106, 80, 73].snap.new @@ -0,0 +1,6 @@ +--- +source: tests/integration_tests.rs +assertion_line: 55 +expression: "format!(\"{expected_start_of_next_round:?}\")" +--- +[164, 156, 127, 242, 104, 159, 53, 43, 107, 91, 234, 67, 2, 106, 80, 73] diff --git a/tests/snapshots/integration_tests__tests__[170, 143, 95, 3, 97, 221, 227, 239, 130, 210, 74, 210, 104, 50, 70, 154].snap.new b/tests/snapshots/integration_tests__tests__[170, 143, 95, 3, 97, 221, 227, 239, 130, 210, 74, 210, 104, 50, 70, 154].snap.new new file mode 100644 index 0000000..094ade7 --- /dev/null +++ b/tests/snapshots/integration_tests__tests__[170, 143, 95, 3, 97, 221, 227, 239, 130, 210, 74, 210, 104, 50, 70, 154].snap.new @@ -0,0 +1,6 @@ +--- +source: tests/integration_tests.rs +assertion_line: 55 +expression: "format!(\"{expected_start_of_next_round:?}\")" +--- +[170, 143, 95, 3, 97, 221, 227, 239, 130, 210, 74, 210, 104, 50, 70, 154] diff --git a/tests/snapshots/integration_tests__tests__[172, 115, 207, 123, 239, 193, 17, 223, 19, 181, 214, 181, 69, 35, 90, 184].snap.new b/tests/snapshots/integration_tests__tests__[172, 115, 207, 123, 239, 193, 17, 223, 19, 181, 214, 181, 69, 35, 90, 184].snap.new new file mode 100644 index 0000000..eb9eab9 --- /dev/null +++ b/tests/snapshots/integration_tests__tests__[172, 115, 207, 123, 239, 193, 17, 223, 19, 181, 214, 181, 69, 35, 90, 184].snap.new @@ -0,0 +1,6 @@ +--- +source: tests/integration_tests.rs +assertion_line: 23 +expression: "format!(\"{expected_after_substituting_bytes:?}\")" +--- +[172, 115, 207, 123, 239, 193, 17, 223, 19, 181, 214, 181, 69, 35, 90, 184] diff --git a/tests/snapshots/integration_tests__tests__[172, 193, 214, 184, 239, 181, 90, 123, 19, 35, 207, 223, 69, 115, 17, 181].snap.new b/tests/snapshots/integration_tests__tests__[172, 193, 214, 184, 239, 181, 90, 123, 19, 35, 207, 223, 69, 115, 17, 181].snap.new new file mode 100644 index 0000000..c266219 --- /dev/null +++ b/tests/snapshots/integration_tests__tests__[172, 193, 214, 184, 239, 181, 90, 123, 19, 35, 207, 223, 69, 115, 17, 181].snap.new @@ -0,0 +1,6 @@ +--- +source: tests/integration_tests.rs +assertion_line: 32 +expression: "format!(\"{expected_after_shift_rows:?}\")" +--- +[172, 193, 214, 184, 239, 181, 90, 123, 19, 35, 207, 223, 69, 115, 17, 181] diff --git a/tests/snapshots/integration_tests__tests__[190, 131, 44, 200, 212, 59, 134, 192, 10, 225, 212, 77, 218, 100, 242, 254].snap.new b/tests/snapshots/integration_tests__tests__[190, 131, 44, 200, 212, 59, 134, 192, 10, 225, 212, 77, 218, 100, 242, 254].snap.new new file mode 100644 index 0000000..5924bb6 --- /dev/null +++ b/tests/snapshots/integration_tests__tests__[190, 131, 44, 200, 212, 59, 134, 192, 10, 225, 212, 77, 218, 100, 242, 254].snap.new @@ -0,0 +1,6 @@ +--- +source: tests/integration_tests.rs +assertion_line: 23 +expression: "format!(\"{expected_after_substituting_bytes:?}\")" +--- +[190, 131, 44, 200, 212, 59, 134, 192, 10, 225, 212, 77, 218, 100, 242, 254] diff --git a/tests/snapshots/integration_tests__tests__[190, 59, 212, 254, 212, 225, 242, 200, 10, 100, 44, 192, 218, 131, 134, 77].snap.new b/tests/snapshots/integration_tests__tests__[190, 59, 212, 254, 212, 225, 242, 200, 10, 100, 44, 192, 218, 131, 134, 77].snap.new new file mode 100644 index 0000000..9504822 --- /dev/null +++ b/tests/snapshots/integration_tests__tests__[190, 59, 212, 254, 212, 225, 242, 200, 10, 100, 44, 192, 218, 131, 134, 77].snap.new @@ -0,0 +1,6 @@ +--- +source: tests/integration_tests.rs +assertion_line: 32 +expression: "format!(\"{expected_after_shift_rows:?}\")" +--- +[190, 59, 212, 254, 212, 225, 242, 200, 10, 100, 44, 192, 218, 131, 134, 77] diff --git a/tests/snapshots/integration_tests__tests__[20, 21, 181, 191, 70, 22, 21, 236, 39, 70, 86, 215, 52, 42, 216, 67].snap.new b/tests/snapshots/integration_tests__tests__[20, 21, 181, 191, 70, 22, 21, 236, 39, 70, 86, 215, 52, 42, 216, 67].snap.new new file mode 100644 index 0000000..51480ee --- /dev/null +++ b/tests/snapshots/integration_tests__tests__[20, 21, 181, 191, 70, 22, 21, 236, 39, 70, 86, 215, 52, 42, 216, 67].snap.new @@ -0,0 +1,6 @@ +--- +source: tests/integration_tests.rs +assertion_line: 42 +expression: "format!(\"{expected_after_mix_columns:?}\")" +--- +[20, 21, 181, 191, 70, 22, 21, 236, 39, 70, 86, 215, 52, 42, 216, 67] diff --git a/tests/snapshots/integration_tests__tests__[212, 191, 93, 48, 224, 180, 82, 174, 184, 65, 17, 241, 30, 39, 152, 229].snap.new b/tests/snapshots/integration_tests__tests__[212, 191, 93, 48, 224, 180, 82, 174, 184, 65, 17, 241, 30, 39, 152, 229].snap.new new file mode 100644 index 0000000..8d3d7b6 --- /dev/null +++ b/tests/snapshots/integration_tests__tests__[212, 191, 93, 48, 224, 180, 82, 174, 184, 65, 17, 241, 30, 39, 152, 229].snap.new @@ -0,0 +1,6 @@ +--- +source: tests/integration_tests.rs +assertion_line: 32 +expression: "format!(\"{expected_after_shift_rows:?}\")" +--- +[212, 191, 93, 48, 224, 180, 82, 174, 184, 65, 17, 241, 30, 39, 152, 229] diff --git a/tests/snapshots/integration_tests__tests__[212, 39, 17, 174, 224, 191, 152, 241, 184, 180, 93, 229, 30, 65, 82, 48].snap.new b/tests/snapshots/integration_tests__tests__[212, 39, 17, 174, 224, 191, 152, 241, 184, 180, 93, 229, 30, 65, 82, 48].snap.new new file mode 100644 index 0000000..8f3cc66 --- /dev/null +++ b/tests/snapshots/integration_tests__tests__[212, 39, 17, 174, 224, 191, 152, 241, 184, 180, 93, 229, 30, 65, 82, 48].snap.new @@ -0,0 +1,6 @@ +--- +source: tests/integration_tests.rs +assertion_line: 23 +expression: "format!(\"{expected_after_substituting_bytes:?}\")" +--- +[212, 39, 17, 174, 224, 191, 152, 241, 184, 180, 93, 229, 30, 65, 82, 48] diff --git a/tests/snapshots/integration_tests__tests__[224, 146, 127, 232, 200, 99, 99, 192, 217, 177, 53, 80, 133, 184, 190, 1].snap.new b/tests/snapshots/integration_tests__tests__[224, 146, 127, 232, 200, 99, 99, 192, 217, 177, 53, 80, 133, 184, 190, 1].snap.new new file mode 100644 index 0000000..148c294 --- /dev/null +++ b/tests/snapshots/integration_tests__tests__[224, 146, 127, 232, 200, 99, 99, 192, 217, 177, 53, 80, 133, 184, 190, 1].snap.new @@ -0,0 +1,6 @@ +--- +source: tests/integration_tests.rs +assertion_line: 55 +expression: "format!(\"{expected_start_of_next_round:?}\")" +--- +[224, 146, 127, 232, 200, 99, 99, 192, 217, 177, 53, 80, 133, 184, 190, 1] diff --git a/tests/snapshots/integration_tests__tests__[225, 251, 150, 124, 232, 200, 174, 155, 53, 108, 210, 186, 151, 79, 251, 83].snap.new b/tests/snapshots/integration_tests__tests__[225, 251, 150, 124, 232, 200, 174, 155, 53, 108, 210, 186, 151, 79, 251, 83].snap.new new file mode 100644 index 0000000..d635de7 --- /dev/null +++ b/tests/snapshots/integration_tests__tests__[225, 251, 150, 124, 232, 200, 174, 155, 53, 108, 210, 186, 151, 79, 251, 83].snap.new @@ -0,0 +1,6 @@ +--- +source: tests/integration_tests.rs +assertion_line: 32 +expression: "format!(\"{expected_after_shift_rows:?}\")" +--- +[225, 251, 150, 124, 232, 200, 174, 155, 53, 108, 210, 186, 151, 79, 251, 83] diff --git a/tests/snapshots/integration_tests__tests__[225, 79, 210, 155, 232, 251, 251, 186, 53, 200, 150, 83, 151, 108, 174, 124].snap.new b/tests/snapshots/integration_tests__tests__[225, 79, 210, 155, 232, 251, 251, 186, 53, 200, 150, 83, 151, 108, 174, 124].snap.new new file mode 100644 index 0000000..7dd549f --- /dev/null +++ b/tests/snapshots/integration_tests__tests__[225, 79, 210, 155, 232, 251, 251, 186, 53, 200, 150, 83, 151, 108, 174, 124].snap.new @@ -0,0 +1,6 @@ +--- +source: tests/integration_tests.rs +assertion_line: 23 +expression: "format!(\"{expected_after_substituting_bytes:?}\")" +--- +[225, 79, 210, 155, 232, 251, 251, 186, 53, 200, 150, 83, 151, 108, 174, 124] diff --git a/tests/snapshots/integration_tests__tests__[233, 49, 125, 181, 203, 50, 44, 114, 61, 46, 137, 95, 175, 9, 7, 148].snap.new b/tests/snapshots/integration_tests__tests__[233, 49, 125, 181, 203, 50, 44, 114, 61, 46, 137, 95, 175, 9, 7, 148].snap.new new file mode 100644 index 0000000..ce9e326 --- /dev/null +++ b/tests/snapshots/integration_tests__tests__[233, 49, 125, 181, 203, 50, 44, 114, 61, 46, 137, 95, 175, 9, 7, 148].snap.new @@ -0,0 +1,6 @@ +--- +source: tests/integration_tests.rs +assertion_line: 32 +expression: "format!(\"{expected_after_shift_rows:?}\")" +--- +[233, 49, 125, 181, 203, 50, 44, 114, 61, 46, 137, 95, 175, 9, 7, 148] diff --git a/tests/snapshots/integration_tests__tests__[233, 9, 137, 114, 203, 49, 7, 95, 61, 50, 125, 148, 175, 46, 44, 181].snap.new b/tests/snapshots/integration_tests__tests__[233, 9, 137, 114, 203, 49, 7, 95, 61, 50, 125, 148, 175, 46, 44, 181].snap.new new file mode 100644 index 0000000..51a904d --- /dev/null +++ b/tests/snapshots/integration_tests__tests__[233, 9, 137, 114, 203, 49, 7, 95, 61, 50, 125, 148, 175, 46, 44, 181].snap.new @@ -0,0 +1,6 @@ +--- +source: tests/integration_tests.rs +assertion_line: 23 +expression: "format!(\"{expected_after_substituting_bytes:?}\")" +--- +[233, 9, 137, 114, 203, 49, 7, 95, 61, 50, 125, 148, 175, 46, 44, 181] diff --git a/tests/snapshots/integration_tests__tests__[234, 131, 92, 240, 4, 69, 51, 45, 101, 93, 152, 173, 133, 150, 176, 197].snap.new b/tests/snapshots/integration_tests__tests__[234, 131, 92, 240, 4, 69, 51, 45, 101, 93, 152, 173, 133, 150, 176, 197].snap.new new file mode 100644 index 0000000..352a3ce --- /dev/null +++ b/tests/snapshots/integration_tests__tests__[234, 131, 92, 240, 4, 69, 51, 45, 101, 93, 152, 173, 133, 150, 176, 197].snap.new @@ -0,0 +1,6 @@ +--- +source: tests/integration_tests.rs +assertion_line: 55 +expression: "format!(\"{expected_start_of_next_round:?}\")" +--- +[234, 131, 92, 240, 4, 69, 51, 45, 101, 93, 152, 173, 133, 150, 176, 197] diff --git a/tests/snapshots/integration_tests__tests__[235, 64, 242, 30, 89, 46, 56, 132, 139, 161, 19, 231, 27, 195, 66, 210].snap.new b/tests/snapshots/integration_tests__tests__[235, 64, 242, 30, 89, 46, 56, 132, 139, 161, 19, 231, 27, 195, 66, 210].snap.new new file mode 100644 index 0000000..bd8bdca --- /dev/null +++ b/tests/snapshots/integration_tests__tests__[235, 64, 242, 30, 89, 46, 56, 132, 139, 161, 19, 231, 27, 195, 66, 210].snap.new @@ -0,0 +1,6 @@ +--- +source: tests/integration_tests.rs +assertion_line: 55 +expression: "format!(\"{expected_start_of_next_round:?}\")" +--- +[235, 64, 242, 30, 89, 46, 56, 132, 139, 161, 19, 231, 27, 195, 66, 210] diff --git a/tests/snapshots/integration_tests__tests__[241, 0, 111, 85, 193, 146, 76, 239, 124, 200, 139, 50, 93, 181, 213, 12].snap.new b/tests/snapshots/integration_tests__tests__[241, 0, 111, 85, 193, 146, 76, 239, 124, 200, 139, 50, 93, 181, 213, 12].snap.new new file mode 100644 index 0000000..8a66343 --- /dev/null +++ b/tests/snapshots/integration_tests__tests__[241, 0, 111, 85, 193, 146, 76, 239, 124, 200, 139, 50, 93, 181, 213, 12].snap.new @@ -0,0 +1,6 @@ +--- +source: tests/integration_tests.rs +assertion_line: 55 +expression: "format!(\"{expected_start_of_next_round:?}\")" +--- +[241, 0, 111, 85, 193, 146, 76, 239, 124, 200, 139, 50, 93, 181, 213, 12] diff --git a/tests/snapshots/integration_tests__tests__[247, 131, 64, 63, 39, 67, 61, 240, 155, 181, 49, 255, 84, 171, 169, 211].snap.new b/tests/snapshots/integration_tests__tests__[247, 131, 64, 63, 39, 67, 61, 240, 155, 181, 49, 255, 84, 171, 169, 211].snap.new new file mode 100644 index 0000000..f380c9f --- /dev/null +++ b/tests/snapshots/integration_tests__tests__[247, 131, 64, 63, 39, 67, 61, 240, 155, 181, 49, 255, 84, 171, 169, 211].snap.new @@ -0,0 +1,6 @@ +--- +source: tests/integration_tests.rs +assertion_line: 32 +expression: "format!(\"{expected_after_shift_rows:?}\")" +--- +[247, 131, 64, 63, 39, 67, 61, 240, 155, 181, 49, 255, 84, 171, 169, 211] diff --git a/tests/snapshots/integration_tests__tests__[247, 171, 49, 240, 39, 131, 169, 255, 155, 67, 64, 211, 84, 181, 61, 63].snap.new b/tests/snapshots/integration_tests__tests__[247, 171, 49, 240, 39, 131, 169, 255, 155, 67, 64, 211, 84, 181, 61, 63].snap.new new file mode 100644 index 0000000..1784f46 --- /dev/null +++ b/tests/snapshots/integration_tests__tests__[247, 171, 49, 240, 39, 131, 169, 255, 155, 67, 64, 211, 84, 181, 61, 63].snap.new @@ -0,0 +1,6 @@ +--- +source: tests/integration_tests.rs +assertion_line: 23 +expression: "format!(\"{expected_after_substituting_bytes:?}\")" +--- +[247, 171, 49, 240, 39, 131, 169, 255, 155, 67, 64, 211, 84, 181, 61, 63] diff --git a/tests/snapshots/integration_tests__tests__[37, 209, 169, 173, 189, 17, 209, 104, 182, 58, 51, 142, 76, 76, 192, 176].snap.new b/tests/snapshots/integration_tests__tests__[37, 209, 169, 173, 189, 17, 209, 104, 182, 58, 51, 142, 76, 76, 192, 176].snap.new new file mode 100644 index 0000000..6efbcdd --- /dev/null +++ b/tests/snapshots/integration_tests__tests__[37, 209, 169, 173, 189, 17, 209, 104, 182, 58, 51, 142, 76, 76, 192, 176].snap.new @@ -0,0 +1,6 @@ +--- +source: tests/integration_tests.rs +assertion_line: 42 +expression: "format!(\"{expected_after_mix_columns:?}\")" +--- +[37, 209, 169, 173, 189, 17, 209, 104, 182, 58, 51, 142, 76, 76, 192, 176] diff --git a/tests/snapshots/integration_tests__tests__[38, 14, 46, 23, 61, 65, 183, 125, 232, 100, 114, 169, 253, 210, 139, 37].snap.new b/tests/snapshots/integration_tests__tests__[38, 14, 46, 23, 61, 65, 183, 125, 232, 100, 114, 169, 253, 210, 139, 37].snap.new new file mode 100644 index 0000000..e1aff2e --- /dev/null +++ b/tests/snapshots/integration_tests__tests__[38, 14, 46, 23, 61, 65, 183, 125, 232, 100, 114, 169, 253, 210, 139, 37].snap.new @@ -0,0 +1,6 @@ +--- +source: tests/integration_tests.rs +assertion_line: 55 +expression: "format!(\"{expected_start_of_next_round:?}\")" +--- +[38, 14, 46, 23, 61, 65, 183, 125, 232, 100, 114, 169, 253, 210, 139, 37] diff --git a/tests/snapshots/integration_tests__tests__[4, 102, 129, 229, 224, 203, 25, 154, 72, 248, 211, 122, 40, 6, 38, 76].snap.new b/tests/snapshots/integration_tests__tests__[4, 102, 129, 229, 224, 203, 25, 154, 72, 248, 211, 122, 40, 6, 38, 76].snap.new new file mode 100644 index 0000000..bbcb4c5 --- /dev/null +++ b/tests/snapshots/integration_tests__tests__[4, 102, 129, 229, 224, 203, 25, 154, 72, 248, 211, 122, 40, 6, 38, 76].snap.new @@ -0,0 +1,6 @@ +--- +source: tests/integration_tests.rs +assertion_line: 42 +expression: "format!(\"{expected_after_mix_columns:?}\")" +--- +[4, 102, 129, 229, 224, 203, 25, 154, 72, 248, 211, 122, 40, 6, 38, 76] diff --git a/tests/snapshots/integration_tests__tests__[57, 37, 132, 29, 2, 220, 9, 251, 220, 17, 133, 151, 25, 106, 11, 50].snap.new b/tests/snapshots/integration_tests__tests__[57, 37, 132, 29, 2, 220, 9, 251, 220, 17, 133, 151, 25, 106, 11, 50].snap.new new file mode 100644 index 0000000..54662d0 --- /dev/null +++ b/tests/snapshots/integration_tests__tests__[57, 37, 132, 29, 2, 220, 9, 251, 220, 17, 133, 151, 25, 106, 11, 50].snap.new @@ -0,0 +1,6 @@ +--- +source: tests/integration_tests.rs +assertion_line: 55 +expression: "format!(\"{expected_start_of_next_round:?}\")" +--- +[57, 37, 132, 29, 2, 220, 9, 251, 220, 17, 133, 151, 25, 106, 11, 50] diff --git a/tests/snapshots/integration_tests__tests__[71, 55, 148, 237, 64, 212, 228, 165, 163, 112, 58, 166, 76, 159, 66, 188].snap.new b/tests/snapshots/integration_tests__tests__[71, 55, 148, 237, 64, 212, 228, 165, 163, 112, 58, 166, 76, 159, 66, 188].snap.new new file mode 100644 index 0000000..dca7ca2 --- /dev/null +++ b/tests/snapshots/integration_tests__tests__[71, 55, 148, 237, 64, 212, 228, 165, 163, 112, 58, 166, 76, 159, 66, 188].snap.new @@ -0,0 +1,6 @@ +--- +source: tests/integration_tests.rs +assertion_line: 42 +expression: "format!(\"{expected_after_mix_columns:?}\")" +--- +[71, 55, 148, 237, 64, 212, 228, 165, 163, 112, 58, 166, 76, 159, 66, 188] diff --git a/tests/snapshots/integration_tests__tests__[72, 108, 78, 238, 103, 29, 157, 13, 77, 227, 177, 56, 214, 95, 88, 231].snap.new b/tests/snapshots/integration_tests__tests__[72, 108, 78, 238, 103, 29, 157, 13, 77, 227, 177, 56, 214, 95, 88, 231].snap.new new file mode 100644 index 0000000..e800171 --- /dev/null +++ b/tests/snapshots/integration_tests__tests__[72, 108, 78, 238, 103, 29, 157, 13, 77, 227, 177, 56, 214, 95, 88, 231].snap.new @@ -0,0 +1,6 @@ +--- +source: tests/integration_tests.rs +assertion_line: 55 +expression: "format!(\"{expected_start_of_next_round:?}\")" +--- +[72, 108, 78, 238, 103, 29, 157, 13, 77, 227, 177, 56, 214, 95, 88, 231] diff --git a/tests/snapshots/integration_tests__tests__[73, 219, 135, 59, 69, 57, 83, 137, 127, 2, 210, 241, 119, 222, 150, 26].snap.new b/tests/snapshots/integration_tests__tests__[73, 219, 135, 59, 69, 57, 83, 137, 127, 2, 210, 241, 119, 222, 150, 26].snap.new new file mode 100644 index 0000000..5e4caf6 --- /dev/null +++ b/tests/snapshots/integration_tests__tests__[73, 219, 135, 59, 69, 57, 83, 137, 127, 2, 210, 241, 119, 222, 150, 26].snap.new @@ -0,0 +1,6 @@ +--- +source: tests/integration_tests.rs +assertion_line: 32 +expression: "format!(\"{expected_after_shift_rows:?}\")" +--- +[73, 219, 135, 59, 69, 57, 83, 137, 127, 2, 210, 241, 119, 222, 150, 26] diff --git a/tests/snapshots/integration_tests__tests__[73, 222, 210, 137, 69, 219, 150, 241, 127, 57, 135, 26, 119, 2, 83, 59].snap.new b/tests/snapshots/integration_tests__tests__[73, 222, 210, 137, 69, 219, 150, 241, 127, 57, 135, 26, 119, 2, 83, 59].snap.new new file mode 100644 index 0000000..e3a17db --- /dev/null +++ b/tests/snapshots/integration_tests__tests__[73, 222, 210, 137, 69, 219, 150, 241, 127, 57, 135, 26, 119, 2, 83, 59].snap.new @@ -0,0 +1,6 @@ +--- +source: tests/integration_tests.rs +assertion_line: 23 +expression: "format!(\"{expected_after_substituting_bytes:?}\")" +--- +[73, 222, 210, 137, 69, 219, 150, 241, 127, 57, 135, 26, 119, 2, 83, 59] diff --git a/tests/snapshots/integration_tests__tests__[75, 134, 141, 109, 44, 74, 137, 128, 51, 157, 244, 232, 55, 210, 24, 216].snap.new b/tests/snapshots/integration_tests__tests__[75, 134, 141, 109, 44, 74, 137, 128, 51, 157, 244, 232, 55, 210, 24, 216].snap.new new file mode 100644 index 0000000..6bafe51 --- /dev/null +++ b/tests/snapshots/integration_tests__tests__[75, 134, 141, 109, 44, 74, 137, 128, 51, 157, 244, 232, 55, 210, 24, 216].snap.new @@ -0,0 +1,6 @@ +--- +source: tests/integration_tests.rs +assertion_line: 42 +expression: "format!(\"{expected_after_mix_columns:?}\")" +--- +[75, 134, 141, 109, 44, 74, 137, 128, 51, 157, 244, 232, 55, 210, 24, 216] diff --git a/tests/snapshots/integration_tests__tests__[82, 164, 200, 148, 133, 17, 106, 40, 227, 207, 47, 215, 246, 80, 94, 7].snap.new b/tests/snapshots/integration_tests__tests__[82, 164, 200, 148, 133, 17, 106, 40, 227, 207, 47, 215, 246, 80, 94, 7].snap.new new file mode 100644 index 0000000..e7351e5 --- /dev/null +++ b/tests/snapshots/integration_tests__tests__[82, 164, 200, 148, 133, 17, 106, 40, 227, 207, 47, 215, 246, 80, 94, 7].snap.new @@ -0,0 +1,6 @@ +--- +source: tests/integration_tests.rs +assertion_line: 32 +expression: "format!(\"{expected_after_shift_rows:?}\")" +--- +[82, 164, 200, 148, 133, 17, 106, 40, 227, 207, 47, 215, 246, 80, 94, 7] diff --git a/tests/snapshots/integration_tests__tests__[82, 80, 47, 40, 133, 164, 94, 215, 227, 17, 200, 7, 246, 207, 106, 148].snap.new b/tests/snapshots/integration_tests__tests__[82, 80, 47, 40, 133, 164, 94, 215, 227, 17, 200, 7, 246, 207, 106, 148].snap.new new file mode 100644 index 0000000..4d34466 --- /dev/null +++ b/tests/snapshots/integration_tests__tests__[82, 80, 47, 40, 133, 164, 94, 215, 227, 17, 200, 7, 246, 207, 106, 148].snap.new @@ -0,0 +1,6 @@ +--- +source: tests/integration_tests.rs +assertion_line: 23 +expression: "format!(\"{expected_after_substituting_bytes:?}\")" +--- +[82, 80, 47, 40, 133, 164, 94, 215, 227, 17, 200, 7, 246, 207, 106, 148] diff --git a/tests/snapshots/integration_tests__tests__[88, 77, 202, 241, 27, 75, 90, 172, 219, 231, 202, 168, 27, 107, 176, 229].snap.new b/tests/snapshots/integration_tests__tests__[88, 77, 202, 241, 27, 75, 90, 172, 219, 231, 202, 168, 27, 107, 176, 229].snap.new new file mode 100644 index 0000000..3cd5c2a --- /dev/null +++ b/tests/snapshots/integration_tests__tests__[88, 77, 202, 241, 27, 75, 90, 172, 219, 231, 202, 168, 27, 107, 176, 229].snap.new @@ -0,0 +1,6 @@ +--- +source: tests/integration_tests.rs +assertion_line: 42 +expression: "format!(\"{expected_after_mix_columns:?}\")" +--- +[88, 77, 202, 241, 27, 75, 90, 172, 219, 231, 202, 168, 27, 107, 176, 229] diff --git a/tests/snapshots/integration_tests__tests__[90, 65, 66, 177, 25, 73, 220, 31, 163, 224, 25, 101, 122, 140, 4, 12].snap.new b/tests/snapshots/integration_tests__tests__[90, 65, 66, 177, 25, 73, 220, 31, 163, 224, 25, 101, 122, 140, 4, 12].snap.new new file mode 100644 index 0000000..14b071a --- /dev/null +++ b/tests/snapshots/integration_tests__tests__[90, 65, 66, 177, 25, 73, 220, 31, 163, 224, 25, 101, 122, 140, 4, 12].snap.new @@ -0,0 +1,6 @@ +--- +source: tests/integration_tests.rs +assertion_line: 55 +expression: "format!(\"{expected_start_of_next_round:?}\")" +--- +[90, 65, 66, 177, 25, 73, 220, 31, 163, 224, 25, 101, 122, 140, 4, 12]