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 / evidence / run2 / compare32.src
| 1 | note SPDX-License-Identifier: Apache-2.0 |
| 2 | note SC1-L: public pointers a,b; secret contents; only equality result disclosed. |
| 3 | fn compare32 a view uchar 32 b view uchar 32 to ulong |
| 4 | d = uchar 0 |
| 5 | for i ulong 32 |
| 6 | d = or d xor get a i get b i |
| 7 | end |
| 8 | ret shr sub ulong d 1 63 |
| 9 | end |