cargo test seem to fail for me with the C implementation and I can reproduce the failure on master and on ed865c0 (the first commit with a working C implementation.) The pure Rust implementation seems to pass without any failures. I have attached my terminal output for both cases below.
$ cargo test
Finished test [unoptimized + debuginfo] target(s) in 0.03s
Running unittests src/lib.rs (target/debug/deps/aegis-957d58fb485d0871)
running 2 tests
test tests::test_aegis ... ok
test tests::test_aegis_in_place ... ok
test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Doc-tests aegis
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
This is actually unrelated to the C implementation. The order of the Aegis128L.init() parameters have been reversed, and the tests still passed them in the wrong order.
cargo test
seem to fail for me with the C implementation and I can reproduce the failure on master and on ed865c0 (the first commit with a working C implementation.) The pure Rust implementation seems to pass without any failures. I have attached my terminal output for both cases below.Output with C Implementation
Output with Pure Rust Implementation