Debian Codegraph @

output-tests/Crypto.Fancy.Montgomery256.prod_montred256_correct.expected

raw
1 Montgomery256.prod_montred256_correct
2 : forall (cc_start_state : CC.state) (start_context : register -> Z) (lo hi y t1 t2 scratch RegPInv extra_reg : register),
3 NoDup [lo; hi; y; t1; t2; scratch; RegPInv; extra_reg; RegMod; RegZero] ->
4 start_context RegPInv = Montgomery256.N' ->
5 start_context RegMod = Montgomery256.N ->
6 start_context RegZero = 0 ->
7 0 <= start_context lo < Montgomery256.R ->
8 0 <= start_context hi < Montgomery256.R ->
9 let x := start_context lo + Montgomery256.R * start_context hi in
10 0 <= x < Montgomery256.R * Montgomery256.N ->
11 interp reg_eqb wordmax cc_spec (MontRed256 lo hi y t1 t2 scratch RegPInv) cc_start_state start_context =
12 (x * Montgomery256.R') mod Montgomery256.N