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
omega-mv / seed / qualification / security673 / relational / SC1-L.txt
| 1 | SC1-L relational comparison profile, revision2 |
| 2 | Composition contract ced61decef1ff4efbf5bc81598db648aa810be434e373e9bc1563dbcb4523496. |
| 3 | |
| 4 | Source entry: compare32(a:view uchar32,b:view uchar32)->ulong. |
| 5 | Public: both valid, stable entry addresses; fixed extent32; caller and runtime ABI. |
| 6 | Secret: every byte in a[0,32) and b[0,32). No initially public memory declaration. |
| 7 | Views may overlap because the primitive only reads. Mappings must remain stable and readable; |
| 8 | concurrent mutation, invalid foreign pointers and asynchronous interference are outside this slice. |
| 9 | No helpers, allocations, stores, I/O, mutable globals, early exits or variable divisors occur. |
| 10 | All32 positions are explicitly listed. The earlier loop source also passed the scanner; the |
| 11 | straight-line form was selected to bind the WHOLE raw function byte-for-byte inside the native |
| 12 | paired executable, including its return, without relocated trap stubs. No scan instruction is omitted. |
| 13 | |
| 14 | Disclosure policy SC1-L-EQ1: exactly the final equality bit (1 equal, 0 different) may be returned. |
| 15 | No pointer, mismatch position, intermediate byte, hash value, secret length or error is disclosed. |
| 16 | The accumulator is bytewise OR of XORs, hence in[0,255]. Unsigned u64(d)-1 wraps only when d=0; |
| 17 | logical shift right63 produces exactly the equality bit. This uses existing modulo semantics. |
| 18 | The source annotations are a reviewed contract, not enforced information-flow types or sealing. |
| 19 | A conversion from a secret value is not authorization to disclose it. The scanner does not check |
| 20 | output declassification, so the native functional test and independent source review are separate. |
| 21 | |
| 22 | Observation model SC1-L-ARCH1: architectural conditional control-flow decisions, effective memory |
| 23 | addresses, iteration counts, trap/error outcomes, and the disclosed result. Different results are |
| 24 | allowed only by EQ1. Publicly equivalent inputs producing the same disclosed result must have the |
| 25 | same other observations. Valid pointer identity and runtime are held fixed across a pair. |
| 26 | Execution is sequential Linux AArch64 little-endian with OM-1 function ABI, main omc |
| 27 | 734f0a39319fbfa930bcc62cb30dbf06d47d78e126372b74f5baf478e6126b61, no optimizer flags. |
| 28 | Scanner assumptions, decode subset and ABI invariant A1 remain those in pinned PR752 README.txt. |
| 29 | No instruction latency, cache, speculation, branch predictor, power, OS scheduling, memory fault, |
| 30 | shared-resource or physical-time property is claimed. No statistical timing test is a secrecy proof. |
| 31 | The stronger SC1 revision2 policy separately forbids secret-dependent UDIV/SDIV. Current scanner |
| 32 | taint propagation does not enforce that policy: dividend.om (secret dividend, constant divisor7, |
| 33 | constant output0) scans PASS. It is UNQUALIFIED under that policy, not a successful negative kill. |
| 34 | L4 division is BLOCKED pending the existing scanner owner's extension or reviewed division-free |
| 35 | artifact admission. division.om's secret zero-check refusal does not close this gap. |
| 36 | |
| 37 | Controls: branch/helper/error/division/dividend entry x0 is secret; address x1 is secret and pointer |
| 38 | x0 is public, with pub:0:0:16. public-branch has x0 public,x1 secret. public-address has x0 pointer |
| 39 | public,x1 selector public,x2 secret, with pub:0:0:16. Initial public table words are7,7. |
| 40 | dividend returns constant0 but still computes a secret-dependent division. Other scalar controls |
| 41 | return constant7 except the explicit error/early fixtures. Public declarations label content, |
| 42 | not addresses; no blanket declassification. For the omnet profile, request length and public |
| 43 | candidate count/shape are public under SC1 revision2, not inferred secret-length hiding. |
| 44 | |
| 45 | Nondeterminism: source choice in{0,1} is independent of secret in{0,1}. Hold the same choice across |
| 46 | a secret pair. The faulty lowering returns the secret, so ordinary per-run inclusion4/4 holds, |
| 47 | but both same-choice pairs differ. This is a four-state finite counterexample, not an actual |
| 48 | nondeterministic feature in omc and not a proof of hyperproperty-preserving compilation. |
| 49 | |
| 50 | Evidence classes: native paired functional execution; finite model enumeration; scanner finite |
| 51 | static architectural evidence. Dynamic hardware instruction/address trace capture is NOT_RUN. |
| 52 | Mechanized relational proof, general translation validation and signed receipts are NOT_RUN. |
| 53 | The #623/#624 owners must supply native relation plus authenticated target/model/disclosure/checker |
| 54 | binding before promoting this evidence. Current gate re-derives recorded artifacts and pins |
| 55 | requested emitted bytes; it cannot certify disclosure policy, target metadata or leakage model. |
| 56 | L6 real daemon emitted-word plus call/return/observation correspondence is BLOCKED; byte containment |
| 57 | inside this test harness does not qualify a real program-mode daemon. L7 remains a baseline audit |
| 58 | and closure inventory, not qualification of the changed omnet proposal or whole secret closure. |