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 / leak-sha256-om1-notes.txt

58 lines · 4474 bytes Raw Blame History
1OM-1 SHA static leakage evidence, revised under E11/E12/E13 (supersedes both earlier false-PASS rules).
2Contract §8 evidence (a); SOURCE evidence, scan executed on AArch64 host. Dynamic traces: NOT_RUN.
3Compiler seed/out/omc sha256 734f0a39319fbfa930bcc62cb30dbf06d47d78e126372b74f5baf478e6126b61.
4Source om/sha256/sha256.om (main acb3f15) sha256 7f034814303a8a40b4bc56383ddd55ab2ae8460291f80793340bc3b0ac024e21.
5Artifact leak/fixtures/sha256-om1.bin sha256 3b0ee1ffd7247514b1fd685b5cd48e83ccda4d1ded40e18a4237e81eb44bc97f.
6Scanner identity: see leak-s1-rot.txt (same revised scanner used for both scans).
7
8Entry: omsha c b n op w b8 (sha256.om:11,1509). c,b,w,b8 public pointers; n/op public length/opcode.
9No xN DATA arguments. Explicit declaration pub:0:32:8 identifies the context count bytes [32,40),
10contract layout at 32, E5; E11 permits an explicit public-memory declaration. Its presence is shown
11as PUBLIC-DECL 0+32:8 in the full report.
12
13Commands (worktree root):
14 build/om2-qual/leakscan-e13 < seed/qualification/om2/leak/fixtures/sha256-om1.bin > seed/qualification/om2/evidence/phaseB/leak-sha256-om1.txt
15 build/om2-qual/leakscan-e13 pub:0:32:8 < seed/qualification/om2/leak/fixtures/sha256-om1.bin > seed/qualification/om2/evidence/phaseB/leak-sha256-om1-pub.txt
16Both exit 2, same classification counts:
17 SUMMARY branches=83 len=57 trap-check=10 data-branch=16 branch-unreached=0 mem=387 const=16
18 public-index=363 data-index=8 mem-unreached=0 unknown=0 unhandled=0
19 VERDICT TRACE-EQUIV-STATIC NOT_RUN
20Objdump 2.42 agrees on all 83 conditional branches/targets and all 387 non-SP memory accesses (773
21SP-only spills omitted from listings). Full cross-check: leak-sha256-om1-xcheck.txt.
22
23Ten DATA checks discharged by E12 AND known-bits:
24 @40: putle uchar(and x,255), @2446 @2456 @2466 @2476 @2486 @2496 @2506 @2516: rounds uint(and x,
25 0xffffffff), @3209: final uchar(and shr bits sh,255). They use LSR then CBNZ, provably zero after
26 AND with a constant fitting the conversion target. These are the ONLY data never-taken-trap-checks.
27
28Sixteen branches remain MANUAL (data-branch summary field), including nine unproved trap checks:
29 @80: loadh uint(getle(...)) conversion, no AND proof.
30 @136 @143 @150 @157: schedb bounds checks.
31 @2540 @2543: tobuf bounds checks; @3107 zbuf bounds check; @3139 final bounds check.
32 @2528: tobuf loop condition; @2616 @2620 @2782 @2809: absorb condition/loops;
33 @3099: zbuf loop condition; @3160: final padding condition.
34Eight DATA addresses remain: @137 @144 @151 @158 (schedb), @2541 @2544 (tobuf), @3108 (zbuf),
35@3140 (final). E13 conservatively revokes pub:0:32:8 at 68 potentially poisoning store offsets (each
36listed PUBLIC-MEM-REVOKED). No declaration is applied to any SHA load. Independently, getle shares
37calls for many fields and loops over p+i, losing exact constants. Both limitations are conservative.
38
39Listed manual classification of the original 15 items (7 branches + 8 addresses), not a static PASS:
40 schedb @137 @144 @151 @158: input offset from absorb's off;
41 tobuf @2528 @2541 @2544: n / bo+i / 40+bi+i;
42 absorb @2616 @2620 @2782 @2809: bi, lf and off conditions;
43 zbuf @3099 @3108: start bi+1; final @3140 @3160: bi.
44All depend on count loaded by `cnt = getle c 32 8` (sha256.om:890,953), public length state under
45§8 equal lengths/call sequence and the explicit E11 declaration. A prior throwaway counterfactual
46replaced both count loads by a constant and removed all 15 findings; that is root-cause evidence,
47not execution evidence for the unchanged artifact. Nine additional E12 trap checks remain unproved
48as listed above, even after the manual count classification; no overall PASS is claimed.
49
50Required E12 false-PASS control and native reachability: leak/fixtures/reachable-trap.om scans data
51MANUAL trap=5 / NOT_RUN; program twins execute with 0 (exit0) and 2^32 (trap5, exit105). See gate receipts
52and leak-reachability.txt. The earlier assumption "branch to trap implies never taken" is retracted.
53
54E13 retracts any claim that a declaration can declassify a secret overwritten field. The required
55pub-secret counterexample revokes the declaration at @3; its reloaded-byte branch is MANUAL/NOT_RUN.
56Native message-byte twins actually exit0 and exit1. Unknown-address stores revoke too; proven
57same-base disjoint stores do not. The no-revocation mutant is killed. See leak-public-store.txt and
58the updated gate receipts; whole-artifact revocation iterates the entire analysis to stability.