interplane.Get Omega
Read in your language

omega-mv

Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.

Brought by drakestapleton

branch main Branches Tags History

omega-mv / seed / qualification / om2 / evidence / phaseB / s5s7-sha-selfcheck.log

26 lines · 1941 bytes Raw Blame History
1# s5s7 SHA driver SELF-CHECK against the CURRENT C src/sha256.c (main acb3f15). Validates the driver and
2# the python expected digests; it is NOT evidence about OM-2. 2026-10-25T16:52:17Z; gcc (Ubuntu 13.3.0-6ubuntu2~24.04.1) 13.3.0
3# sha_driver.c 50ac882ad0e4ec19f3076ad29d52ffa864ac5960490116f9f6c72fc9ef0f7b48; expected.h 26771c6e1033babb8736dad7751e3a7bd69161779462486e623d91166b4a6495; driver.c dd7ddd56b399475f7c7bc04dbe825f6bec06b34ed24c49c21a66c00ba60fc40c
4$ gcc -std=gnu11 -O2 -Wall -Wextra -Werror -DGENHDR='"sha256.h"' -I/tmp/zl/main/src -Iseed/qualification/om2/oracle/s5s7/sha seed/qualification/om2/oracle/s5s7/sha/sha_driver.c /tmp/zl/main/src/sha256.c -o build/om2-qual/s5s7-sha-selfcheck
5exit=0
6$ build/om2-qual/s5s7-sha-selfcheck big
7PASS sha-empty init, final = sha256("")
8PASS sha-abc abc
9PASS sha-split2 every two-way split k = 0..1000 of seq:1000
10PASS sha-split3-zero three-way splits with length-0 updates between them
11PASS sha-bytewise 1000 one-byte updates
12PASS sha-update-null0 update(NULL, 0) is an empty update (ABI: len 0 any pointer)
13PASS sha-hash-overlap0 sha256_hash(buf, 64, buf)
14PASS sha-hash-overlap16 sha256_hash(buf, 64, buf + 16)
15PASS sha-hash-overlap-before digest [8,40) overlapping data [32,96)
16PASS sha-post-final init, update, final after a final == fresh context
17PASS sha-no-init-safe update, final without init returned (digest unspecified; memory safety only)
18PASS sha-hash-eq-stream hash(n) == init, update(n), final == python, n in {0,1,55,56,63,64,65,119,120,1000}
19PASS sha-ctx-copy byte copy after k updates, both continued: equal digests (E3)
20PASS sha-big-1 one update of 2^32+3 zero bytes
21PASS sha-big-split updates of 2^32-1 and 4 zero bytes
22PASS sha-big-hash hash of 2^32+3 zero bytes
23PASS SHA driver: 0 failure(s)
24exit=0
25$ gcc -std=gnu11 -Wall -Wextra -Werror -c seed/qualification/om2/oracle/s5s7/abi/driver.c -o /dev/null (compile only; cannot link without the v2 generator)
26exit=0