interplane.Get Omega
Read in your language

synapse

A component of the AienOS ecosystem.

Brought by drakestapleton

branch main Branches Tags History

synapse / evidence / j3-crypto-vectors / red-green / review-red.txt

67 lines · 3641 bytes Raw Blame History
1# J3 review round, red: new tests against stubs (ed25519_edge_cases empty, CORPUS_SHA256 unpinned). 2026-10-14T18:57:22Z
2$ cargo test -p synapse-bench --lib crypto_vectors
3
4running 15 tests
5test crypto_vectors::tests::inner_portable_backend_is_in_use ... ok
6test crypto_vectors::tests::sealed_corpus_digest_is_pinned ... FAILED
7test crypto_vectors::tests::decoder_refuses_malformed_corpora_with_typed_errors ... ok
8test crypto_vectors::tests::corpus_pins_the_edge_case_decisions ... ok
9test crypto_vectors::tests::every_length_across_the_block_boundaries_is_in_the_corpus ... ok
10test crypto_vectors::tests::rfc8032_vectors_match_the_rust_crate_and_are_in_the_corpus ... ok
11test crypto_vectors::tests::corpus_round_trips_byte_for_byte ... ok
12test crypto_vectors::tests::models_reproduce_dalek_on_the_whole_corpus ... ok
13test crypto_vectors::tests::each_edge_case_is_in_the_corpus_and_catches_a_wrong_implementation ... FAILED
14test crypto_vectors::tests::a0_instruction_code_gives_every_corpus_digest ... ok
15test crypto_vectors::tests::published_sha256_answers_match_the_rust_crate_and_are_in_the_corpus ... ok
16test crypto_vectors::tests::every_corpus_answer_is_the_rust_crates_answer ... ok
17test crypto_vectors::tests::sealed_corpus_matches_the_rust_crates_exactly ... ok
18test crypto_vectors::tests::workspace_sha2_is_built_with_its_aarch64_instruction_backend ... ok
19test crypto_vectors::tests::portable_sha2_backend_gives_the_sealed_corpus ... ok
20
21failures:
22
23---- crypto_vectors::tests::sealed_corpus_digest_is_pinned stdout ----
24
25thread 'crypto_vectors::tests::sealed_corpus_digest_is_pinned' (11814) panicked at crates/synapse-bench/src/crypto_vectors/tests.rs:440:5:
26assertion `left == right` failed: corpus digest not pinned
27 left: 0
28 right: 64
29
30---- crypto_vectors::tests::each_edge_case_is_in_the_corpus_and_catches_a_wrong_implementation stdout ----
31
32thread 'crypto_vectors::tests::each_edge_case_is_in_the_corpus_and_catches_a_wrong_implementation' (11806) panicked at crates/synapse-bench/src/crypto_vectors/tests.rs:696:32:
33edge case noncanonical_r_y_p_plus_1 missing
34
35
36failures:
37 crypto_vectors::tests::each_edge_case_is_in_the_corpus_and_catches_a_wrong_implementation
38 crypto_vectors::tests::sealed_corpus_digest_is_pinned
39
40test result: FAILED. 13 passed; 2 failed; 0 ignored; 0 measured; 42 filtered out; finished in 0.69s
41
42error: test failed, to rerun pass `-p synapse-bench --lib`
43
44# Negative control for the backend check: the portable-backend assertion run in the default (instruction) build must fail.
45$ SYNAPSE_J3_PORTABLE_INNER=1 cargo test -p synapse-bench --lib -- --exact crypto_vectors::tests::inner_portable_backend_is_in_use
46
47running 1 test
48test crypto_vectors::tests::inner_portable_backend_is_in_use ... FAILED
49
50failures:
51
52---- crypto_vectors::tests::inner_portable_backend_is_in_use stdout ----
53
54thread 'crypto_vectors::tests::inner_portable_backend_is_in_use' (11895) panicked at crates/synapse-bench/src/crypto_vectors/tests.rs:375:5:
55assertion `left == right` failed: sha2 backend: instruction code linked = true, CPU reports sha2 = true
56 left: Instructions
57 right: Portable
58
59
60failures:
61 crypto_vectors::tests::inner_portable_backend_is_in_use
62
63test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 56 filtered out; finished in 0.52s
64
65error: test failed, to rerun pass `-p synapse-bench --lib`
66
67# Note: portable_sha2_backend_gives_the_sealed_corpus is a regression guard on the fallback; it first failed only because the symbol needle matched its own constant in the binary (fixed by storing it reversed). It cannot be red for the intended reason without breaking sha2's portable code.