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 / leak / fixtures / s1-rot.om

22 lines · 560 bytes Raw Blame History
1om2
2note Contract section 3 lines 76-83: uint/ulong rotr and rotl, constant and public runtime amounts.
3note Entry x0 and x2 may hold DATA; n (x1), m (x3) public. No message-dependent address or branch.
4note ARM DDI0487M.d C6.2.160 EXTR (p2201), C6.2.349 RORV (p2580), C6.2.295 NEG (p2475).
5fn f x uint n uint y ulong m ulong to ulong
6a = rotr x 7
7r = ulong a
8a = rotl x 11
9r = xor r ulong a
10a = rotr x n
11r = xor r ulong a
12a = rotl x n
13r = xor r ulong a
14b = rotr y 17
15r = xor r b
16b = rotl y 23
17r = xor r b
18b = rotr y m
19r = xor r b
20b = rotl y m
21ret xor r b
22end