Skip to content

Commit

Permalink
add printing of inverse code.
Browse files Browse the repository at this point in the history
  • Loading branch information
piyush-kurur committed May 12, 2023
1 parent e4fb973 commit fb21725
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/Verse/CryptoLib/curve25519/c/field.v
Original file line number Diff line number Diff line change
Expand Up @@ -1037,6 +1037,19 @@ Compute snd (inverse cp' z' cp z).

Goal to_print (inverse cp' z' cp z).
unfold inverse.
unfold ibitsRep.
lazy [repSteps repStep swapStep repeatIt step2 step multStep squareStep Nat.modulo Nat.div Nat.divmod ibitsRep fst snd Nat.sub swapVar].

unfold repSteps.
unfold repStep.
unfold repeatIt.
Locate "mod".
unfold Nat.modulo.
unfold Nat.div.
unfold Nat.divmod.


unfold swapStep.
simpl.
Abort.

Expand Down

0 comments on commit fb21725

Please sign in to comment.