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 / security673 / relational / evidence / run2 / compare32.src

9 lines · 266 bytes Raw Blame History
1note SPDX-License-Identifier: Apache-2.0
2note SC1-L: public pointers a,b; secret contents; only equality result disclosed.
3fn compare32 a view uchar 32 b view uchar 32 to ulong
4d = uchar 0
5for i ulong 32
6d = or d xor get a i get b i
7end
8ret shr sub ulong d 1 63
9end