jedisct1 / rust-aegis

AEGIS high performance ciphers for Rust.
MIT License
24 stars 4 forks source link

pure rust AEGIS-256 tests failing #3

Closed somehybrid closed 9 months ago

somehybrid commented 9 months ago

The AEGIS-256 tests are failing


$ cargo test --all-features
   Compiling aegis v0.4.9 (/Users/redacted/rust-aegis)
    Finished test [unoptimized + debuginfo] target(s) in 4.83s
     Running unittests src/lib.rs (target/debug/deps/aegis-92f3d131e965a2df)

running 4 tests
test tests::test_aegis ... ok
test tests::test_aegis_in_place ... ok
test tests::test_aegis_tag256 ... ok
test tests::test_aegis256 ... FAILED

failures:

---- tests::test_aegis256 stdout ----
thread 'tests::test_aegis256' panicked at src/lib.rs:143:9:
assertion `left == right` failed
  left: [28, 86, 25, 203, 194, 96, 35, 113, 83, 56, 121, 160, 252, 40, 16, 52, 168, 107, 157, 22, 5, 184, 93, 52, 56, 228, 198, 179, 17, 239, 55, 60, 36, 31, 55, 181, 19, 55, 23, 242, 188, 226, 59, 198, 71, 124, 124, 139, 40, 64, 229, 233, 149, 239, 19, 34, 19, 253, 171, 97, 1, 103, 5, 118, 182, 174, 140, 67, 10, 68, 251, 70, 119, 28, 42, 245, 143, 132, 252, 28, 133, 61, 225, 187, 133, 32, 81, 17, 63, 178, 172, 206, 64, 49, 56, 4, 8, 117, 42, 115, 150, 157, 187, 110, 161, 229, 148, 33, 107, 246, 11, 21, 71, 120]
 right: [62, 90, 21, 90, 245, 182, 17, 214, 55, 102, 124, 12, 140, 5, 78, 233, 79, 134, 10, 29, 103, 105, 233, 197, 238, 49, 221, 109, 44, 245, 42, 101, 43, 204, 250, 251, 9, 111, 4, 6, 190, 106, 238, 190, 80, 100, 12, 203, 168, 27, 250, 240, 222, 50, 155, 250, 247, 76, 26, 233, 228, 18, 17, 187, 52, 229, 159, 66, 12, 62, 120, 255, 42, 90, 14, 50, 243, 148, 197, 107, 194, 159, 186, 95, 69, 120, 85, 99, 212, 193, 142, 67, 74, 194, 34, 196, 9, 135, 148, 118, 215, 39, 44, 71, 146, 241, 247, 72, 50, 60, 16, 52, 156, 226]
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

failures:
    tests::test_aegis256

test result: FAILED. 3 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

error: test failed, to rerun pass `--lib````
jedisct1 commented 9 months ago

Thanks!

And sorry for that. The pure rust implementations are clunky and slow, so they don't get much attention.

jedisct1 commented 9 months ago

New version pushed to crates.io.